Xonotic
textslider.qh
Go to the documentation of this file.
1
#pragma once
2
3
// Note:
4
// to use this, you FIRST call configureSliderVisuals, then multiple times addValue, then configureTextSlider
5
#include "
slider.qh
"
6
CLASS
(
TextSlider
,
Slider
)
7
METHOD
(
TextSlider
, valueToText,
string
(
entity
,
float
));
8
METHOD
(
TextSlider
, valueToIdentifier,
string
(
entity
,
float
));
9
METHOD
(
TextSlider
, setValueFromIdentifier_allowAnim,
void
(
entity
,
string
,
bool
));
10
METHOD
(
TextSlider
, setValueFromIdentifier_noAnim,
void
(
entity
,
string
));
11
METHOD
(
TextSlider
, setValueFromIdentifier,
void
(
entity
,
string
));
12
METHOD
(
TextSlider
, getIdentifier,
string
(
entity
));
13
METHOD
(
TextSlider
, clearValues,
void
(
entity
));
14
METHOD
(
TextSlider
, addValue,
void
(
entity
,
string
,
string
));
15
METHOD
(
TextSlider
, insertValue,
void
(
entity
,
float
,
string
,
string
));
16
METHOD
(
TextSlider
, configureTextSliderValues,
void
(
entity
,
string
));
17
ATTRIBARRAY
(
TextSlider
, valueStrings,
string
, 256);
18
ATTRIBARRAY
(
TextSlider
, valueIdentifiers,
string
, 256);
19
ATTRIB
(
TextSlider
, nValues,
int
, 0);
20
ENDCLASS
(
TextSlider
)
CLASS
CLASS(Object) Object
Definition:
oo.qh:318
entity
entity() spawn
slider.qh
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
ATTRIB
#define ATTRIB(...)
Definition:
oo.qh:136
ENDCLASS
#define ENDCLASS(cname)
Definition:
oo.qh:269
ATTRIBARRAY
#define ATTRIBARRAY(cname, name, type, cnt)
Definition:
oo.qh:254
Slider
Definition:
slider.qh:6
TextSlider
Definition:
textslider.qh:6
menu
item
textslider.qh
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13