MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / menuCommand

Method menuCommand

src/main/java/ui/controls/form/DefForm.java:154–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 public String menuCommand() {
155 int size = menuCommands.size();
156 if (cf.swapMenu) {
157 if (size == 2) {
158 MenuCommand commandScreen = findCommand(MenuCommand.SCREEN);
159 return commandScreen == null ? SR.MS_CANCEL : commandScreen.name;
160 } else if (size > 1) {
161 return SR.MS_MENU;
162 } else {
163 return "";
164 }
165 } else {
166 if (size > 1) {
167 return SR.MS_MENU;
168 } else {
169 MenuCommand commandOk = findCommand(MenuCommand.OK);
170 return commandOk == null ? SR.MS_OK : commandOk.name;
171 }
172 }
173 }
174
175 public void menuPressed() {
176 if (menuCommand().equals(SR.MS_MENU)) {

Callers 3

menuPressedMethod · 0.95
touchLeftCommandMethod · 0.95
touchRightCommandMethod · 0.95

Calls 2

findCommandMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected