Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
listbox.qc
Go to the documentation of this file.
1
#include "
listbox.qh
"
2
3
entity
makeXonoticListBox
()
4
{
5
entity
me;
6
me =
NEW
(
XonoticListBox
);
7
me.configureXonoticListBox(me);
8
return
me;
9
}
10
void
XonoticListBox_configureXonoticListBox
(
entity
me)
11
{
12
me.configureListBox(me, me.scrollbarWidth, 1);
// item height gets set up later
13
}
14
void
XonoticListBox_resizeNotify
(
entity
me,
vector
relOrigin,
vector
relSize,
vector
absOrigin,
vector
absSize)
15
{
16
me.itemHeight = me.rowsPerItem * me.fontSize / absSize.y;
17
SUPER
(
XonoticListBox
).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
18
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
XonoticListBox
Definition
listbox.qh:4
NEW
#define NEW(cname,...)
Definition
oo.qh:117
SUPER
#define SUPER(cname)
Definition
oo.qh:231
vector
vector
Definition
self.qh:92
XonoticListBox_resizeNotify
void XonoticListBox_resizeNotify(entity me, vector relOrigin, vector relSize, vector absOrigin, vector absSize)
Definition
listbox.qc:14
XonoticListBox_configureXonoticListBox
void XonoticListBox_configureXonoticListBox(entity me)
Definition
listbox.qc:10
makeXonoticListBox
entity makeXonoticListBox()
Definition
listbox.qc:3
listbox.qh
menu
xonotic
listbox.qc
Generated on
for Xonotic QuakeC by
1.14.0