Package com.unciv.ui.utils
Types
Simple class for showing a prompt for a positive integer to the user
Simple class for showing a prompt for a string to the user
Shortcut to open a YesNoPopup with the exit game question
A widget with a header that when clicked shows/hides a sub-Table.
Represents a key for use in an InputListener keyTyped() handler
A manager for a keyTypedInputListener, based on HashMap. Uses KeyCharAndCode as keys to express bindings for both Ascii and function keys.
Represents a row in the Language picker, used both in OptionsPopup and in LanguagePickerScreen
Interface to support managing orientations
Base class for all Popups, i.e. Tables that get rendered in the middle of a screen and on top of everything else
Generates Gdx Sound objects from UncivSound ones on demand, only once per key (two UncivSound custom instances with the same filename are considered equal).
Implements a 'Tabs' widget where different pages can be switched by selecting a header button.
This is an unobtrusive popup which will close itself after a given amount of time. Default time is two seconds (in milliseconds)
Standardize date formatting so dates are presented in a consistent style and all decisions to change date handling are encapsulated here
Variant of Popup pre-populated with one label, plus yes and no buttons
Functions
Closes all Popups.
Closes the topmost visible Popup.
Counts number of visiblePopups.
Make sure an index is valid for this List.
get background Image for a new separator
Checks if there are visible Popups.
same as onClick, but sends the InputEvent and coordinates along
pack a WidgetGroup if its needsLayout is true.
Sets the font color on a Label and returns it to allow chaining
Sets the font size on a Label and returns it to allow chaining
Turn a TextureRegion into a Pixmap.
Translate a String and make a TextButton widget from it