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

◆ ButtonHighlight()

void ButtonHighlight ( Widget w)
protected

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

1348 {
1349 ButtonWidget wb;
1350 if (Class.CastTo(wb, w))
1351 {
1352 if (wb.GetName() == "ButtonHide")
1353 {
1354 ImageWidget iw = ImageWidget.Cast(wb.FindAnyWidget(wb.GetName() + "Icon"));
1355 iw.SetColor(ARGB(255, 0, 0, 0));
1356 }
1357 else
1358 {
1359 wb.SetTextColor(ARGB(255, 0, 0, 0));
1360 }
1361 }
1362 }
Super root of all classes in Enforce script.
Определения EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB() и Class::CastTo().

Используется в OnMouseEnter().