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

◆ Preview()

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

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

748 {
749 if (m_Selected)
750 return;
751
752 switch (w)
753 {
754 case m_Root:
755 case m_Favorite:
756 {
757 m_Root.SetColor(ARGB(255, 0, 0, 0));
758 m_Root.SetAlpha(1);
759 UpdateColors();
760
761 m_ServerName.SetColor(ARGB(255, 255, 0, 0));
762 if (!IsOnline())
763 {
764 m_ServerName.SetAlpha(0.5);
765 }
766 break;
767 }
768 }
769 }
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().