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 =
NEW
(
XonoticListBox
);
6
me.configureXonoticListBox(me);
7
return
me;
8
}
9
void
XonoticListBox_configureXonoticListBox
(
entity
me)
10
{
11
me.configureListBox(me, me.scrollbarWidth, 1);
// item height gets set up later
12
}
13
void
XonoticListBox_resizeNotify
(
entity
me,
vector
relOrigin,
vector
relSize,
vector
absOrigin,
vector
absSize)
14
{
15
me.itemHeight = me.rowsPerItem * me.fontSize / absSize.y;
16
SUPER
(
XonoticListBox
).resizeNotify(me, relOrigin, relSize, absOrigin, absSize);
17
}
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:13
XonoticListBox_configureXonoticListBox
void XonoticListBox_configureXonoticListBox(entity me)
Definition
listbox.qc:9
makeXonoticListBox
entity makeXonoticListBox()
Definition
listbox.qc:3
listbox.qh
menu
xonotic
listbox.qc
Generated on
for Xonotic QuakeC by
1.14.0