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 MegaMekLabMainUIgetUI(long type, boolean primitive, boolean industrial) static MegaMekLabMainUIstatic voidinitializeFromBlankUI(Consumer<MegaMekLabTabbedUI> initializer) static voidloadUi(long type, boolean primitive, boolean industrial) static voidstatic voidvoidshow()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.
-
getUI
- Returns:
- The correct MainUI for an Entity
-