2 CLASS(XonoticDialog) EXTENDS(Dialog)
3 // still to be customized by user
5 ATTRIB(XonoticDialog, closable, float, 1)
6 ATTRIB(XonoticDialog, title, string, _("Form1")) // ;)
7 ATTRIB(XonoticDialog, color, vector, '1 0.5 1')
8 ATTRIB(XonoticDialog, intendedWidth, float, 0)
9 ATTRIB(XonoticDialog, rows, float, 3)
10 ATTRIB(XonoticDialog, columns, float, 2)
12 ATTRIB(XonoticDialog, marginTop, float, SKINMARGIN_TOP) // pixels
13 ATTRIB(XonoticDialog, marginBottom, float, SKINMARGIN_BOTTOM) // pixels
14 ATTRIB(XonoticDialog, marginLeft, float, SKINMARGIN_LEFT) // pixels
15 ATTRIB(XonoticDialog, marginRight, float, SKINMARGIN_RIGHT) // pixels
16 ATTRIB(XonoticDialog, columnSpacing, float, SKINMARGIN_COLUMNS) // pixels
17 ATTRIB(XonoticDialog, rowSpacing, float, SKINMARGIN_ROWS) // pixels
18 ATTRIB(XonoticDialog, rowHeight, float, SKINFONTSIZE_NORMAL * SKINHEIGHT_NORMAL) // pixels
19 ATTRIB(XonoticDialog, titleHeight, float, SKINFONTSIZE_TITLE * SKINHEIGHT_TITLE) // pixels
20 ATTRIB(XonoticDialog, titleFontSize, float, SKINFONTSIZE_TITLE) // pixels
22 ATTRIB(XonoticDialog, backgroundImage, string, SKINGFX_DIALOGBORDER)
23 ATTRIB(XonoticDialog, borderLines, float, SKINHEIGHT_DIALOGBORDER)
24 ATTRIB(XonoticDialog, closeButtonImage, string, SKINGFX_CLOSEBUTTON)
25 ATTRIB(XonoticDialog, zoomedOutTitleBarPosition, float, SKINHEIGHT_ZOOMEDTITLE * 0.5 - 0.5)
26 ATTRIB(XonoticDialog, zoomedOutTitleBar, float, SKINHEIGHT_ZOOMEDTITLE != 0)
28 ATTRIB(XonoticDialog, alpha, float, SKINALPHA_TEXT)
30 METHOD(XonoticDialog, configureDialog, void(entity))
31 ENDCLASS(XonoticDialog)
36 void XonoticDialog_configureDialog(entity me)
39 SUPER(XonoticDialog).configureDialog(me);
40 me.tooltip = getZonedTooltipForIdentifier(me.classname);