Xonotic
dialog.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../item/dialog.qh"
5  // still to be customized by user
6  /*
7  ATTRIB(XonoticDialog, closable, float, 1);
8  ATTRIB(XonoticDialog, title, string, _("Form1")); // ;);
9  ATTRIB(XonoticDialog, color, vector, '1 0.5 1');
10  ATTRIB(XonoticDialog, intendedWidth, float, 0);
11  ATTRIB(XonoticDialog, rows, float, 3);
12  ATTRIB(XonoticDialog, columns, float, 2);
13  */
14  ATTRIB(XonoticDialog, marginTop, float, SKINMARGIN_TOP); // pixels
15  ATTRIB(XonoticDialog, marginBottom, float, SKINMARGIN_BOTTOM); // pixels
16  ATTRIB(XonoticDialog, marginLeft, float, SKINMARGIN_LEFT); // pixels
17  ATTRIB(XonoticDialog, marginRight, float, SKINMARGIN_RIGHT); // pixels
18  ATTRIB(XonoticDialog, columnSpacing, float, SKINMARGIN_COLUMNS); // pixels
19  ATTRIB(XonoticDialog, rowSpacing, float, SKINMARGIN_ROWS); // pixels
20  ATTRIB(XonoticDialog, rowHeight, float, SKINFONTSIZE_NORMAL * SKINHEIGHT_NORMAL); // pixels
21  ATTRIB(XonoticDialog, titleHeight, float, SKINFONTSIZE_TITLE * SKINHEIGHT_TITLE); // pixels
22  ATTRIB(XonoticDialog, titleFontSize, float, SKINFONTSIZE_TITLE); // pixels
23 
24  ATTRIB(XonoticDialog, backgroundImage, string, SKINGFX_DIALOGBORDER);
25  ATTRIB(XonoticDialog, borderLines, float, SKINHEIGHT_DIALOGBORDER);
26  ATTRIB(XonoticDialog, closeButtonImage, string, SKINGFX_CLOSEBUTTON);
27  ATTRIB(XonoticDialog, zoomedOutTitleBarPosition, float, SKINHEIGHT_ZOOMEDTITLE * 0.5 - 0.5);
28  ATTRIB(XonoticDialog, zoomedOutTitleBar, float, SKINHEIGHT_ZOOMEDTITLE != 0);
29 
30  ATTRIB(XonoticDialog, alpha, float, SKINALPHA_TEXT);
31 
32  METHOD(XonoticDialog, configureDialog, void(entity));
33 ENDCLASS(XonoticDialog)
34 
Definition: dialog.qh:19
float alpha
Definition: items.qc:14
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
entity currentDialog
Definition: dialog.qh:35
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define ENDCLASS(cname)
Definition: oo.qh:269