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

◆ UpdateGUI() [2/2]

void UIScriptedMenu::UpdateGUI ( )
inlineprotected

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

515 {
516 bool shouldUpdateMenuFocus = false;
517 Man player = GetGame().GetPlayer();
518 if (player)
519 m_PlayerAlive = player.GetPlayerState() == EPlayerStates.ALIVE;
520
521 if (m_PlayerAlive)
522 {
523 bool showRestartBtn = ShouldRestartBeVisible(player);
524 m_RestartButton.Show(showRestartBtn);
525 }
526 else
527 {
528 m_RestartButton.Show(false);
529 m_BackAvailable = false;
530 }
531
534
536 }
EPlayerStates
Определения EPlayerStates.c:2
proto native DayZPlayer GetPlayer()
void UpdateMenuFocus()
Определения InGameMenuXbox.c:840
Widget m_ContinueButton
Определения InGameMenu.c:5
bool m_PlayerAlive
Определения InGameMenuXbox.c:16
Widget m_RestartButton
Определения InGameMenu.c:8
ButtonWidget m_RestartDeadButton
Определения InGameMenuXbox.c:26
bool m_BackAvailable
Определения InGameMenuXbox.c:13
bool ShouldRestartBeVisible(Man player)
Определения InGameMenuXbox.c:508
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetPlayer(), m_BackAvailable, m_ContinueButton, m_PlayerAlive, m_RestartButton, m_RestartDeadButton, ShouldRestartBeVisible() и UpdateMenuFocus().