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

Method Menu_AddItem

client/src/main/java/jake2/client/Menu.java:4367–4378  ·  view source on GitHub ↗
(menuframework_s menu, menucommon_s item)

Source from the content-addressed store, hash-verified

4365 }
4366
4367 static void Menu_AddItem(menuframework_s menu, menucommon_s item) {
4368 if (menu.nitems == 0)
4369 menu.nslots = 0;
4370
4371 if (menu.nitems < MAXMENUITEMS) {
4372 menu.items[menu.nitems] = item;
4373 ((menucommon_s) menu.items[menu.nitems]).parent = menu;
4374 menu.nitems++;
4375 }
4376
4377 menu.nslots = Menu_TallySlots(menu);
4378 }
4379
4380 /*
4381 * * Menu_AdjustCursor * * This function takes the given menu, the

Callers 13

Multiplayer_MenuInitMethod · 0.95
Keys_MenuInitMethod · 0.95
Options_MenuInitMethod · 0.95
Game_MenuInitMethod · 0.95
LoadGame_MenuInitMethod · 0.95
SaveGame_MenuInitMethod · 0.95
JoinServer_MenuInitMethod · 0.95
StartServer_MenuInitMethod · 0.95
DMOptions_MenuInitMethod · 0.95
AddressBook_MenuInitMethod · 0.95
PlayerConfig_MenuInitMethod · 0.95

Calls 1

Menu_TallySlotsMethod · 0.95

Tested by

no test coverage detected