Public feed
#893675
Index: src/client/cl_menu.c===================================================================--- src/client/cl_menu.c (Revision 14480)+++ src/client/cl_menu.c (Arbeitskopie)@@ -352,6 +352,17 @@ MN_MapInfo(-1); } +static void MN_TestPopupList_f (void)+{+ linkedList_t* list = NULL;+ LIST_AddPointer(&list, "Test");+ LIST_AddPointer(&list, "Test 2");+ LIST_AddPointer(&list, "Test 3");+ LIST_AddPointer(&list, "Test 4");++ MN_PopupList("Testtitle", "Testheadline", list, "echo test");+}+ /** * @brief Initialize the menu data hunk, add cvars and commands * @note Also calls the 'reset' functions for production, basemanagement,@@ -377,6 +388,8 @@ Cmd_AddCommand("mn_getmaps", MN_GetMaps_f, "The initial map to show"); Cmd_AddCommand("mn_nextmap", MN_NextMap_f, "Switch to the next multiplayer map"); Cmd_AddCommand("mn_prevmap", MN_PrevMap_f, "Switch to the previous multiplayer map");++ Cmd_AddCommand("mn_test_popuplist", MN_TestPopupList_f, NULL); MN_Init();