2 CLASS(NexuizModButton) EXTENDS(NexuizButton)
3 METHOD(NexuizModButton, configureNexuizModButton, void(entity))
4 ENDCLASS(NexuizModButton)
5 entity makeNexuizModButton();
6 void NexuizModButton_Click(entity me, entity other);
10 entity makeNexuizModButton()
13 me = spawnNexuizModButton();
14 me.configureNexuizModButton(me);
18 void NexuizModButton_Click(entity me, entity other)
20 if (cvar_string("menu_slist_modfilter") == "havoc")
21 cmd("gamedir data; menu_restart");
23 cmd("gamedir havoc; menu_restart");
26 void configureNexuizModButtonNexuizModButton(entity me)
28 me.configureNexuizButton(me, "", '0 0 0');
29 me.onClick = NexuizModButton_Click;
30 me.onClickEntity = me;
32 if (cvar_string("menu_slist_modfilter") == "havoc")
33 me.text = "Switch to Nexuiz mode";
35 me.text = "Switch to Havoc mode";