Xonotic
tab.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../item/tab.qh"
5  // still to be customized by user
6  /*
7  ATTRIB(XonoticTab, intendedWidth, float, 0);
8  ATTRIB(XonoticTab, rows, float, 3);
9  ATTRIB(XonoticTab, columns, float, 2);
10  */
11  METHOD(XonoticTab, showNotify, void(entity));
12 
13  ATTRIB(XonoticTab, marginTop, float, 0); // pixels
14  ATTRIB(XonoticTab, marginBottom, float, 0); // pixels
15  ATTRIB(XonoticTab, marginLeft, float, 0); // pixels
16  ATTRIB(XonoticTab, marginRight, float, 0); // pixels
17  ATTRIB(XonoticTab, columnSpacing, float, SKINMARGIN_COLUMNS); // pixels
18  ATTRIB(XonoticTab, rowSpacing, float, SKINMARGIN_ROWS); // pixels
19  ATTRIB(XonoticTab, rowHeight, float, SKINFONTSIZE_NORMAL * SKINHEIGHT_NORMAL); // pixels
20 
21  ATTRIB(XonoticTab, backgroundImage, string);
22 
23  // using "titleTooltip" instead of "tooltip" so that
24  // the tooltip search function doesn't find it
25  // .tooltip should be set only in the item displaying the tab title
26  ATTRIB(XonoticTab, titleTooltip, string);
CLASS(Object) Object
Definition: oo.qh:318
Definition: tab.qh:4
Definition: tab.qh:4
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define ENDCLASS(cname)
Definition: oo.qh:269