5 if (val >= me.nValues)
return "custom";
6 if (val < 0)
return "custom";
7 return me.(valueIdentifiers[val]);
11 if (val >= me.nValues)
return _(
"Custom");
12 if (val < 0)
return _(
"Custom");
13 return me.(valueStrings[val]);
18 for (i = 0; i < me.nValues; ++i)
19 if (me.valueToIdentifier(me, i) == id)
36 return me.valueToIdentifier(me, me.value);
44 me.(valueStrings[me.nValues]) = theString;
45 me.(valueIdentifiers[me.nValues]) = theIdentifier;
51 for (i = me.nValues; i > pos; --i)
53 me.(valueStrings[i]) = me.(valueStrings[i - 1]);
54 me.(valueIdentifiers[i]) = me.(valueIdentifiers[i - 1]);
56 me.(valueStrings[pos]) = theString;
57 me.(valueIdentifiers[pos]) = theIdentifier;
62 me.configureSliderValues(me, 0, 0, me.nValues - 1, 1, 1, 1);
63 me.setValueFromIdentifier_noAnim(me, theDefault);
void TextSlider_setValueFromIdentifier_allowAnim(entity me, string id, bool allowAnim)
string TextSlider_valueToIdentifier(entity me, int val)
string TextSlider_getIdentifier(entity me)
void TextSlider_configureTextSliderValues(entity me, string theDefault)
void TextSlider_insertValue(entity me, int pos, string theString, string theIdentifier)
void TextSlider_addValue(entity me, string theString, string theIdentifier)
void TextSlider_clearValues(entity me)
void TextSlider_setValueFromIdentifier(entity me, string id)
void TextSlider_setValueFromIdentifier_noAnim(entity me, string id)
string TextSlider_valueToText(entity me, int val)