Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.Modifiers.WModifierVisibility Class Reference

Widget modifier toggling visibility of widgets matching ToggleModel. More...

Inheritance diagram for Dragengine.Gui.Modifiers.WModifierVisibility:
Dragengine.Gui.ToggleModelListener

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...
 

Detailed Description

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.

Member Function Documentation

◆ new()

WModifierVisibility Dragengine.Gui.Modifiers.WModifierVisibility.new ( ToggleModel  model,
Widget  widget 
)

Create widget modifier showing widget if model is toggled.

◆ toggledChanged()

void Dragengine.Gui.Modifiers.WModifierVisibility.toggledChanged ( ToggleModel  model)

Toggled state changed.

Implements Dragengine.Gui.ToggleModelListener.


The documentation for this class was generated from the following file: