ModManagementScreen
The Mod Management Screen - called only from MainMenuScreen
Parameters
cached online mod list, if supplied and not empty, it will be displayed as is and no online query will be run. Used for resize.
Constructors
Types
Functions
Recreate the information part of the right-hand column
Download and install a mod in the background, called both from the right-bottom button and the URL entry popup
Create the special "Download from URL" button
Used as onClick handler for the online Mod list buttons
Sets the text of the rightSideButton and enables it if it's the player's turn
Rebuild the left-hand column containing all installed mods
Rebuild the right-hand column for clicks on installed mods Display single mod metadata, offer additional actions (delete is elsewhere)
Remove listeners from rightSideButton to prepare giving it a new onClick
Rewrite modOptions file for a mod we just installed to include metadata we got from the GitHub api
Initializes the Close button's action (and the Back/ESC handler) to return to the previousScreen if specified, or else to the world screen.
Enables the rightSideButton. See pick for a way to set the text.
background worker: querying GitHub for Mods (repos with 'unciv-mod' in its topics)
Remove the visual indicators for an 'updated' mod after re-downloading it. (" - Updated" on the button text in the online mod list and the icon beside the installed mod's button) It should be up to date now (unless the repo's date is in the future relative to system time)
Properties
Holds the Close button, a description label and an action button
The close button on the lower left of bottomTable, see setDefaultCloseAction
A scrollable wrapped Label you can use to show descriptions in the bottomTable, starts empty
A button on the lower right of bottomTable you can use for a "OK"-type action, starts disabled
A wrapper containing rightSideButton. You can add buttons, they will be arranged vertically
A ScrollPane scrolling topTable, disabled by the disableScroll parameter
A fixed SplitPane holds scrollPane and bottomTable