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

◆ RefreshMouseCursorVisibility()

void CGame::RefreshMouseCursorVisibility ( )
inlineprotected

Handles app active-ness

Fallback, just in-case

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

3829 {
3830#ifndef NO_GUI
3831#ifdef FEATURE_CURSOR
3832 if (!IsAppActive())
3833 {
3834 ShowCursorWidget(true);
3835 }
3836 else
3837#endif
3838 {
3840
3841 UIManager ui = GetUIManager();
3842 if (ui)
3843 {
3845 ui.ShowCursor(showCursor);
3846 }
3847 else
3848 {
3850 ShowCursorWidget(showCursor);
3851 }
3852 }
3853#endif
3854 }
proto native UIManager GetUIManager()
bool CanDisplayMouseCursor()
extend as needed, only game focus and M&K setting (consoles only!) are checked natively
Определения DayZGame.c:3810
proto native bool IsAppActive()
Returns if the application is focused on PC, returns true always on console.
bool m_CursorDesiredVisibilityScript
Определения DayZGame.c:947
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().