Public feed #893676

Etwas

public c v1 · immutable
Raw Edit
·published 2008-02-06 10:33 UTC
rendered paste body
Index: src/client/cl_menu.c===================================================================--- src/client/cl_menu.c        (Revision 14480)+++ src/client/cl_menu.c        (Arbeitskopie)@@ -352,6 +352,18 @@        MN_MapInfo(-1); } +static void MN_TestPopupList_f (void)+{+       static linkedList_t* list = NULL;+       LIST_Delete(list);+       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,@@ -378,6 +390,8 @@        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();         /* reset ufopedia, basemanagement and other subsystems */