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

Method Menu_TallySlots

client/src/main/java/jake2/client/Menu.java:4588–4607  ·  view source on GitHub ↗
(menuframework_s menu)

Source from the content-addressed store, hash-verified

4586 }
4587
4588 private static int Menu_TallySlots(menuframework_s menu) {
4589 int i;
4590 int total = 0;
4591
4592 for (i = 0; i < menu.nitems; i++) {
4593 if (((menucommon_s) menu.items[i]).type == MTYPE_LIST) {
4594 int nitems = 0;
4595 String n[] = ((menulist_s) menu.items[i]).itemnames;
4596
4597 while (n[nitems] != null)
4598 nitems++;
4599
4600 total += nitems;
4601 } else {
4602 total++;
4603 }
4604 }
4605
4606 return total;
4607 }
4608
4609 public static void Menulist_DoEnter(menulist_s l) {
4610 int start;

Callers 1

Menu_AddItemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected