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

◆ InputBufferCheck()

void MissionBase::InputBufferCheck ( )
inlineprotected

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

1759 {
1760 PlayerBase player;
1762 ActionBase action;
1763
1765 {
1766 DayZPlayer dayzPlayer = g_Game.GetPlayer();
1767 if (m_ConnectionMenu && (!dayzPlayer.IsAlive() || dayzPlayer.IsUnconscious()))
1768 {
1769 m_ConnectionMenu.Close();
1770
1771 player = PlayerBase.Cast(dayzPlayer);
1772 if (!player)
1773 return;
1774
1775 amb = player.GetActionManager();
1776 if (!amb)
1777 return;
1778
1779 action = amb.GetRunningAction();
1780 if (action && amb.GetActionState(action) != UA_NONE)
1781 {
1782 amb.RequestInterruptAction();
1783 }
1784 return;
1785 }
1786
1787 if (!m_ConnectionMenu)
1788 {
1789 UIManager uiManager = g_Game.GetUIManager();
1790 UIScriptedMenu menu = uiManager.GetMenu();
1791 if (menu && menu.GetID() == MENU_INVENTORY)
1792 {
1793 g_Game.GetMission().HideInventory();
1794 }
1795
1796 uiManager.CloseAll();
1798 }
1799 }
1800 else
1801 {
1802 if (m_ConnectionMenu)
1803 {
1804 g_Game.GetCallQueue(CALL_CATEGORY_GAMEPLAY).Remove(InputBufferCheck);
1805 m_ConnectionMenu.Close();
1806
1807 player = PlayerBase.Cast(g_Game.GetPlayer());
1808 if (!player)
1809 return;
1810
1811 amb = player.GetActionManager();
1812 if (!amb)
1813 return;
1814
1815 action = amb.GetRunningAction();
1816 if (action && amb.GetActionState(action) != UA_NONE)
1817 {
1818 amb.RequestInterruptAction();
1819 }
1820 }
1821 }
1822 }
void ActionBase()
Определения ActionBase.c:82
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
DayZGame g_Game
Определения DayZGame.c:4074
void InputBufferCheck()
Определения missionGameplay.c:1758
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:221
const int MENU_INVENTORY
Определения 3_Game/DayZ/constants.c:186
const int CALL_CATEGORY_GAMEPLAY
Определения 3_Game/DayZ/tools/tools.c:10
const int UA_NONE
Определения 3_Game/DayZ/constants.c:494

Перекрестные ссылки ActionBase(), 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().