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

◆ UpdateOffset()

void NotificationUI::UpdateOffset ( )
inlineprotected

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

149 {
150 UIScriptedMenu menu = UIScriptedMenu.Cast(GetGame().GetUIManager().GetMenu());
151 if (menu)
152 {
153 Widget expNotification = menu.GetLayoutRoot().FindAnyWidget("notification_root");
154 if (expNotification && expNotification.IsVisible())
155 {
156 if (!m_OffsetEnabled)
157 {
159
160 float x, y, w, h;
161 m_Root.GetScreenPos(x, y);
162 expNotification.GetScreenSize(w, h);
163
164 m_Root.SetScreenPos(x, h);
165 m_OffsetEnabled = true;
166 }
167 }
168 else if (m_OffsetEnabled)
169 {
171 m_OffsetEnabled = false;
172 }
173 }
174 }
Icon x
Icon y
float m_BackupPosX
Определения NotificationUI.c:14
ref Widget m_Root
Определения NotificationUI.c:3
float m_BackupPosY
Определения NotificationUI.c:15
bool m_OffsetEnabled
Определения NotificationUI.c:18
proto native CGame GetGame()
WorkspaceWidget Widget
Defined in code.

Перекрестные ссылки GetGame(), m_BackupPosX, m_BackupPosY, m_OffsetEnabled, m_Root, x и y.

Используется в Update() и UpdateTargetHeight().