Class UiLoader

java.lang.Object
megameklab.ui.dialog.UiLoader

public class UiLoader extends Object
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 Details

    • loadUi

      public static void loadUi(megamek.common.Entity newUnit, String fileName)
    • 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

      public static void initializeFromBlankUI(Consumer<MegaMekLabTabbedUI> initializer)
    • getUI

      public static MegaMekLabMainUI getUI(long type, boolean primitive, boolean industrial)
      Returns:
      The correct MainUI for an Entity of the given type (ETYPE_xxx), primitive and industrial flag.