mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 16:54:24 +00:00
9be8a560a9
* JSI_GUIColor::construct and JSI_IGUIObject::setProperty hunk are duplicates of FromJSVal, getProperty of ToJSVal, following7c2e9027c2. * The constructor, it's fallback magenta and toString have never been used by JS. * A JS color class providing some methods (such as found in color.js, refs #5387, and the unused toString redundant with rgbToGuiColor, see alsoeee8217b45) is more inviting to changes and maintenance if defined in JS and can still be instantiated in C++, like the Vector2D (see also65b02395b3). * PredefinedColors (such as "red" or "green") can be obtained from the prototype without defining the class in C++. * Minimize ugliness by removing macrosity, refs8ceb41212d. Rename alpha to a in guiToRgbColor fromeee8217b45for consistency with the C++ conversions (opaqueness had been skipped in the only callers of this JS function yet). Delete unused GUISTDTYPE Mouse in header forgotton in8734efca94. This was SVN commit r22534.