32 protected const int HOLD_LIMIT_TIME = 300;
56 m_EffectWidgets =
new GameplayEffectWidgets;
57 m_HudRootWidget = null;
61 m_Hud =
new IngameHud;
63 m_PauseQueued =
false;
64 m_ChatChannelFadeTimer =
new WidgetFadeTimer;
65 m_MicFadeTimer =
new WidgetFadeTimer;
78 if (
g_Game.GetUIManager() &&
g_Game.GetUIManager().ScreenFadeVisible())
80 g_Game.GetUIManager().ScreenFadeOut(0);
101 if (!
GetGame().IsMultiplayer())
115 if ( !m_HudRootWidget )
119 m_HudRootWidget.Show(
false);
121 m_Chat.Init(m_HudRootWidget.FindAnyWidget(
"ChatFrameWidget"));
123 m_ActionMenu.Init( m_HudRootWidget.FindAnyWidget(
"ActionsPanel"),
TextWidget.Cast( m_HudRootWidget.FindAnyWidget(
"DefaultActionWidget") ) );
125 m_Hud.
Init( m_HudRootWidget.FindAnyWidget(
"HudPanel") );
128 m_MicrophoneIcon = ImageWidget.Cast( m_HudRootWidget.FindAnyWidget(
"mic") );
129 m_MicrophoneIcon.Show(
false);
132 m_VoiceLevels = m_HudRootWidget.FindAnyWidget(
"VoiceLevelsPanel");
138 m_VoiceLevelsWidgets.Set(VoiceLevelWhisper, ImageWidget.Cast( m_VoiceLevels.FindAnyWidget(
"Whisper") ));
139 m_VoiceLevelsWidgets.Set(VoiceLevelTalk, ImageWidget.Cast( m_VoiceLevels.FindAnyWidget(
"Talk") ));
140 m_VoiceLevelsWidgets.Set(VoiceLevelShout, ImageWidget.Cast( m_VoiceLevels.FindAnyWidget(
"Shout") ));
142 m_VoiceLevelTimers.Set(VoiceLevelWhisper,
new WidgetFadeTimer);
143 m_VoiceLevelTimers.Set(VoiceLevelTalk,
new WidgetFadeTimer);
144 m_VoiceLevelTimers.Set(VoiceLevelShout,
new WidgetFadeTimer);
150 m_ChatChannelArea = m_HudRootWidget.FindAnyWidget(
"ChatChannelPanel");
151 m_ChatChannelText =
TextWidget.Cast( m_HudRootWidget.FindAnyWidget(
"ChatChannelText") );
158 if ( !m_HudDebug.IsInitialized() )
160 m_HudDebug.Init(
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_hud_debug.layout") );
173 g_Game.SetConnecting(
false);
175 g_Game.SetMissionState( DayZGame.MISSION_STATE_GAME );
181 if ( !m_InventoryMenu )
192 player.OnScheduledTick(timeslice);
197 if( mute_list && mute_list.Count() > 0 )
200 rpc.
Write(mute_list);
201 rpc.
Send(null,
ERPCs.RPC_USER_SYNC_PERMISSIONS,
true, null);
207 super.UpdateInputDevicesAvailability();
209 g_Game.GetInput().UpdateConnectedInputDeviceList();
210 g_Game.UpdateInputDeviceDisconnectWarning();
225 m_DebugMonitor.Hide();
226 g_Game.GetUIManager().ShowUICursor(
false);
229 g_Game.SetMissionState( DayZGame.MISSION_STATE_FINNISH );
234 super.OnUpdate(timeslice);
237 UpdateInputDeviceDiag();
243 UpdateDummyScheduler();
255 #ifdef DIAG_DEVELOPER
262 if ( playerPB.GetHologramLocal() )
264 playerPB.GetHologramLocal().UpdateHologram( timeslice );
266 #ifdef DIAG_DEVELOPER
278 runningAction = playerPB.GetActionManager().GetRunningAction();
281#ifdef PLATFORM_CONSOLE
283 if (
GetUApi().GetInputByID(UAVoiceModifierHelper).LocalValue() && !menu)
291 else if (
GetUApi().GetInputByID(UAVoiceModifierHelper).LocalRelease())
303 if (
GetUApi().GetInputByID(UAUIQuickbarRadialOpen).LocalPress())
306 if ( playerPB.IsAlive() && !playerPB.IsRaised() && !playerPB.IsUnconscious() && !playerPB.GetCommand_Vehicle() )
310 RadialQuickbarMenu.OpenMenu();
316 bool b1 = RadialQuickbarMenu.GetItemToAssign() != null;
318 if (
GetUIManager().IsMenuOpen(
MENU_RADIAL_QUICKBAR ) && (!RadialQuickbarMenu.GetMenuInstance().GetParentMenu() || RadialQuickbarMenu.GetMenuInstance().GetParentMenu() != inventory) && (
GetUApi().GetInputByID(UAUIQuickbarRadialOpen).LocalRelease() || !
GetUApi().GetInputByID(UAUIQuickbarRadialOpen).LocalValue()))
320 RadialQuickbarMenu.CloseMenu();
325 if ((RadialQuickbarMenu.instance && RadialQuickbarMenu.GetMenuInstance().GetParentMenu() && RadialQuickbarMenu.GetMenuInstance().GetParentMenu() == inventory) &&
GetUApi().GetInputByID(UAUIQuickbarRadialInventoryOpen).LocalRelease())
330 RadialQuickbarMenu.CloseMenu();
331 RadialQuickbarMenu.SetItemToAssign( NULL );
340 if (playerPB.IsRaised() || playerPB.IsInRasedProne())
352 if (playerPB.IsRaised())
371 if (
GetUApi().GetInputByID(UAUIGesturesOpen).LocalPress() )
374 if ( !playerPB.IsRaised() && (playerPB.GetActionManager().ActionPossibilityCheck(playerPB.m_MovementState.m_CommandTypeId) || playerPB.IsEmotePlaying()) && !playerPB.GetCommand_Vehicle() )
378 GesturesMenu.OpenMenu();
384 if (
GetUApi().GetInputByID(UAUIGesturesOpen).LocalRelease() ||
GetUApi().GetInputByID(UAUIGesturesOpen).LocalValue() == 0 )
389 GesturesMenu.CloseMenu();
394 if (player && m_LifeState ==
EPlayerStates.ALIVE && !player.IsUnconscious() )
399 m_HudRootWidget.Show(
true);
412 if (
GetUApi().GetInputByID(UAGear).LocalPress())
414 if (!inventory && playerPB.CanManipulateInventory() && IsMapUnfoldActionRunning(runningAction))
419 else if (menu == inventory)
425 if (
GetUApi().GetInputByID(UAUIMenu).LocalPress() && menu && inventory && menu == inventory)
430 #ifndef PLATFORM_CONSOLE
444 if (
GetUApi().GetInputByID(UAUIQuickbarToggle).LocalHold())
448 m_QuickbarHold =
true;
453 if (
GetUApi().GetInputByID(UAUIQuickbarToggle).LocalRelease())
459 m_QuickbarHold =
false;
462 if (
GetUApi().GetInputByID(UAZeroingUp).LocalPress() ||
GetUApi().GetInputByID(UAZeroingDown).LocalPress() ||
GetUApi().GetInputByID(UAToggleWeapons).LocalPress())
469 m_ActionMenu.Refresh();
471 if (
GetUApi().GetInputByID(UANextActionCategory).LocalPress())
473 m_ActionMenu.NextActionCategory();
475 else if (
GetUApi().GetInputByID(UAPrevActionCategory).LocalPress())
477 m_ActionMenu.PrevActionCategory();
479 else if (
GetUApi().GetInputByID(UANextAction).LocalPress())
481 m_ActionMenu.NextAction();
483 else if (
GetUApi().GetInputByID(UAPrevAction).LocalPress())
485 m_ActionMenu.PrevAction();
494 if (menu == NULL && playerPB.IsPlacingLocal() && playerPB.GetHologramLocal().GetParentEntity().PlacementCanBeRotated())
496 if (
GetUApi().GetInputByID(UANextAction).LocalRelease())
498 playerPB.GetHologramLocal().SubtractProjectionRotation(15);
501 if (
GetUApi().GetInputByID(UAPrevAction).LocalRelease())
503 playerPB.GetHologramLocal().AddProjectionRotation(15);
509 if (
GetUApi().GetInputByID(UAMapToggle).LocalPress() && !m_UIManager.
GetMenu())
522 int life_state = player.GetPlayerState();
525 if (m_LifeState != life_state)
527 m_LifeState = life_state;
539 for (i = 0; i < 5; i++)
546 for (i = 0; i < 6; i++)
558 if (
GetUApi().GetInputByID(UAGear).LocalPress())
565 else if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
578 else if (menu == gestures_menu && !gestures_menu.
IsMenuClosing() && !IsInputExcludeActive(
"radialmenu"))
583 else if (menu == quickbar_menu && !quickbar_menu.
IsMenuClosing() && !IsInputExcludeActive(
"radialmenu"))
591 if (!
g_Game.GetUIManager().ScreenFadeVisible() && (!menu_xb || !menu_xb.IsOnlineOpen()))
593 if (
GetUApi().GetInputByID(UAUIMenu).LocalPress())
597 else if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
602 else if (
GetUApi().GetInputByID(UAUIBack).LocalPress())
604 if (menu_xb && menu_xb.IsOnlineOpen())
606 menu_xb.CloseOnline();
611 else if (
GetUApi().GetInputByID(UAUIMenu).LocalPress())
624 if (!
GetGame().IsMultiplayer())
625 m_WorldData.UpdateBaseEnvTemperature( timeslice );
630 if (m_ProcessInputExcludes)
633 m_ProcessInputExcludes =
false;
636 super.OnUpdate( timeslice );
641 super.OnKeyPress(key);
647 super.OnKeyRelease(key);
652 super.OnEvent(eventTypeId, params);
662 m_Chat.Add(chat_params);
671 chatMenu.UpdateChannel();
675 m_ChatChannelText.SetText(ChatInputMenu.GetChannelName(cc_params.param1));
676 m_ChatChannelFadeTimer.FadeIn(m_ChatChannelArea, 0.5,
true);
677 m_ChatChannelHideTimer.Run(2, m_ChatChannelFadeTimer,
"FadeOut",
new Param3<Widget, float, bool>(m_ChatChannelArea, 0.5,
true));
681 case WindowsResizeEventTypeID:
689 PluginDeveloper plugin_developer = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper) );
690 plugin_developer.OnSetFreeCameraEvent(
PlayerBase.Cast( player ), set_free_camera_event_params.param1 );
699 if (item.IsInherited(ItemBook))
704 bookMenu.ReadBook(item);
711 override void SetInputSuppression(
bool state)
713 m_SuppressNextFrame = state;
716 override bool GetInputSuppression()
718 return m_SuppressNextFrame;
725 super.PlayerControlEnable(bForceSupress);
727 if (m_ControlDisabledMode != -1)
729 switch (m_ControlDisabledMode)
760 m_ControlDisabledMode = -1;
774 super.PlayerControlDisable(mode);
807 Debug.
Log(
"Unknown controls disable mode");
812 m_ControlDisabledMode = mode;
817 ItemBase item = player.GetItemInHands();
818 if (item && item.IsWeapon())
819 player.RequestResetADSSync();
826 super.RemoveActiveInputExcludes(excludes,bForceSupress);
828 if (excludes.Count() != 0)
830 bool changed =
false;
832 if (m_ActiveInputExcludeGroups)
834 for (
int i = 0; i < excludes.Count(); i++)
836 if (m_ActiveInputExcludeGroups.Find(excludes[i]) != -1)
838 m_ActiveInputExcludeGroups.RemoveItem(excludes[i]);
862 case EInputRestrictors.INVENTORY:
867 case EInputRestrictors.MAP:
874 if (m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restrictor) != -1)
876 m_ActiveInputRestrictions.RemoveItem(restrictor);
884 super.AddActiveInputExcludes(excludes);
886 if (excludes.Count() != 0)
888 bool changed =
false;
889 if (!m_ActiveInputExcludeGroups)
894 for (
int i = 0; i < excludes.Count(); i++)
896 if (m_ActiveInputExcludeGroups.Find(excludes[i]) == -1)
898 m_ActiveInputExcludeGroups.Insert(excludes[i]);
921 case EInputRestrictors.INVENTORY:
927 ItemBase item = player.GetItemInHands();
928 if (item && item.IsWeapon())
929 player.RequestResetADSSync();
933 case EInputRestrictors.MAP:
940 if (!m_ActiveInputRestrictions)
944 if (m_ActiveInputRestrictions.Find(restrictor) == -1)
946 m_ActiveInputRestrictions.Insert(restrictor);
954 m_ProcessInputExcludes =
true;
960 if (m_ActiveInputExcludeGroups)
962 for (
int i = 0; i < m_ActiveInputExcludeGroups.Count(); i++)
974 m_ControlDisabledMode = -1;
976 if (m_ActiveInputRestrictions)
978 int count = m_ActiveInputRestrictions.Count();
979 for (
int i = 0; i < count; i++)
983 m_ActiveInputRestrictions.Clear();
985 if (m_ActiveInputExcludeGroups)
987 m_ActiveInputExcludeGroups.Clear();
999 if (m_ActiveInputExcludeGroups)
1001 active |= m_ActiveInputExcludeGroups.Count() > 0;
1003 if (m_ActiveInputRestrictions)
1005 active |= m_ActiveInputRestrictions.Count() > 0;
1014 return m_ActiveInputExcludeGroups && m_ActiveInputExcludeGroups.Find(exclude) != -1;
1020 return m_ActiveInputRestrictions && m_ActiveInputRestrictions.Find(restriction) != -1;
1051 #ifdef PLATFORM_CONSOLE
1052 IngameHud hud = IngameHud.Cast(
GetHud() );
1057 hud.GetHudPanelWidget().SetPos( 0, -0.055 );
1061 hud.GetHudPanelWidget().SetPos( 0, 0 );
1073 if( !m_InventoryMenu )
1090 if ( m_InventoryMenu )
1102 if ( m_InventoryMenu )
1104 if (!m_InventoryMenu.GetParentMenu() && GetUIManager().GetMenu() != m_InventoryMenu)
1106 m_InventoryMenu.SetParentMenu(
GetUIManager().GetMenu());
1108 m_InventoryMenu.Close();
1109 m_InventoryMenu = NULL;
1121 m_ChatChannelHideTimer.Stop();
1122 m_ChatChannelFadeTimer.Stop();
1123 m_ChatChannelArea.Show(
false);
1183 if (
g_Game.IsClient() &&
g_Game.GetGameState() != DayZGameState.IN_GAME )
1189 if ( player && !player.IsPlayerLoaded() || IsPlayerRespawning() )
1194 m_PauseQueued =
true;
1210 int menu_id = menu.GetID();
1216 m_PauseQueued =
false;
1241 if (!player || player.IsDamageDestroyed())
1254 m_Logout.SetLogoutTime();
1266 m_Logout.SetTime(time);
1281 if (!m_DebugMonitor)
1284 m_DebugMonitor.Init();
1328 if (!m_DebugMonitor)
return;
1336 m_DebugMonitor.SetHealth(values.
GetHealth());
1337 m_DebugMonitor.SetBlood(values.
GetBlood());
1339 m_DebugMonitor.SetPosition(MiscGameplayFunctions.TruncateVec(player.GetPosition(),1));
1346 m_ActionDownTime = time_down;
1351 m_ActionUpTime = time_up;
1367 return hold_action_time;
1379#ifdef DIAG_DEVELOPER
1385 bool bState = diagmenu.m_HairHidingStateMap.Get(i);
1386 string selectionState;
1388 selectionState =
"Hidden";
1390 selectionState =
"Shown";
1391 string selectionName = diagmenu.m_HairSelectionArray.Get(i);
1395 DbgUI.
Text(
"Current Hair Selection:" + selectionName);
1413 for (
int n = 0; n < m_VoiceLevelsWidgets.Count(); n++ )
1415 int voiceKey = m_VoiceLevelsWidgets.GetKey(n);
1416 ImageWidget voiceWidget = m_VoiceLevelsWidgets.Get(n);
1419 WidgetFadeTimer timer = m_VoiceLevelTimers.Get(n);
1423 if ( voiceKey <= level )
1425 voiceWidget.SetAlpha(1.0);
1426 voiceWidget.Show(
true);
1429 timer.FadeOut(voiceWidget, 3.0);
1432 voiceWidget.Show(
false);
1440 m_MicrophoneIcon.SetAlpha(1.0);
1441 m_MicrophoneIcon.Show(
true);
1443 m_MicFadeTimer.FadeOut(m_MicrophoneIcon, 3.0);
1449 m_MicFadeTimer.Stop();
1480 m_VoNActive = active;
1485 for (
int n = 0; n < m_VoiceLevelsWidgets.Count(); n++ )
1487 ImageWidget voiceWidget = m_VoiceLevelsWidgets.Get( n );
1488 voiceWidget.Show(
false);
1499 m_Note = NoteMenu.Cast(menu);
1504 #ifdef DIAG_DEVELOPER
1506 m_HudDebug.RefreshByLocalProfile();
1524 m_PlayerRespawning = state;
1534 return m_ActiveRefresherLocations;
1539 m_RespawnModeClient = mode;
1554 if (!m_OnConnectivityChanged)
ActionUnfoldMapCB ActionBaseCB ActionUnfoldMap()
int GetID()
Get the ID registered in SEffectManager.
PluginBase GetPlugin(typename plugin_type)
protected bool m_Initialized
proto native Mission GetMission()
proto native Input GetInput()
proto native AbstractSoundScene GetSoundScene()
proto native DayZPlayer GetPlayer()
override ScriptCallQueue GetCallQueue(int call_category)
proto native UIManager GetUIManager()
proto native WorkspaceWidget GetWorkspace()
proto native int GetVoiceLevel(Object player=null)
Get voice level of VoN (on both client and server) (VoiceLevelWhisper = 0, VoiceLevelNormal = 1,...
static bool GetMapIgnoreMapOwnership()
static bool GetUse3DMap()
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
void ShowHudUI(bool show)
void ShowQuickbarPlayer(bool show)
void ShowHudPlayer(bool show)
void Init(Widget hud_panel_widget)
bool IsHideQuickbarPlayer()
EntityAI GetSelectedItem()
static ItemManager GetInstance()
static bool IsLogsEnable()
float GetHoldActionTime()
override void OnPlayerRespawned(Man player)
protected bool m_ControlDisabled
override void PlayerControlEnable(bool bForceSupress)
Deprecated; removes last input exclude and associated controls restrictions.
protected bool IsMapUnfoldActionRunning(ActionBase pAction)
override int GetControlDisabledMode()
(mostly)DEPRECATED; only set on the old 'PlayerControlDisable' method
TextWidget m_ChatChannelText
override void UpdateInputDevicesAvailability()
protected int m_ActionUpTime
ref DebugMonitor m_DebugMonitor
ref WidgetFadeTimer m_MicFadeTimer
override void HideInventory()
void SendMuteListToServer(map< string, bool > mute_list)
protected int m_ControlDisabledMode
protected bool m_PlayerRespawning
override void OnMissionStart()
override void OnKeyRelease(int key)
override void SetNoteMenu(UIScriptedMenu menu)
override bool IsInputRestrictionActive(int restriction)
Returns true if the particular 'restriction' (those govern special behaviour outside regular input ex...
override void EnableAllInputs(bool bForceSupress=false)
Removes all active input excludes and restrictions.
override void OnKeyPress(int key)
void MoveHudForInventory(bool inv_open)
override void AddActiveInputExcludes(array< string > excludes)
Adds one or more exclude groups to disable and refreshes excludes.
protected ref array< int > m_ActiveInputRestrictions
override bool IsPlayerRespawning()
override array< vector > GetActiveRefresherLocations()
ref ActionMenu m_ActionMenu
protected void PerformRefreshExcludes()
applies queued excludes (0 == clear excludes)
override int GetRespawnModeClient()
override void SetRespawnModeClient(int mode)
void SetActionUpTime(int time_up)
override void ShowInventory()
protected ref array< string > m_ActiveInputExcludeGroups
override WidgetFadeTimer GetMicWidgetFadeTimer()
override bool IsVoNActive()
override void AddActiveInputRestriction(int restrictor)
Adds one input restriction (specific behaviour oudside regular excludes, defined below)
protected bool m_InitOnce
protected bool m_ProcessInputExcludes
override void SetVoNActive(bool active)
void SetActionDownTime(int time_down)
override UIScriptedMenu GetNoteMenu()
void UpdateDebugMonitor()
override void OnEvent(EventType eventTypeId, Param params)
protected ref map< int, ImageWidget > m_VoiceLevelsWidgets
protected int m_ActionDownTime
override void RemoveActiveInputRestriction(int restrictor)
Removes one restriction (specific behaviour oudside regular excludes, defined below)
override void OnUpdate(float timeslice)
override void CreateLogoutMenu(UIMenuPanel parent)
protected ref Timer m_ToggleHudTimer
override void OnMissionFinish()
override void UpdateVoiceLevelWidgets(int level)
override bool IsControlDisabled()
returns if ANY exclude groups, restriction (or deprecated disable, if applicable) is active
override ImageWidget GetMicrophoneIcon()
protected UIManager m_UIManager
override void SetPlayerRespawning(bool state)
override void RefreshExcludes()
queues refresh of input excludes
protected ref ScriptInvoker m_OnConnectivityChanged
override map< int, ImageWidget > GetVoiceLevelWidgets()
void TickScheduler(float timeslice)
override bool IsInputExcludeActive(string exclude)
Returns true if the particular input exclude group had been activated via script and is active.
ref Timer m_ChatChannelHideTimer
override void RefreshCrosshairVisibility()
protected int m_RespawnModeClient
override void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
Removes one or more exclude groups and refreshes excludes.
protected bool m_QuickbarHold
protected ref map< int, ref WidgetFadeTimer > m_VoiceLevelTimers
protected Widget m_VoiceLevels
InventoryMenu GetInventory()
protected ref GameplayEffectWidgets m_EffectWidgets
override bool IsMissionGameplay()
override void HideCrosshairVisibility()
override void PlayerControlDisable(int mode)
Deprecated; simple input restrictions.
void ShowHairDebugValues(bool state)
ref InventoryMenu m_InventoryMenu
override map< int, ref WidgetFadeTimer > GetVoiceLevelTimers()
override GameplayEffectWidgets GetEffectWidgets()
override void StartLogoutMenu(int time)
ref WidgetFadeTimer m_ChatChannelFadeTimer
override void AbortMission()
ScriptInvoker GetConnectivityInvoker()
override void HideVoiceLevelWidgets()
ImageWidget m_MicrophoneIcon
override void CreateDebugMonitor()
protected void HandleMapToggleByKeyboardShortcut(Man player)
override void OnItemUsed(InventoryItem item, Man owner)
protected bool m_PauseQueued
protected bool m_VoNActive
void AddActiveInputRestriction(int restrictor)
void AddActiveInputExcludes(array< string > excludes)
Static component of PPE manager, used to hold the instance.
static PPEManager GetPPEManager()
Returns the manager instance singleton.
Deprecated; 'PPEManager' used instead.
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Manager class for managing Effect (EffectParticle, EffectSound)
static ref ScriptInvoker Event_OnFrameUpdate
Static invoker for the SEffectManager.Event_OnFrameUpdate called form MissionGameplay....
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
ScriptInvoker Class provide list of callbacks usage:
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto bool Write(void value_out)
static void RegisterEvents()
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
bool CloseMenu(int id)
Close menu with specific ID (see MenuID)
proto native bool IsDialogVisible()
void ShowUICursor(bool visible)
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.
proto native void HideScriptedMenu(UIScriptedMenu menu)
bool CloseAll()
Close all opened menus.
proto native void HideDialog()
proto native UIScriptedMenu ShowScriptedMenu(UIScriptedMenu menu, UIMenuPanel parent)
bool IsMenuOpen(int id)
Returns true if menu with specific ID is opened (see MenuID)
proto native void ScreenFadeOut(float duration)
static void SpawnAllTriggerCarriers()
void HandleInput(Input inp)
Manager class which handles Voice-over-network functionality while player is connected to a server.
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
static VicinityItemManager GetInstance()
void ResetRefreshCounter()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const EventType SetFreeCameraEventTypeID
params: SetFreeCameraEventParams
Param4< int, string, string, string > ChatMessageEventParams
channel, from, text, color config class
Param1< int > ChatChannelEventParams
const EventType ChatChannelEventTypeID
params: ChatChannelEventParams
proto native CGame GetGame()
Param1< FreeDebugCamera > SetFreeCameraEventParams
Camera.
const EventType ChatMessageEventTypeID
params: ChatMessageEventParams
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto void BeginCleanupScope()
static proto native void Text(string label)
static proto native void EndCleanupScope()
static proto native void End()
const int INPUT_EXCLUDE_MOUSE_RADIAL
const int INPUT_EXCLUDE_ALL
const int INPUT_EXCLUDE_INVENTORY
const int INPUT_EXCLUDE_MAP
const int INPUT_EXCLUDE_MOUSE_ALL