DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ButtonSetTextColorConsole()

void ScriptedWidgetEventHandler::ButtonSetTextColorConsole ( Widget w,
int color )
inlineprotected

См. определение в файле OptionSelectorBase.c строка 287

288 {
289 if (!w)
290 return;
291
292 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
293 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
294 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
295
296 if (label)
297 {
298 label.SetColor(color);
299 }
300
301 if (text)
302 {
303 text.SetColor(color);
304 }
305
306 if (text2)
307 {
308 text2.SetColor(color);
309 }
310 }

Используется в ColorDisabledConsole(), ColorHighlightConsole() и ColorNormalConsole().