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

◆ Preview()

void ScriptedWidgetEventHandler::Preview ( Widget w,
int x,
int y )
inlineprivate

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

741 {
742 if (m_Selected)
743 return;
744
745 switch (w)
746 {
747 case m_Root:
748 case m_Favorite:
749 {
750 m_Root.SetColor(ARGB(255, 0, 0, 0));
751 m_Root.SetAlpha(1);
752 UpdateColors();
753
754 m_ServerName.SetColor(ARGB(255, 255, 0, 0));
755 if (!IsOnline())
756 {
757 m_ServerName.SetAlpha(0.5);
758 }
759 break;
760 }
761 }
762 }
Widget m_Root
Определения SizeToChild.c:9
Widget m_Favorite
Определения ServerBrowserEntry.c:4
TextWidget m_ServerName
Определения ServerBrowserEntry.c:7
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB(), IsOnline(), m_Favorite, m_Root, m_Selected, m_ServerName, UpdateColors(), x и y.

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