Drag[en]gine Script Module DragonScript
1.23
|
Widget modifier toggling visibility of widgets matching ToggleModel. More...
Public Member Functions | |
WModifierVisibility | new (ToggleModel model, Widget widget) |
Create widget modifier showing widget if model is toggled. More... | |
void | toggledChanged (ToggleModel model) |
Toggled state changed. More... | |
Public Attributes | |
Widget | pWidget |
Widget modifier toggling visibility of widgets matching ToggleModel.
Simple way to add widgets to UI showing up if certain game events happend (propmpts for example).
To use add widget modifier to ToggleModel as listener for desired widget. When model toggles on widget is set enabled otherwise disabled.
This modifier can be combined with TogglePresent to set up a list of widgets showing if specific objects (typically enumerations) are present in a ListModel.
WModifierVisibility Dragengine.Gui.Modifiers.WModifierVisibility.new | ( | ToggleModel | model, |
Widget | widget | ||
) |
Create widget modifier showing widget if model is toggled.
void Dragengine.Gui.Modifiers.WModifierVisibility.toggledChanged | ( | ToggleModel | model | ) |
Toggled state changed.
Implements Dragengine.Gui.ToggleModelListener.
Widget Dragengine.Gui.Modifiers.WModifierVisibility.pWidget |