63 if (me.ToSDialog.shouldShow())
65 me.ToSDialog.loadXonoticToS(me.ToSDialog);
68 else if(me.firstRunDialog.shouldShow())
82 me.removeItem(me.mainNexposee, me.disconnectDialog);
83 me.disconnectDialogVisibility = 0;
91 i = me.disconnectDialog;
92 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
93 n.setNexposee(n, i,
'0.5 1.2 0.0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
94 me.disconnectDialogVisibility = 1;
104 if(me.text == _(
"Do not press this button again!"))
107 me.setText(me, _(
"Do not press this button again!"));
116 i.configureDialog(i);
117 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
121 i.configureDialog(i);
122 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
127 i.configureDialog(i);
128 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
131 i.configureDialog(i);
132 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
135 i.configureDialog(i);
136 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
139 i.configureDialog(i);
140 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
143 i.configureDialog(i);
144 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
147 i.configureDialog(i);
148 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
151 i.configureDialog(i);
152 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
155 i.configureDialog(i);
156 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
159 i.configureDialog(i);
160 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
163 i.configureDialog(i);
164 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
167 i.configureDialog(i);
168 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
171 i.configureDialog(i);
172 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
175 i.configureDialog(i);
176 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
179 i.configureDialog(i);
180 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
183 i.configureDialog(i);
184 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
187 i.configureDialog(i);
188 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
191 i.configureDialog(i);
192 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
195 i.configureDialog(i);
196 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
199 i.configureDialog(i);
200 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
203 i.configureDialog(i);
204 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
207 i.configureDialog(i);
208 me.addItemRightCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
212 i.configureDialog(i);
213 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
216 i.configureDialog(i);
217 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
220 i.configureDialog(i);
221 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
224 i.configureDialog(i);
225 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
228 i.configureDialog(i);
229 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
232 i.configureDialog(i);
233 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
238 i.configureDialog(i);
239 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
244 i.configureDialog(i);
245 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
248 i.configureDialog(i);
249 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
252 i.configureDialog(i);
253 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
258 i.configureDialog(i);
259 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
262 i.configureDialog(i);
263 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
268 i.configureDialog(i);
269 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
274 i.configureDialog(i);
275 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z * SKINALPHA_DIALOG_SANDBOXTOOLS);
280 i.configureDialog(i);
281 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
284 i.configureDialog(i);
285 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
288 i.configureDialog(i);
289 me.addItemCentered(me, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z * SKINALPHA_DIALOG_SANDBOXTOOLS);
308 i.configureDialog(i);
309 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
310 n.setNexposee(n, i, SKINPOSITION_DIALOG_SINGLEPLAYER, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
313 i.configureDialog(i);
314 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
315 n.setNexposee(n, i, SKINPOSITION_DIALOG_MULTIPLAYER, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
318 i.configureDialog(i);
319 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
320 n.setNexposee(n, i, SKINPOSITION_DIALOG_SETTINGS, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
323 i.configureDialog(i);
324 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
325 n.setNexposee(n, i, SKINPOSITION_DIALOG_CREDITS, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
326 n.pullNexposee(n, i,
eY * (SKINHEIGHT_TITLE * SKINFONTSIZE_TITLE /
conheight));
330 i.configureDialog(i);
331 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
332 n.setNexposee(n, i,
'0.5 1.2 0.0', SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
333 n.pullNexposee(n, i,
eY * (SKINHEIGHT_TITLE * SKINFONTSIZE_TITLE /
conheight));
334 me.disconnectDialog = i;
337 i.configureDialog(i);
338 n.addItemCentered(n, i, i.intendedWidth *
eX + i.intendedHeight *
eY, SKINALPHAS_MAINMENU_z);
339 n.setNexposee(n, i, SKINPOSITION_DIALOG_QUIT, SKINALPHAS_MAINMENU_x, SKINALPHAS_MAINMENU_y);
340 n.pullNexposee(n, i,
eY * (SKINHEIGHT_TITLE * SKINFONTSIZE_TITLE /
conheight));
342 me.addItem(me, n,
'0 0 0',
'1 1 0', SKINALPHAS_MAINMENU_z);
343 me.moveItemAfter(me, n,
NULL);
345 me.initializeDialog(me, n);
346 me.disconnectDialogVisibility = 1;
void DialogOpenButton_Click(entity button, entity tab)
void DialogOpenButton_Click_withCoords(entity button, entity tab, vector theOrigin, vector theSize)
void DemoButton_Click(entity me, entity other)
void MainWindow_draw(entity me)
#define MUTATOR_CALLHOOK(id,...)
void MainWindow_configureMainWindow(entity me)