Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
displaystatus.c File Reference

Go to the source code of this file.

Enumerations

enum  DSLevels { WARNING = 1 , CRITICAL = 2 , BLINKING = 3 , EXTRA = 4 }

Functions

bool AreArraysSame (notnull array< int > array_a, notnull array< int > array_b)
int BitToDec (int mask, int index, int compareMask)
void Debug ()
void DeserializeElements (array< int > mask_array)
DisplayElementBase GetElement (eDisplayElements element_id)
void ImmediateUpdate ()
void OnRPC (ParamsReadContext ctx)
void OnScheduledTick ()
void PrintElements ()
void RegisterElement (DisplayElementBase element)
void SendRPC ()
void SerializeElements (array< int > mask_array)
void UpdateStatus ()
void VirtualHud (PlayerBase player)

Variables

enum DSLevels BLINKING_MINUS = 3
enum DSLevels BLINKING_PLUS = 6
enum DSLevels CRITICAL_MINUS = 2
enum DSLevels CRITICAL_PLUS = 5
ref DisplayElementBase m_Elements [NUMBER_OF_ELEMENTS]
Hud m_Hud
ref array< intm_LastSentArray
int m_LastTick
PlayerBase m_Player
string m_System = "VirtualHud"
Mission mission
enum DSLevels NORMAL = 0
const int NUMBER_OF_ELEMENTS = eDisplayElements.COUNT
enum DSLevels NUMBER_OF_MASKS = 2
ref array< ref ParamrpcParams
enum DSLevels WARNING_MINUS = 1
enum DSLevels WARNING_PLUS = 4

Enumeration Type Documentation

◆ DSLevels

enum DSLevels
Enumerator
WARNING 
CRITICAL 
BLINKING 
EXTRA 

Definition at line 1 of file displaystatus.c.

Function Documentation

◆ AreArraysSame()

bool AreArraysSame ( notnull array< int > array_a,
notnull array< int > array_b )

Definition at line 188 of file displaystatus.c.

Referenced by SendRPC().

◆ BitToDec()

int BitToDec ( int mask,
int index,
int compareMask )

Definition at line 156 of file displaystatus.c.

Referenced by DeserializeElements().

◆ Debug()

void Debug ( )

Definition at line 233 of file displaystatus.c.

References GetPlugin(), Log(), m_ModulePlayerStatus, and NTFKEY_HUNGRY.

◆ DeserializeElements()

void DeserializeElements ( array< int > mask_array)

Definition at line 130 of file displaystatus.c.

References BIT_INT_SIZE, BitToDec(), GetElement(), and NUMBER_OF_ELEMENTS.

Referenced by OnRPC().

◆ GetElement()

◆ ImmediateUpdate()

void ImmediateUpdate ( )

Definition at line 201 of file displaystatus.c.

References GetElement(), NUMBER_OF_ELEMENTS, and DisplayElementBase::UpdateHUD().

Referenced by OnScheduledTick().

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)

Definition at line 224 of file displaystatus.c.

References DeserializeElements(), Serializer::Read(), and UpdateStatus().

◆ OnScheduledTick()

void OnScheduledTick ( )

◆ PrintElements()

void PrintElements ( )

Definition at line 163 of file displaystatus.c.

References GetElement(), m_Value, NUMBER_OF_ELEMENTS, and PrintString.

◆ RegisterElement()

void RegisterElement ( DisplayElementBase element)

Definition at line 89 of file displaystatus.c.

References m_Elements.

Referenced by VirtualHud().

◆ SendRPC()

◆ SerializeElements()

void SerializeElements ( array< int > mask_array)

Definition at line 106 of file displaystatus.c.

References BIT_INT_SIZE, GetElement(), and NUMBER_OF_ELEMENTS.

Referenced by SendRPC().

◆ UpdateStatus()

void UpdateStatus ( )

Definition at line 211 of file displaystatus.c.

References GetElement(), NUMBER_OF_ELEMENTS, and DisplayElementBase::UpdateHUD().

Referenced by OnRPC().

◆ VirtualHud()

void VirtualHud ( PlayerBase player)

Variable Documentation

◆ BLINKING_MINUS

enum DSLevels BLINKING_MINUS = 3

◆ BLINKING_PLUS

enum DSLevels BLINKING_PLUS = 6

◆ CRITICAL_MINUS

enum DSLevels CRITICAL_MINUS = 2

◆ CRITICAL_PLUS

enum DSLevels CRITICAL_PLUS = 5

◆ m_Elements

Definition at line 27 of file displaystatus.c.

Referenced by GetElement(), and RegisterElement().

◆ m_Hud

Hud m_Hud

Definition at line 29 of file displaystatus.c.

Referenced by VirtualHud().

◆ m_LastSentArray

ref array<int> m_LastSentArray

Definition at line 24 of file displaystatus.c.

Referenced by SendRPC().

◆ m_LastTick

int m_LastTick

Definition at line 30 of file displaystatus.c.

Referenced by OnScheduledTick(), and VirtualHud().

◆ m_Player

Definition at line 31 of file displaystatus.c.

◆ m_System

string m_System = "VirtualHud"

Definition at line 32 of file displaystatus.c.

◆ mission

Mission mission

Definition at line 28 of file displaystatus.c.

Referenced by RainProcurementHandler::RainProcurementHandler(), UIScriptedMenu::~InGameMenu(), UIScriptedMenu::~InGameMenuXbox(), UIScriptedMenu::~NoteMenu(), ScriptedWidgetEventHandler::Apply(), CGame::AutoTestLaunch(), UIScriptedMenu::CharacterCreationMenu(), CGame::CheckDialogs(), ManBase::CloseInventoryMenu(), ManBase::CloseMapEx(), CGame::CreateScriptedMenu(), DeveloperFreeCamera::DisableFreeCamera(), PluginBase::DisplayTendency(), Icon::FlagAction(), ActionTargetsCursor::GetHud(), ScriptedWidgetEventHandler::GetHud(), MissionBase::HandleMapToggleByKeyboardShortcut(), BaseBuildingBase::HandleRefreshers(), UIScriptedMenu::HudShow(), UIScriptedMenu::Init(), BaseBuildingBase::InsertRefresherPosition(), Inventory(), IsVonToggled(), Dispatcher::MissionGameplayHideInventory(), CGame::MissionLaunch(), UIScriptedMenu::NoteMenu(), ScriptedWidgetEventHandler::OnBleedingIndicationChanged(), CGame::OnEvent(), OnEvent(), Input::OnGamepadConnected(), Input::OnGamepadDisconnected(), Input::OnGamepadIdentification(), OnHide(), UIScriptedMenu::OnHide(), CGame::OnKeyPress(), CGame::OnKeyRelease(), UIScriptedMenu::OnModalResult(), CGame::OnMouseButtonPress(), CGame::OnMouseButtonRelease(), OnPlayerDeath(), ManBase::OnPlayerLoaded(), CGame::OnPostUpdate(), OnShow(), UIScriptedMenu::OnShow(), CGame::OnUpdate(), BiosUserManager::OnUserPicked(), ActionUnfoldMapCB::PerformMapChange(), Hud::RefreshQuickbar(), BaseBuildingBase::RemoveRefresherPosition(), CGame::SelectGamepad(), PluginBase::SetBadge(), CGame::SetMission(), SetNVPostprocess(), PluginBase::SetStamina(), PluginBase::SetStance(), SetTimeOfDate(), ShowVoiceNotification(), ScriptedWidgetEventHandler::Update(), UIScriptedMenu::UpdateExitButtonState(), UpdateInterval(), ManBase::UpdateLighting(), UpdateVoiceIcon(), and VirtualHud().

◆ NORMAL

@ NORMAL = 0

Definition at line 3 of file displaystatus.c.

◆ NUMBER_OF_ELEMENTS

◆ NUMBER_OF_MASKS

enum DSLevels NUMBER_OF_MASKS = 2

◆ rpcParams

ref array<ref Param> rpcParams

Definition at line 34 of file displaystatus.c.

◆ WARNING_MINUS

enum DSLevels WARNING_MINUS = 1

◆ WARNING_PLUS

enum DSLevels WARNING_PLUS = 4