Xonotic
slider.qh
Go to the documentation of this file.
1
#pragma once
2
3
// Note:
4
// to use this, you FIRST call configureSliderVisuals, then configureSliderValues
5
#include "
label.qh
"
6
CLASS
(
Slider
,
Label
)
7
METHOD
(
Slider
, resizeNotify,
void
(
entity
,
vector
,
vector
,
vector
,
vector
));
8
METHOD
(
Slider
, configureSliderVisuals,
void
(
entity
,
float
,
float
,
float
,
string
));
9
METHOD
(
Slider
, configureSliderValues,
void
(
entity
,
float
,
float
,
float
,
float
,
float
,
float
));
10
METHOD
(
Slider
, draw,
void
(
entity
));
11
METHOD
(
Slider
, keyDown,
float
(
entity
,
float
,
float
,
float
));
12
METHOD
(
Slider
, keyUp,
float
(
entity
,
float
,
float
,
float
));
13
METHOD
(
Slider
, mousePress,
bool
(
Slider
this
,
vector
pos));
14
METHOD
(
Slider
, mouseDrag,
float
(
entity
,
vector
));
15
METHOD
(
Slider
, mouseRelease,
float
(
entity
,
vector
));
16
METHOD
(
Slider
, valueToText,
string
(
entity
,
float
));
17
METHOD
(
Slider
, toString,
string
(
entity
));
18
METHOD
(
Slider
, setValue_allowAnim,
void
(
entity
,
float
,
bool
));
19
METHOD
(
Slider
, setValue_noAnim,
void
(
entity
,
float
));
20
METHOD
(
Slider
, setValue,
void
(
entity
,
float
));
21
METHOD
(
Slider
, setSliderValue,
void
(
entity
,
float
));
22
METHOD
(
Slider
, showNotify,
void
(
entity
));
23
ATTRIB
(
Slider
, src,
string
);
24
ATTRIB
(
Slider
, focusable,
float
, 1);
25
ATTRIB
(
Slider
, allowFocusSound,
float
, 1);
26
ATTRIB
(
Slider
, value,
float
, 0);
27
ATTRIB
(
Slider
, animated,
float
, 1);
28
ATTRIB
(
Slider
, sliderValue,
float
, 0);
29
ATTRIB
(
Slider
, sliderAnim,
entity
);
30
ATTRIB
(
Slider
, valueMin,
float
, 0);
31
ATTRIB
(
Slider
, valueMax,
float
, 0);
32
ATTRIB
(
Slider
, valueStep,
float
, 0);
33
ATTRIB
(
Slider
, valueDigits,
float
, 0);
34
ATTRIB
(
Slider
, valueKeyStep,
float
, 0);
35
ATTRIB
(
Slider
, valuePageStep,
float
, 0);
36
ATTRIB
(
Slider
, valueDisplayMultiplier,
float
, 1.0);
37
ATTRIB
(
Slider
, textSpace,
float
, 0);
38
ATTRIB
(
Slider
, controlWidth,
float
, 0);
39
ATTRIB
(
Slider
,
pressed
,
float
, 0);
40
ATTRIB
(
Slider
, pressOffset,
float
, 0);
41
ATTRIB
(
Slider
, previousValue,
float
, 0);
42
ATTRIB
(
Slider
, tolerance,
vector
,
'0 0 0'
);
// drag tolerance
43
ATTRIB
(
Slider
,
disabled
,
float
, 0);
44
ATTRIB
(
Slider
,
color
,
vector
,
'1 1 1'
);
45
ATTRIB
(
Slider
, color2,
vector
,
'1 1 1'
);
46
ATTRIB
(
Slider
, colorD,
vector
,
'1 1 1'
);
47
ATTRIB
(
Slider
,
colorC
,
vector
,
'1 1 1'
);
48
ATTRIB
(
Slider
,
colorF
,
vector
,
'1 1 1'
);
49
ATTRIB
(
Slider
, disabledAlpha,
float
, 0.3);
50
ENDCLASS
(
Slider
)
color
vector color
Definition:
dpextensions.qc:2415
CLASS
CLASS(Object) Object
Definition:
oo.qh:318
entity
entity() spawn
disabled
bool disabled
Definition:
colorpicker_string.qc:3
METHOD
#define METHOD(cname, name, prototype)
Definition:
oo.qh:257
ATTRIB
#define ATTRIB(...)
Definition:
oo.qh:136
label.qh
Label
Definition:
label.qh:4
vector
vector(float skel, float bonenum) _skel_get_boneabs_hidden
colorC
vector colorC
Definition:
borderimage.qh:25
ENDCLASS
#define ENDCLASS(cname)
Definition:
oo.qh:269
pressed
bool pressed
Definition:
picker.qc:3
Slider
Definition:
slider.qh:6
colorF
vector colorF
Definition:
borderimage.qh:25
menu
item
slider.qh
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13