Scripting/Client/GUI/SetGUIStyle
Sets one property of a style. type is "window", "label", "button", "checkbox", "editbox", "memobox", "progressbar", "listbox", "dropdown", "dialog" (the server dialogs of ShowPlayerDialog) - the class names work too ("GUIButton") - or "all": every type that has this property, the dialog included. value is a colour (Colour(r, g, b, a) or 0xAARRGGBB), a number or a font name. Returns false for an unknown type or a property the type does not have.
Syntax
SetGUIStyle(type, property, value)Arguments
- int type –
typeis "window", "label", "button", "checkbox", "editbox", "memobox", "progressbar", "listbox", "dropdown", "dialog" (the server dialogs of ShowPlayerDialog) - the class names work too ("GUIButton") - or "all": every type that has this property, the dialog included. - any property
- bool value –
valueis a colour (Colour(r, g, b, a) or 0xAARRGGBB), a number or a font name.
Returns
bool
Example
function onScriptLoad()
{
local result = SetGUIStyle( 0, 0, true );
MessagePlayer( "SetGUIStyle returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: GUI styles: colours, fonts, borders, rounded corners
Categories: Client functions | GUI styles: colours, fonts, borders, rounded corners