Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
inputbox.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
label.qh
"
4
CLASS
(
InputBox
,
Label
)
5
METHOD
(
InputBox
,
configureInputBox
,
void
(
entity
,
string
,
float
,
float
,
string
));
6
METHOD
(
InputBox
,
draw
,
void
(
entity
));
7
METHOD
(
InputBox
,
setText
,
void
(
entity
,
string
));
8
METHOD
(
InputBox
,
enterText
,
void
(
entity
,
string
));
9
METHOD
(
InputBox
,
keyDown
,
float
(
entity
,
float
,
float
,
float
));
10
METHOD
(
InputBox
,
mouseMove
,
float
(
entity
,
vector
));
11
METHOD
(
InputBox
,
mouseRelease
,
float
(
entity
,
vector
));
12
METHOD
(
InputBox
,
mousePress
,
bool
(
InputBox
this
,
vector
pos));
13
METHOD
(
InputBox
,
mouseDrag
,
float
(
entity
,
vector
));
14
METHOD
(
InputBox
,
showNotify
,
void
(
entity
));
15
METHOD
(
InputBox
,
resizeNotify
,
void
(
entity
,
vector
,
vector
,
vector
,
vector
));
16
17
ATTRIB
(
InputBox
, src,
string
);
18
19
ATTRIB
(
InputBox
,
cursorPos
,
float
, 0);
// characters
20
ATTRIB
(
InputBox
,
scrollPos
,
float
, 0);
// widths
21
22
ATTRIB
(
InputBox
,
focusable
,
bool
,
true
);
23
ATTRIB
(
InputBox
,
allowFocusSound
,
bool
,
true
);
24
ATTRIB
(
InputBox
,
disabled
,
float
, 0);
25
ATTRIB
(
InputBox
,
lastChangeTime
,
float
, 0);
26
ATTRIB
(
InputBox
,
dragScrollTimer
,
float
, 0);
27
ATTRIB
(
InputBox
,
dragScrollPos
,
vector
, '0 0 0');
28
ATTRIB
(
InputBox
,
pressed
,
bool
,
false
);
29
ATTRIB
(
InputBox
,
editColorCodes
,
bool
,
true
);
30
ATTRIB
(
InputBox
,
forbiddenCharacters
,
string
,
""
);
31
ATTRIB
(
InputBox
,
allowedCharacters
,
string
,
""
);
32
ATTRIB
(
InputBox
,
color
,
vector
, '1 1 1');
33
ATTRIB
(
InputBox
,
colorF
,
vector
, '1 1 1');
34
ATTRIB
(
InputBox
,
maxLength
,
float
, 255);
// if negative, it counts bytes, not chars
35
ATTRIB
(
InputBox
,
applyButton
,
entity
);
36
37
ATTRIB
(
InputBox
,
enableClearButton
,
bool
,
true
);
38
ATTRIB
(
InputBox
, clearButton,
entity
);
39
ATTRIB
(
InputBox
,
cb_width
,
float
, 0);
40
ATTRIB
(
InputBox
,
cb_pressed
,
bool
,
false
);
41
ATTRIB
(
InputBox
,
cb_focused
,
bool
,
false
);
42
ATTRIB
(
InputBox
,
cb_color
,
vector
, '1 1 1');
43
ATTRIB
(
InputBox
,
cb_colorF
,
vector
, '1 1 1');
44
ATTRIB
(
InputBox
,
cb_colorC
,
vector
, '1 1 1');
45
ENDCLASS
(
InputBox
)
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
InputBox
Definition
inputbox.qh:4
InputBox::cb_colorC
vector cb_colorC
Definition
inputbox.qh:44
InputBox::maxLength
float maxLength
Definition
inputbox.qh:34
InputBox::cb_focused
bool cb_focused
Definition
inputbox.qh:41
InputBox::color
vector color
Definition
inputbox.qh:32
InputBox::lastChangeTime
float lastChangeTime
Definition
inputbox.qh:25
InputBox::ATTRIB
ATTRIB(InputBox, src, string)
InputBox::disabled
float disabled
Definition
inputbox.qh:24
InputBox::cb_color
vector cb_color
Definition
inputbox.qh:42
InputBox::draw
virtual void draw()
InputBox::cursorPos
float cursorPos
Definition
inputbox.qh:19
InputBox::enableClearButton
bool enableClearButton
Definition
inputbox.qh:37
InputBox::keyDown
virtual void keyDown()
InputBox::dragScrollTimer
float dragScrollTimer
Definition
inputbox.qh:26
InputBox::focusable
bool focusable
Definition
inputbox.qh:22
InputBox::allowFocusSound
bool allowFocusSound
Definition
inputbox.qh:23
InputBox::setText
virtual void setText()
InputBox::mouseDrag
virtual void mouseDrag()
InputBox::colorF
vector colorF
Definition
inputbox.qh:33
InputBox::editColorCodes
bool editColorCodes
Definition
inputbox.qh:29
InputBox::mouseMove
virtual void mouseMove()
InputBox::enterText
virtual void enterText()
InputBox::mouseRelease
virtual void mouseRelease()
InputBox::cb_width
float cb_width
Definition
inputbox.qh:39
InputBox::resizeNotify
virtual void resizeNotify()
InputBox::pressed
bool pressed
Definition
inputbox.qh:28
InputBox::cb_pressed
bool cb_pressed
Definition
inputbox.qh:40
InputBox::allowedCharacters
string allowedCharacters
Definition
inputbox.qh:31
InputBox::scrollPos
float scrollPos
Definition
inputbox.qh:20
InputBox::showNotify
virtual void showNotify()
InputBox::configureInputBox
virtual void configureInputBox()
InputBox::dragScrollPos
vector dragScrollPos
Definition
inputbox.qh:27
InputBox::forbiddenCharacters
string forbiddenCharacters
Definition
inputbox.qh:30
InputBox::cb_colorF
vector cb_colorF
Definition
inputbox.qh:43
InputBox::mousePress
virtual void mousePress()
Definition
inputbox.qc:76
Label
Definition
label.qh:4
true
#define true
Definition
csprogsdefs.qh:5
false
#define false
Definition
csprogsdefs.qh:6
applyButton
entity applyButton
Definition
slider.qc:38
label.qh
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
METHOD
#define METHOD(cname, name, prototype)
Definition
oo.qh:269
vector
vector
Definition
self.qh:92
this
entity this
Definition
self.qh:72
menu
item
inputbox.qh
Generated on
for Xonotic QuakeC by
1.14.0