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

◆ OnMouseLeave()

override bool ScriptConsoleMenuElement::OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected

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

114 {
115 super.OnMouseLeave(w, enterW, x, y);
116
117 if (w == m_ContextButton)
118 {
119 if (!m_IsSelected)
120 {
121 m_ButtonText.SetColor(ARGB(255, 255, 255, 255));
122 }
123 else
124 {
125 m_ButtonText.SetColor(ARGB(255, 52, 152, 219));
126 }
127
128 if (!IsSubElementButton(enterW) && enterW != m_ContextSubGrid && !IsChildOfWidget(enterW, m_ContextSubGrid))
129 {
130 m_ContextSubGrid.Show(false);
131 }
132
133 return true;
134 }
135
136 return false;
137 }
Icon x
Icon y
TextWidget m_ButtonText
Определения ScriptConsoleMenuElement.c:5
bool IsChildOfWidget(Widget child, Widget parent)
Определения ScriptConsoleMenuElement.c:98
ButtonWidget m_ContextButton
Определения ScriptConsoleMenuElement.c:4
bool IsSubElementButton(Widget w)
Определения ScriptConsoleMenuElement.c:57
GridSpacerWidget m_ContextSubGrid
Определения ScriptConsoleMenuElement.c:6
int ARGB(int a, int r, int g, int b)
Определения proto.c:322

Перекрестные ссылки ARGB(), IsChildOfWidget(), IsSubElementButton(), m_ButtonText, m_ContextButton, m_ContextSubGrid, m_IsSelected, x и y.