mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-20 15:13:45 +00:00
color palette saving
for now saves palette colours as their hex value. This will miss out on the alpha value.
This commit is contained in:
parent
46192c3709
commit
48ca98ca84
2 changed files with 99 additions and 11 deletions
|
|
@ -550,6 +550,7 @@ inline void ColorI::set(const String& hex)
|
|||
red = (U8)(convertFromHex(redString));
|
||||
green = (U8)(convertFromHex(greenString));
|
||||
blue = (U8)(convertFromHex(blueString));
|
||||
alpha = 255;
|
||||
}
|
||||
|
||||
inline S32 ColorI::convertFromHex(const String& hex) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue