Package mindustry.ui.fragments
Class MenuFragment
java.lang.Object
mindustry.ui.fragments.MenuFragment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a menu button definition. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a custom button to the menu.voidAdds a custom button to the menu.voidaddButton(MenuFragment.MenuButton button) Adds a custom button to the menu.voidbuild(arc.scene.Group parent)
-
Field Details
-
desktopButtons
-
-
Constructor Details
-
MenuFragment
public MenuFragment()
-
-
Method Details
-
build
public void build(arc.scene.Group parent) -
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.submenuis null or the player is on mobile,MenuFragment.MenuButton.runnableis invoked on click. Otherwise,MenuFragment.MenuButton.submenuis shown.
-