MCPcopy Create free account
hub / github.com/demoth/jake2 / Menu_SelectItem

Method Menu_SelectItem

client/src/main/java/jake2/client/Menu.java:4548–4567  ·  view source on GitHub ↗
(menuframework_s s)

Source from the content-addressed store, hash-verified

4546 }
4547
4548 static boolean Menu_SelectItem(menuframework_s s) {
4549 menucommon_s item = Menu_ItemAtCursor(s);
4550
4551 if (item != null) {
4552 switch (item.type) {
4553 case MTYPE_FIELD:
4554 return Field_DoEnter((menufield_s) item);
4555 case MTYPE_ACTION:
4556 Action_DoEnter((menuaction_s) item);
4557 return true;
4558 case MTYPE_LIST:
4559 // Menulist_DoEnter( ( menulist_s ) item );
4560 return false;
4561 case MTYPE_SPINCONTROL:
4562 // SpinControl_DoEnter( ( menulist_s ) item );
4563 return false;
4564 }
4565 }
4566 return false;
4567 }
4568
4569 private static void Menu_SetStatusBar(menuframework_s m, String string) {
4570 m.statusbar = string;

Callers 2

Default_MenuKeyMethod · 0.95
MenuKeyMethod · 0.95

Calls 3

Menu_ItemAtCursorMethod · 0.95
Field_DoEnterMethod · 0.95
Action_DoEnterMethod · 0.95

Tested by

no test coverage detected