DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | CrossHair |
Functions | |
void | CrossHairSelector () |
void | ~CrossHairSelector () |
void | Init () |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) | |
void | OnWidgetScriptInit (Widget w) |
void | Update () |
void | GetPlayer () |
void | GetActionManager () |
CrossHair | GetCrossHairByName (string widgetName) |
CrossHair | GetCurrentCrossHair () |
void | SelectCrossHair () |
void | ShowCrossHair (CrossHair crossHair) |
void | FloatingCrossHair (Widget widget) |
Highly WIP, do not use. | |
Variables | |
class CrossHair | m_Player |
ActionManagerBase | m_AM |
Widget | m_Root |
ref set< ref CrossHair > | m_CrossHairs |
vector | m_PreviousDirection |
Floating crosshair. | |
bool | m_PreviousDirectionSet |
|
protected |
Definition at line 67 of file CrossHairSelector.c.
References CALL_CATEGORY_GUI, GetGame(), m_AM, m_CrossHairs, m_Player, and Update().
Highly WIP, do not use.
Only intended to be used with track IR
Definition at line 217 of file CrossHairSelector.c.
References Class::CastTo(), Math3D::DirectionAndUpMatrix(), GetDayZGame(), GetGame(), DayZPlayer::IsRaised(), m_AM, m_Player, m_PreviousDirection, m_PreviousDirectionSet, Math3D::MatrixToAngles(), Math3D::MatrixToQuat(), Math3D::QuatLerp(), Math3D::QuatToMatrix(), Math::RAD2DEG, DayZPhysics::RaycastRV(), vector::Up, and Vector().
Referenced by ShowCrossHair().
|
protected |
Definition at line 130 of file CrossHairSelector.c.
References Class::CastTo(), DayZPlayer::IsPlayerSelected(), m_AM, and m_Player.
Referenced by ManBase::AddAction(), ManBase::CanBeRestrained(), Container::CanCombineAmmo(), ManBase::CanDeleteItems(), ManBase::CloseMapEx(), ManBase::CommandHandler(), ManBase::HeadingModel(), ManBase::OnQuickBarContinuousUseEnd(), ManBase::OnQuickBarContinuousUseStart(), ManBase::OnQuickBarSingleUse(), ManBase::ReloadWeapon(), and ManBase::RemoveAction().
Definition at line 138 of file CrossHairSelector.c.
References m_CrossHairs.
Referenced by SelectCrossHair().
|
protected |
Definition at line 149 of file CrossHairSelector.c.
References m_CrossHairs.
Referenced by ShowCrossHair(), and Update().
|
protected |
Definition at line 125 of file CrossHairSelector.c.
References Class::CastTo(), GetGame(), ScriptedWidgetEventHandler::GetPlayer(), and m_Player.
|
protected |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
pre-init arrays
Definition at line 81 of file CrossHairSelector.c.
References m_CrossHairs, and m_Root.
Definition at line 93 of file CrossHairSelector.c.
References ScriptedWidgetEventHandler::Init(), and m_Root.
|
protected |
firearms
On Continuous Actions
raised hands(bare + non-firearm) + melee cmd
handle unconscious state
default
Definition at line 160 of file CrossHairSelector.c.
References AC_CONTINUOUS, GetCrossHairByName(), GetGame(), DayZPlayer::IsInIronsights(), DayZPlayer::IsInOptics(), DayZPlayer::IsRaised(), m_AM, m_Player, ShowCrossHair(), and UA_NONE.
Referenced by Update().
no crosshair + clean + hide the previous
hide prev crosshair
show the new one
Definition at line 191 of file CrossHairSelector.c.
References FloatingCrossHair(), GetCurrentCrossHair(), and CrossHair::Hide().
Referenced by SelectCrossHair(), and Update().
|
protected |
Definition at line 76 of file CrossHairSelector.c.
References CALL_CATEGORY_GUI, GetGame(), and Update().
|
protected |
Definition at line 57 of file CrossHairSelector.c.
Referenced by ScriptedWidgetEventHandler::ContinuousActionProgress(), CrossHairSelector(), FloatingCrossHair(), ScriptedWidgetEventHandler::GetActionManager(), GetActionManager(), ScriptedWidgetEventHandler::GetActions(), ScriptedWidgetEventHandler::ItemActionsWidget(), SelectCrossHair(), ScriptedWidgetEventHandler::Update(), and Update().
Definition at line 61 of file CrossHairSelector.c.
Referenced by CrossHairSelector(), GetCrossHairByName(), GetCurrentCrossHair(), and Init().
|
protected |
Floating crosshair.
Definition at line 64 of file CrossHairSelector.c.
Referenced by FloatingCrossHair().
|
protected |
Definition at line 65 of file CrossHairSelector.c.
Referenced by FloatingCrossHair().
|
protected |
Definition at line 59 of file CrossHairSelector.c.