YesNoPopup
Variant of Popup pre-populated with one label, plus yes and no buttons
Parameters
The text for the label
A lambda to execute when "Yes" is chosen
The parent screen - see Popup.screen. Optional, defaults to the current WorldScreen
A lambda to execute when "No" is chosen
Constructors
Functions
Adds a TextButton and ends the current row.
Adds an inline TextButton.
Adds a TextButton that closes the popup, with BACK already mapped.
Adds a TextButton that can close the popup, with RETURN already mapped.
The last two additions must be buttons. Make their width equal by setting minWidth of one cell to actor width of the other.
Subroutine for open handles only visibility and keyPressDispatcher
Properties
Sets or retrieves the Actor that currently has keyboard focus.
The KeyPressDispatcher for the popup - Key handlers from the parent screen are inactive while the popup is active through the hasOpenPopups mechanism.
The Label created for parameter question
for optional layout tweaking