Package mindustry.ui.fragments
Class MenuFragment
java.lang.Object
mindustry.ui.fragments.MenuFragment
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a menu button definition. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a custom button to the menu.void
Adds a custom button to the menu.void
addButton
(MenuFragment.MenuButton button) Adds a custom button to the menu.void
-
Constructor Details
-
MenuFragment
public MenuFragment()
-
-
Method Details
-
build
-
addButton
Adds a custom button to the menu. -
addButton
Adds a custom button to the menu. -
addButton
Adds a custom button to the menu. IfMenuFragment.MenuButton.submenu
is null or the player is on mobile,MenuFragment.MenuButton.runnable
is invoked on click. Otherwise,MenuFragment.MenuButton.submenu
is shown.
-