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

◆ UpdateGUI() [2/2]

void UIScriptedMenu::UpdateGUI ( )
inlineprotected

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

536 {
537 bool shouldUpdateMenuFocus = false;
538 Man player = GetGame().GetPlayer();
539 if (player)
540 {
541 m_PlayerAlive = player.GetPlayerState() == EPlayerStates.ALIVE;
542 }
543
544 if (m_PlayerAlive)
545 {
546 bool showRestartBtn = ShouldRestartBeVisible(player);
547 m_RestartButton.Show(showRestartBtn);
548 }
549 else
550 {
551 m_RestartButton.Show(false);
552 m_BackAvailable = false;
553 }
554
557
559 }
EPlayerStates
Определения EPlayerStates.c:2
proto native DayZPlayer GetPlayer()
void UpdateMenuFocus()
Определения InGameMenuXbox.c:872
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:529
proto native CGame GetGame()

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