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

◆ RefreshMouseCursorVisibility()

void CGame::RefreshMouseCursorVisibility ( )
inlineprotected

Handles app active-ness

Fallback, just in-case

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

4035 {
4036#ifndef NO_GUI
4037#ifdef FEATURE_CURSOR
4038 if (!IsAppActive())
4039 {
4040 ShowCursorWidget(true);
4041 }
4042 else
4043#endif
4044 {
4046
4047 UIManager ui = GetUIManager();
4048 if (ui)
4049 {
4051 ui.ShowCursor(showCursor);
4052 }
4053 else
4054 {
4056 ShowCursorWidget(showCursor);
4057 }
4058 }
4059#endif
4060 }
proto native UIManager GetUIManager()
bool CanDisplayMouseCursor()
extend as needed, only game focus and M&K setting (consoles only!) are checked natively
Определения DayZGame.c:4016
proto native bool IsAppActive()
Returns if the application is focused on PC, returns true always on console.
bool m_CursorDesiredVisibilityScript
Определения DayZGame.c:966
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().