2 CLASS(MainWindow) EXTENDS(ModalController)
3 METHOD(MainWindow, configureMainWindow, void(entity))
4 ATTRIB(MainWindow, mutatorsDialog, entity, NULL)
5 ATTRIB(MainWindow, mapInfoDialog, entity, NULL)
6 ATTRIB(MainWindow, userbindEditDialog, entity, NULL)
7 ATTRIB(MainWindow, fadedAlpha, float, SKINALPHA_BEHIND)
13 void DemoButton_Click(entity me, entity other)
15 if(me.text == "Do not press this button again!")
16 DialogOpenButton_Click(me, other);
18 me.setText(me, "Do not press this button again!");
21 void configureMainWindowMainWindow(entity me)
25 i = spawnNexuizTeamSelectDialog();
27 me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
29 me.mutatorsDialog = i = spawnNexuizMutatorsDialog();
31 me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
33 me.mapInfoDialog = i = spawnNexuizMapInfoDialog();
35 me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
37 me.userbindEditDialog = i = spawnNexuizUserbindEditDialog();
39 me.addItemCentered(me, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
41 n = spawnNexuizNexposee();
42 if(checkextension("DP_GECKO_SUPPORT"))
44 i = spawnNexuizNewsDialog();
46 n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
47 n.setNexposee(n, i, '0.1 0.1 0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
50 i = spawnNexuizSettingsDialog();
52 n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
53 n.setNexposee(n, i, '0.1 0.9 0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
55 i = spawnNexuizMultiplayerDialog();
57 n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
58 n.setNexposee(n, i, '0.9 0.5 0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
60 i = spawnNexuizQuitDialog();
62 n.addItemCentered(n, i, i.intendedWidth * eX + i.intendedHeight * eY, SKINALPHAS_MAINMENU_z);
63 n.setNexposee(n, i, '0.9 1.2 0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
64 n.pullNexposee(n, i, eY * (SKINHEIGHT_TITLE * SKINFONTSIZE_TITLE / conheight));
65 me.addItem(me, n, '0 0 0', '1 1 0', SKINALPHAS_MAINMENU_z);
66 me.moveItemAfter(me, n, NULL);
68 me.initializeDialog(me, n);
72 // click. The C-word so you can grep for it.