Button_SetTextColor

Prototype: GemRB.SetButtonTextColor (WindowIndex, ControlIndex, red, green, blue[, invert=0])

Metaclass Prototype: SetTextColor (red, green, blue[, invert=0])

Description: Sets the text color of a Button control. Invert is used for fonts with swapped background and text colors.

Parameters:

  • WindowIndex, ControlIndex - the control’s reference
  • red, green, blue - the rgb color values
  • invert - swap background and text colors?

Return value: N/A

See also: Label_SetUseRGB, Label_SetTextColor


Back to function index, GUIScript introduction.