TechPickerScreen
Functions
Sets the text of the rightSideButton and enables it if it's the player's turn
Remove listeners from rightSideButton to prepare giving it a new onClick
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.
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
We need this to be a separate table, and NOT the topTable, because inhales When call setConnectingLines we need to pack() the table so that the lines will align correctly, BUT this causes the table to be SMALLER THAN THE SCREEN for small tech trees from mods, meaning the tech tree is in a crumpled heap at the lower-left corner of the screen Having this be a separate table allows us to leave the TopTable as is (that is: auto-width to fit the scrollPane) leaving us the juicy small tech tree right in the center.