Action for a GUI window event such as OnClick.
Changing the tag of a window is not synchronized over network. This means that other players will not see when one player for example hovers over a menu window; if you need the tag to be set for all players, use
GuiAction_Call() with
GuiUpdateTag().
See the
GUI documentation for further explanations.
var menu =
{
BackgroundColor =
{
Std = RGB(255, 0, 0),
Hover = RGB(0, 255, 0)
},
OnMouseIn = GuiAction_SetTag("Hover"),
OnMouseOut = GuiAction_SetTag("Std")
};
var menuID = GuiOpen(menu);
Defines a new GUI window that changes color when you hover over it.