8 m_iUserData = pUserData;
9 m_bIsFullBody = pFullBody;
10 m_iStanceMask = pStanceMask;
11 m_Category = category;
39 string GetNameUnique()
41 return m_Name +
"|" + GetCategory();
44 protected int m_iUserData;
45 protected bool m_bIsFullBody;
46 protected int m_iStanceMask;
47 protected int m_Category;
48 protected string m_Name;
58 super.OnClick(w,
x,
y, button);
64 super.OnChange(w,
x,
y, finished);
70 super.OnMouseEnter(w,
x,
y);
71 GetGame().GetMission().AddActiveInputExcludes({
"menu"});
78 super.OnMouseLeave(w,enterW,
x,
y);
79 GetGame().GetMission().RemoveActiveInputExcludes({
"menu"},
true);
92 protected static ref set<string> m_AnimEventMapping;
93 void PluginDayzPlayerActionCallback()
100 if (!m_AnimEventMapping)
102 m_AnimEventMapping =
new set<string>();
103 m_AnimEventMapping.Insert(
"ActionExec");
104 m_AnimEventMapping.Insert(
"SoundWeapon");
105 m_AnimEventMapping.Insert(
"SoundVoice");
106 m_AnimEventMapping.Insert(
"SoundAttachment");
107 m_AnimEventMapping.Insert(
"Sound");
111 foreach (
int index,
string eventName: m_AnimEventMapping)
119 void ~PluginDayzPlayerActionCallback()
124 override void OnFinish(
bool pCanceled)
128 m_pStateWidget.SetText(
"Result: canceled");
132 m_pStateWidget.SetText(
"Result: ended");
149 string eventName= m_AnimEventMapping.Get(pEventID);
150 string eventText = eventName +
" event at: ";
153 eventText += tFromSt.ToString();
155 m_pAnimEventWidget.SetText(eventText);
158 override void OnStateChange(
int pOldState,
int pCurrentState)
163 m_pStateWidget.SetText(oldState +
"->" + newState);
367 GetGame().GetInput().ChangeGameFocus(1);
368 GetGame().GetUIManager().ShowUICursor(
true);
378 GetGame().GetInput().ChangeGameFocus(-1);
379 GetGame().GetUIManager().ShowUICursor(
false);
458 m_MainWnd =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_playerdebug.layout");
576 pPlayer.GetMovementState(state);
583 a +=
" st:" + state.m_iStanceIdx.ToString() +
", mv:" + state.m_iMovement.ToString();
588 a +=
" st:" + state.m_iStanceIdx.ToString();
593 a +=
" st:" + state.m_iStanceIdx.ToString();
598 a +=
" st:" + state.m_iStanceIdx.ToString();
603 a +=
" st:" + state.m_iStanceIdx.ToString();
608 a +=
" st:" + state.m_iStanceIdx.ToString();
613 a +=
" st:" + state.m_iStanceIdx.ToString();
618 a +=
" st:" + state.m_iStanceIdx.ToString();
623 a +=
" st:" + state.m_iStanceIdx.ToString();
628 a +=
" st:" + state.m_iStanceIdx.ToString();
641 int boneIndex = pPlayer.GetBoneIndexByName(
"Head");
646 pPlayer.GetBoneTransformMS(boneIndex, tm);
650 string a =
"Bone index:";
651 a += boneIndex.ToString();
697 filterTextLower.ToLower();
700 filterTextLower.Split(
" ", filterTokens);
704 string nameLower = dta.GetName();
707 if (pType == -1 || pType == dta.GetCategory())
711 foreach (
string token:filterTokens)
713 if (nameLower.Contains(token))
721 sortedNames.Insert(dta.GetNameUnique());
724 foreach (
int i,
string sortedNameUnique:sortedNames)
727 string sortedName = data.GetName();
762 PluginDayzPlayerActionCallback a;
764 if (userData.IsFullBody())
766 a = PluginDayzPlayerActionCallback.Cast( player.StartCommand_Action(userData.GetInt(), PluginDayzPlayerActionCallback, userData.GetStanceMask()) );
770 a = PluginDayzPlayerActionCallback.Cast( player.AddCommandModifier_Action(userData.GetInt(), PluginDayzPlayerActionCallback) );
794 clbk = player.GetCommandModifier_Action();
801 clbk.InternalCommand(pCommandId);
817 clbk = player.GetCommandModifier_Action();
847 vector item_position =
GetGame().GetPlayer().GetPosition() + (
GetGame().GetPlayer().GetDirection() * 2.0);
866 pl.DebugSyncShadowSetup(NULL);
916 Print(
"PluginPlayerDebug: Action Start");
922 Print(
"PluginPlayerDebug: Action End");
928 Print(
"PluginPlayerDebug: Action Finish");
934 Print(
"PluginPlayerDebug: Action One Time Action");
940 Print(
"PluginPlayerDebug: Action Loop");
946 Print(
"PluginPlayerDebug: Action Cancel");
1041 m_Weapons.IsWeaponChange(pNewWeapon, pHideSlot, pShowSlot);