Class MenuFragment.MenuButton

java.lang.Object
mindustry.ui.fragments.MenuFragment.MenuButton
Enclosing class:
MenuFragment

public static class MenuFragment.MenuButton extends Object
Represents a menu button definition.
  • Field Details

  • Constructor Details

    • MenuButton

      public MenuButton(String text, Drawable icon, Runnable runnable)
      Constructs a simple menu button, which behaves the same way on desktop and mobile.
    • MenuButton

      public MenuButton(String text, Drawable icon, Runnable runnable, MenuFragment.MenuButton... submenu)
      Constructs a button that runs the runnable when clicked on mobile or shows the submenu on desktop.