2 CLASS(XonoticQuitDialog) EXTENDS(XonoticDialog)
3 METHOD(XonoticQuitDialog, fill, void(entity))
4 ATTRIB(XonoticQuitDialog, title, string, "Quit")
5 ATTRIB(XonoticQuitDialog, color, vector, SKINCOLOR_DIALOG_QUIT)
6 ATTRIB(XonoticQuitDialog, intendedWidth, float, 0.5)
7 ATTRIB(XonoticQuitDialog, rows, float, 3)
8 ATTRIB(XonoticQuitDialog, columns, float, 2)
9 ENDCLASS(XonoticQuitDialog)
13 void XonoticQuitDialog_fill(entity me)
17 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, "Are you sure you want to quit?"));
20 me.TD(me, 1, 1, e = makeXonoticCommandButton("Yes", '1 0 0', "quit", 0));
21 me.TD(me, 1, 1, e = makeXonoticButton("No", '0 1 0'));
22 e.onClick = Dialog_Close;