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"
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);
CLASS(Object) Object
Definition: oo.qh:318
entity() spawn
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
#define ATTRIB(...)
Definition: oo.qh:136
#define ENDCLASS(cname)
Definition: oo.qh:269
#define ATTRIBARRAY(cname, name, type, cnt)
Definition: oo.qh:254
Definition: slider.qh:6