Xonotic
textbox.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
listbox.qh
"
4
5
// slightly hacky multiline textbox with scrollbar
6
CLASS
(
XonoticTextBox
,
XonoticListBox
)
7
METHOD
(
XonoticTextBox
, destroy,
void
(
entity
));
8
ATTRIB
(
XonoticTextBox
, rowsPerItem,
float
, 1);
9
METHOD
(
XonoticTextBox
, resizeNotify,
void
(
entity
,
vector
,
vector
,
vector
,
vector
));
10
METHOD
(
XonoticTextBox
, drawListBoxItem,
void
(
entity
,
int
,
vector
,
bool
,
bool
));
11
ATTRIB
(
XonoticTextBox
, allowFocusSound,
float
, 0);
12
ATTRIB
(
XonoticTextBox
,
alpha
,
float
, SKINALPHA_TEXT);
13
ATTRIB
(
XonoticTextBox
, fontSize,
float
, SKINFONTSIZE_NORMAL);
14
ATTRIB
(
XonoticTextBox
, realFontSize,
vector
,
'0 0 0'
);
15
ATTRIB
(
XonoticTextBox
, itemAbsSize,
vector
,
'0 0 0'
);
16
METHOD
(
XonoticTextBox
, setText,
void
(
entity
,
string
));
17
METHOD
(
XonoticTextBox
, getTextBoxLine,
string
(
entity
,
int
));
18
ATTRIB
(
XonoticTextBox
, nItems,
int
, 0);
19
ATTRIB
(
XonoticTextBox
, stringList,
int
, -1);
20
ATTRIB
(
XonoticTextBox
, selectionDoesntMatter,
bool
,
true
);
21
ENDCLASS
(
XonoticTextBox
)
22
entity
makeXonoticTextBox
();
23
alpha
float alpha
Definition:
items.qc:14
CLASS
CLASS(Object) Object
Definition:
oo.qh:318
entity
entity() spawn
listbox.qh
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
ATTRIB
#define ATTRIB(...)
Definition:
oo.qh:136
makeXonoticTextBox
entity makeXonoticTextBox()
Definition:
textbox.qc:4
vector
vector(float skel, float bonenum) _skel_get_boneabs_hidden
ENDCLASS
#define ENDCLASS(cname)
Definition:
oo.qh:269
XonoticListBox
Definition:
listbox.qh:4
XonoticTextBox
Definition:
textbox.qh:6
menu
xonotic
textbox.qh
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13