OptionsPopup
The Options (Settings) Popup
Parameters
The caller - note if this is a WorldScreen or MainMenuScreen they will be rebuilt when major options change.
Constructors
Types
This TextButton subclass helps to keep looks and behaviour of our Yes/No in one place, but it also helps keeping context for those action lambdas.
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.
Reload this Popup after major changes (resolution, tileset, language)
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.