Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
mixedslider.qh
Go to the documentation of this file.
1#pragma once
2
3// Note:
4// this is a numeric slider allowing replacement of some numbers with text, hence a "mixed" slider
5// that's why addText takes a string (the text) and a float (the corresponding number)
6// to use this, you FIRST call configureSliderVisuals, then multiple times addRange and/or addText, then configureMixedSlider
7#include "slider.qh"
16 METHOD(MixedSlider, addRange, void(entity, float, float, float));
17 METHOD(MixedSlider, addText, void(entity, string, float));
18 METHOD(MixedSlider, insertRange, void(entity, int, float, float, float));
19 METHOD(MixedSlider, insertText, void(entity, int, string, float));
23 /* `value` ranges from 0 to nValues - 1,
24 * for each `value` there is a `valueNumberIdentifiers` and `valueStrings` entry,
25 * representing the value to set the cvar, and what to display, respectively
26 */
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
string valueStrings[256]
virtual void insertText()
float valueNumberIdentifiers[256]
virtual void addRange()
virtual void getNumberIdentifier()
virtual void rangedIdentifierToText()
virtual void configureMixedSliderValues()
virtual void clearValues()
virtual void adjustDigitsForStep()
virtual void valueToText()
virtual void insertRange()
virtual void valueToNumberIdentifier()
virtual void setValueFromNumberIdentifier()
virtual void addText()
ATTRIB(Slider, src, string)
#define ATTRIBARRAY(cname, name, type, cnt)
Definition oo.qh:266
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define METHOD(cname, name, prototype)
Definition oo.qh:269