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

◆ InputBufferCheck()

void MissionBase::InputBufferCheck ( )
inlineprotected

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

1695 {
1696 PlayerBase player;
1698 ActionBase action;
1699
1701 {
1702 DayZPlayer dayzPlayer = g_Game.GetPlayer();
1703 if (m_ConnectionMenu && (!dayzPlayer.IsAlive() || dayzPlayer.IsUnconscious()))
1704 {
1705 m_ConnectionMenu.Close();
1706
1707 player = PlayerBase.Cast(dayzPlayer);
1708 if (!player)
1709 return;
1710
1711 amb = player.GetActionManager();
1712 if (!amb)
1713 return;
1714
1715 action = amb.GetRunningAction();
1716 if (action && amb.GetActionState(action) != UA_NONE)
1717 {
1718 amb.RequestInterruptAction();
1719 }
1720 return;
1721 }
1722
1723 if (!m_ConnectionMenu)
1724 {
1725 UIManager uiManager = g_Game.GetUIManager();
1726 UIScriptedMenu menu = uiManager.GetMenu();
1727 if (menu && menu.GetID() == MENU_INVENTORY)
1728 {
1729 g_Game.GetMission().HideInventory();
1730 }
1731
1732 uiManager.CloseAll();
1734 }
1735 }
1736 else
1737 {
1738 if (m_ConnectionMenu)
1739 {
1740 g_Game.GetCallQueue(CALL_CATEGORY_GAMEPLAY).Remove(InputBufferCheck);
1741 m_ConnectionMenu.Close();
1742
1743 player = PlayerBase.Cast(g_Game.GetPlayer());
1744 if (!player)
1745 return;
1746
1747 amb = player.GetActionManager();
1748 if (!amb)
1749 return;
1750
1751 action = amb.GetRunningAction();
1752 if (action && amb.GetActionState(action) != UA_NONE)
1753 {
1754 amb.RequestInterruptAction();
1755 }
1756 }
1757 }
1758 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
DayZGame g_Game
Определения DayZGame.c:3942
void InputBufferCheck()
Определения missionGameplay.c:1694
UIScriptedMenu m_ConnectionMenu
Определения missionGameplay.c:54
bool m_InputBufferFull
Определения missionGameplay.c:53
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool CloseAll()
Close all opened menus.
Определения UIManager.c:78
const int MENU_CONNECTION_DIALOGUE
Определения 3_Game/DayZ/constants.c:215
const int MENU_INVENTORY
Определения 3_Game/DayZ/constants.c:180
const int CALL_CATEGORY_GAMEPLAY
Определения 3_Game/DayZ/tools/tools.c:10
const int UA_NONE
Определения 3_Game/DayZ/constants.c:465

Перекрестные ссылки ActionManagerBase(), CALL_CATEGORY_GAMEPLAY, UIManager::CloseAll(), UIManager::EnterScriptedMenu(), g_Game, UIManager::GetMenu(), InputBufferCheck(), m_ConnectionMenu, m_InputBufferFull, MENU_CONNECTION_DIALOGUE, MENU_INVENTORY и UA_NONE.

Используется в InputBufferCheck() и OnInputBufferEvent().