GuiInterface.setWidgetState

Sets the state of a widget

Kind: Function

Environments: Game

Game

guiInterface:setWidgetState( widgetName, state )

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
gui GuiInterface The Gui interface
widgetName string The name of the widget
state integer The widget state sm.gui.widgetStates