3 #include "../item/textslider.qh"
4 CLASS(XonoticTextSlider, TextSlider)
5 METHOD(XonoticTextSlider, configureXonoticTextSlider, void(entity, string, string));
6 METHOD(XonoticTextSlider, setValue, void(entity, float));
7 METHOD(XonoticTextSlider, setValue_noAnim, void(entity, float));
8 METHOD(XonoticTextSlider, configureXonoticTextSliderValues, void(entity));
9 ATTRIB(XonoticTextSlider, fontSize, float, SKINFONTSIZE_NORMAL);
10 ATTRIB(XonoticTextSlider, valueSpace, float, SKINWIDTH_SLIDERTEXT);
11 ATTRIB(XonoticTextSlider, image, string, SKINGFX_SLIDER);
12 ATTRIB(XonoticTextSlider, tolerance, vector, '0.2 2 0');
13 ATTRIB(XonoticTextSlider, align, float, 0.5);
14 ATTRIB(XonoticTextSlider, color, vector, SKINCOLOR_SLIDER_N);
15 ATTRIB(XonoticTextSlider, colorC, vector, SKINCOLOR_SLIDER_C);
16 ATTRIB(XonoticTextSlider, colorF, vector, SKINCOLOR_SLIDER_F);
17 ATTRIB(XonoticTextSlider, colorD, vector, SKINCOLOR_SLIDER_D);
18 ATTRIB(XonoticTextSlider, color2, vector, SKINCOLOR_SLIDER_S);
20 ATTRIB(XonoticTextSlider, controlledCvar, string);
21 METHOD(XonoticTextSlider, loadCvars, void(entity));
22 METHOD(XonoticTextSlider, saveCvars, void(entity));
23 ATTRIB(XonoticTextSlider, sendCvars, float, 0);
25 ATTRIB(XonoticTextSlider, alpha, float, SKINALPHA_TEXT);
26 ATTRIB(XonoticTextSlider, disabledAlpha, float, SKINALPHA_DISABLED);
27 ENDCLASS(XonoticTextSlider)
28 entity makeXonoticTextSlider_T(string, string theTooltip);
29 entity makeXonoticTextSlider(string); // note: you still need to call addValue and configureXonoticTextSliderValues!