DayZ 1.24
|
Go to the source code of this file.
Enumerations | |
enum | DSLevels { WARNING = 1 , CRITICAL = 2 , BLINKING = 3 , EXTRA = 4 } |
Functions | |
void | VirtualHud (PlayerBase player) |
void | OnScheduledTick () |
void | RegisterElement (DisplayElementBase element) |
DisplayElementBase | GetElement (eDisplayElements element_id) |
void | SerializeElements (ref array< int > mask_array) |
void | DeserializeElements (ref array< int > mask_array) |
int | BitToDec (int mask, int index, int compareMask) |
void | PrintElements () |
void | SendRPC () |
bool | AreArraysSame (notnull array< int > array_a, notnull array< int > array_b) |
void | ImmediateUpdate () |
void | UpdateStatus () |
void | OnRPC (ParamsReadContext ctx) |
void | Debug () |
Variables | |
enum DSLevels | NORMAL = 0 |
enum DSLevels | WARNING_MINUS = 1 |
enum DSLevels | CRITICAL_MINUS = 2 |
enum DSLevels | BLINKING_MINUS = 3 |
enum DSLevels | WARNING_PLUS = 4 |
enum DSLevels | CRITICAL_PLUS = 5 |
enum DSLevels | BLINKING_PLUS = 6 |
enum DSLevels | NUMBER_OF_MASKS = 2 |
ref array< int > | m_LastSentArray |
const int | NUMBER_OF_ELEMENTS = eDisplayElements.COUNT |
ref DisplayElementBase | m_Elements [NUMBER_OF_ELEMENTS] |
Mission | mission |
Hud | m_Hud |
int | m_LastTick |
PlayerBase | m_Player |
string | m_System = "VirtualHud" |
ref array< ref Param > | rpcParams |
Definition at line 174 of file DisplayStatus.c.
Referenced by SendRPC().
void Debug | ( | ) |
Definition at line 215 of file DisplayStatus.c.
References GetPlugin(), Log(), m_ModulePlayerStatus, and NTFKEY_HUNGRY.
Definition at line 123 of file DisplayStatus.c.
References BIT_INT_SIZE, BitToDec(), GetElement(), and NUMBER_OF_ELEMENTS.
Referenced by OnRPC().
DisplayElementBase GetElement | ( | eDisplayElements | element_id | ) |
Definition at line 93 of file DisplayStatus.c.
References m_Elements, and NUMBER_OF_ELEMENTS.
Referenced by DeserializeElements(), BleedingNotfr::DisplayBadge(), FracturedLegNotfr::DisplayBadge(), HeartbeatNotfr::DisplayBadge(), InjuredLegNotfr::DisplayBadge(), PillsNotfr::DisplayBadge(), SickNotfr::DisplayBadge(), StuffedNotfr::DisplayBadge(), WetnessNotfr::DisplayBadge(), BloodNotfr::DisplayTendency(), HealthNotfr::DisplayTendency(), HungerNotfr::DisplayTendency(), ThirstNotfr::DisplayTendency(), WarmthNotfr::DisplayTendency(), map< Class TKey, Class TValue >::GetKeyByValue(), map< Class TKey, Class TValue >::GetKeyByValueChecked(), map< Class TKey, Class TValue >::GetValueArray(), BleedingNotfr::HideBadge(), FracturedLegNotfr::HideBadge(), HeartbeatNotfr::HideBadge(), InjuredLegNotfr::HideBadge(), PillsNotfr::HideBadge(), SickNotfr::HideBadge(), StuffedNotfr::HideBadge(), WetnessNotfr::HideBadge(), ImmediateUpdate(), ManBase::OnBleedingSourceAdded(), ManBase::OnBleedingSourceRemoved(), PrintElements(), SerializeElements(), and UpdateStatus().
void ImmediateUpdate | ( | ) |
Definition at line 185 of file DisplayStatus.c.
References GetElement(), and NUMBER_OF_ELEMENTS.
Referenced by OnScheduledTick().
void OnRPC | ( | ParamsReadContext | ctx | ) |
Definition at line 206 of file DisplayStatus.c.
References DeserializeElements(), and UpdateStatus().
void OnScheduledTick | ( | ) |
Definition at line 69 of file DisplayStatus.c.
References GetGame(), GetTime(), ImmediateUpdate(), m_LastTick, SendRPC(), and VIRTUAL_HUD_UPDATE_INTERVAL.
void PrintElements | ( | ) |
Definition at line 155 of file DisplayStatus.c.
References GetElement(), m_Value, NUMBER_OF_ELEMENTS, PrintString(), and string::ToString().
void RegisterElement | ( | DisplayElementBase | element | ) |
Definition at line 86 of file DisplayStatus.c.
References m_Elements.
Referenced by VirtualHud().
void SendRPC | ( | ) |
Definition at line 161 of file DisplayStatus.c.
References AreArraysSame(), m_LastSentArray, m_Player, and SerializeElements().
Referenced by ScriptConsoleWeatherTab::InvokeSendRPC(), ScriptConsoleWeatherTab::OnClick(), ActionEmptyBottleBase::OnEndAnimationLoop(), ActionEmptyBottleBase::OnEndServer(), OnScheduledTick(), ActionEmptyBottleBase::OnStartAnimationLoop(), and Tick().
Definition at line 101 of file DisplayStatus.c.
References BIT_INT_SIZE, GetElement(), and NUMBER_OF_ELEMENTS.
Referenced by SendRPC().
void UpdateStatus | ( | ) |
Definition at line 195 of file DisplayStatus.c.
References GetElement(), and NUMBER_OF_ELEMENTS.
Referenced by OnRPC().
void VirtualHud | ( | PlayerBase | player | ) |
Definition at line 36 of file DisplayStatus.c.
References GetGame(), Mission::GetHud(), m_Hud, m_LastTick, m_Player, mission, and RegisterElement().
Referenced by ManBase::GetVirtualHud(), ManBase::Init(), and ManBase::OnPlayerLoaded().
ref DisplayElementBase m_Elements[NUMBER_OF_ELEMENTS] |
Definition at line 27 of file DisplayStatus.c.
Referenced by GetElement(), and RegisterElement().
Hud m_Hud |
Definition at line 29 of file DisplayStatus.c.
Referenced by ManBase::CloseMapEx(), UIScriptedMenu::CloseMapMenu(), ManBase::EOnFrame(), ManBase::Init(), UIScriptedMenu::Init(), ScriptedWidgetEventHandler::ItemActionsWidget(), MissionBase::MissionGameplay(), MissionBase::OnEvent(), MissionBase::OnInit(), MissionBase::OnKeyPress(), ManBase::OnPlayerLoaded(), ManBase::OnRPC(), MissionBase::OnUpdate(), ManBase::OnVehicleSeatDriverEnter(), ManBase::OnVehicleSeatDriverLeft(), ManBase::StaminaHUDNotifier(), PluginBase::SwitchPermanentCrossHair(), ScriptedWidgetEventHandler::Update(), and VirtualHud().
Definition at line 24 of file DisplayStatus.c.
Referenced by SendRPC().
int m_LastTick |
Definition at line 30 of file DisplayStatus.c.
Referenced by OnScheduledTick(), ManBase::OnTick(), and VirtualHud().
PlayerBase m_Player |
Definition at line 31 of file DisplayStatus.c.
string m_System = "VirtualHud" |
Definition at line 32 of file DisplayStatus.c.
Mission mission |
Definition at line 28 of file DisplayStatus.c.
Referenced by ScriptedWidgetEventHandler::Apply(), UIScriptedMenu::CharacterCreationMenu(), CGame::CheckDialogs(), CGame::CreateScriptedMenu(), PluginBase::DisplayTendency(), Icon::FlagAction(), ActionTargetsCursor::GetHud(), ScriptedWidgetEventHandler::GetHud(), BaseBuildingBase::HandleRefreshers(), UIScriptedMenu::HudShow(), UIScriptedMenu::Init(), BaseBuildingBase::InsertRefresherPosition(), IsVonToggled(), Dispatcher::MissionGameplayHideInventory(), CGame::MissionLaunch(), UIScriptedMenu::NoteMenu(), ScriptedWidgetEventHandler::OnBleedingIndicationChanged(), CGame::OnEvent(), OnEvent(), UIScriptedMenu::OnHide(), OnHide(), CGame::OnKeyPress(), CGame::OnKeyRelease(), CGame::OnMouseButtonPress(), CGame::OnMouseButtonRelease(), CGame::OnPostUpdate(), UIScriptedMenu::OnShow(), OnShow(), CGame::OnUpdate(), RainProcurementHandler::RainProcurementHandler(), Hud::RefreshQuickbar(), BaseBuildingBase::RemoveRefresherPosition(), CGame::SelectGamepad(), PluginBase::SetBadge(), PluginBase::SetStamina(), PluginBase::SetStance(), ShowVoiceNotification(), ScriptedWidgetEventHandler::Update(), UpdateInterval(), ManBase::UpdateLighting(), UpdateSpecialtyMeter(), UpdateVoiceIcon(), VirtualHud(), UIScriptedMenu::~InGameMenu(), UIScriptedMenu::~InGameMenuXbox(), and UIScriptedMenu::~NoteMenu().
@ NORMAL = 0 |
Definition at line 3 of file DisplayStatus.c.
const int NUMBER_OF_ELEMENTS = eDisplayElements.COUNT |
Definition at line 26 of file DisplayStatus.c.
Referenced by DeserializeElements(), GetElement(), ImmediateUpdate(), PrintElements(), SerializeElements(), and UpdateStatus().