Draw an "override" checkbox that unrolls into a slider in provided range when checked.
См. определение в файле DbgUI.c строка 94
95 {
96 if (sameLine)
98
99 bool enable;
100
101 DbgUI.PushID_Str(
id+
"_override");
102 DbgUI.Check(
"override", enable);
104
105 if (enable)
106 {
108 float tmp = value * (float)precision;
109
110 DbgUI.PushID_Str(
id+
"_slider");
111 DbgUI.SliderFloat(
"", tmp, min * (
float)precision, max * (
float)precision);
113
114 tmp = tmp / (float)precision;
116 DbgUI.PushID_Str(
id+
"_slider_text");
119
120 value = tmp;
121 return true;
122 }
123
124 return false;
125 }
proto string ToString(bool simple=true)
Перекрестные ссылки DbgUI() и float::ToString().