API:WindowGetTintColor
From RoR Wiki
UI Lua API · Window functions
Version: WAR 1.4.8
Returns a window's tint colour.
r, g, b = WindowGetTintColor(windowName)
Arguments
- windowName
string– Name of the window.
Returns
- r, g, b
number– Red, green and blue on a 0–255 scale.
Details
- The values are whole numbers. The client stores the colour on a 0–1 scale, multiplies by 255 and drops the fractional part, so a value set with WindowSetTintColor can come back one lower.
- The alpha part of the tint is not returned.
Errors
Error in function call 'WindowGetTintColor': Window %s does not exist
Example
From ea_guildwindow/source/colorpicker.lua:
r, g, b = WindowGetTintColor("ColorPickerColorBoxEdge203")
