Package mindustry.ui
Class Menus
java.lang.Object
mindustry.ui.Menus
Class for handling menus and notifications across the network. Unstable API!
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
followUpMenu
(int menuId, String title, String message, String[][] options) static void
hideFollowUpMenu
(int menuId) static void
static void
infoMessage
(String message) static void
static void
infoPopupReliable
(String message, float duration, int align, int top, int left, int bottom, int right) static void
static void
static void
labelReliable
(String message, float duration, float worldx, float worldy) static void
static void
menuChoose
(mindustry.gen.Player player, int menuId, int option) static void
static int
registerMenu
(Menus.MenuListener listener) Register a *global* menu listener.static int
registerTextInput
(Menus.TextInputListener listener) Register a *global* text input listener.static void
removeWorldLabel
(int id) static void
setHudText
(String message) static void
setHudTextReliable
(String message) TCP versionstatic void
textInput
(int textInputId, String title, String message, int textLength, String def, boolean numeric) static void
textInputResult
(mindustry.gen.Player player, int textInputId, String text) static void
warningToast
(int unicode, String text)
-
Constructor Details
-
Menus
public Menus()
-
-
Method Details
-
registerMenu
Register a *global* menu listener. If no option is chosen, the option is returned as -1. -
registerTextInput
Register a *global* text input listener. If no text is provided, the text is returned as null. -
followUpMenu
-
hideFollowUpMenu
public static void hideFollowUpMenu(int menuId) -
textInput
-
textInputResult
-
setHudText
-
hideHudText
public static void hideHudText() -
setHudTextReliable
TCP version -
announce
-
infoMessage
-
infoPopup
public static void infoPopup(String message, float duration, int align, int top, int left, int bottom, int right) -
label
-
infoPopupReliable
public static void infoPopupReliable(String message, float duration, int align, int top, int left, int bottom, int right) -
labelReliable
-
infoToast
-
warningToast
-
openURI
-
removeWorldLabel
public static void removeWorldLabel(int id)
-