Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:WindowGetTintColor

From RoR Wiki
Revision as of 19:51, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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")

See also