Package megameklab.ui.dialog
Class UiLoader
java.lang.Object
megameklab.ui.dialog.UiLoader
This class prepares a new editing UI for either a given Entity or an Entity
type (new unit). While
preparation runs, a splash screen is shown.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MegaMekLabMainUI
getUI
(long type, boolean primitive, boolean industrial) static void
initializeFromBlankUI
(Consumer<MegaMekLabTabbedUI> initializer) static void
loadUi
(long type, boolean primitive, boolean industrial) static void
static void
void
show()
Shows the splash image, hides the calling frame and starts loading the new unit's UI.
-
Method Details
-
loadUi
-
loadUi
public static void loadUi(long type, boolean primitive, boolean industrial) -
restoreTabbedUi
public static void restoreTabbedUi() -
show
public void show()Shows the splash image, hides the calling frame and starts loading the new unit's UI. -
initializeFromBlankUI
-
getUI
- Returns:
- The correct MainUI for an Entity of the given type (ETYPE_xxx), primitive and industrial flag.
-