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

◆ RefreshMouseCursorVisibility()

void CGame::RefreshMouseCursorVisibility ( )
inlineprotected

Handles app active-ness

Fallback, just in-case

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

3903 {
3904#ifndef NO_GUI
3905#ifdef FEATURE_CURSOR
3906 if (!IsAppActive())
3907 {
3908 ShowCursorWidget(true);
3909 }
3910 else
3911#endif
3912 {
3914
3915 UIManager ui = GetUIManager();
3916 if (ui)
3917 {
3919 ui.ShowCursor(showCursor);
3920 }
3921 else
3922 {
3924 ShowCursorWidget(showCursor);
3925 }
3926 }
3927#endif
3928 }
proto native UIManager GetUIManager()
bool CanDisplayMouseCursor()
extend as needed, only game focus and M&K setting (consoles only!) are checked natively
Определения DayZGame.c:3884
proto native bool IsAppActive()
Returns if the application is focused on PC, returns true always on console.
bool m_CursorDesiredVisibilityScript
Определения DayZGame.c:949
proto native bool ShowCursor(bool visible)
natively checks game focus on cursor hiding
proto native void ShowCursorWidget(bool show)
direct mouse cursor visibility control

Перекрестные ссылки CanDisplayMouseCursor(), GetUIManager(), IsAppActive(), m_CursorDesiredVisibilityScript, UIManager::ShowCursor() и ShowCursorWidget().

Используется в DayZGame(), OnActivateMessage(), OnDeactivateMessage() и SetMouseCursorDesiredVisibility().