87 bool m_CH_DoTurn =
false;
88 bool m_CH_DoVault =
false;
89 bool m_CH_DoKnucleOut =
false;
90 bool m_CH_GoToCrawl =
false;
91 bool m_CH_DoHit =
false;
92 bool m_CH_StartDeath =
false;
93 bool m_CH_DoAttack =
false;
143 GetGame().GetInput().ChangeGameFocus(1);
144 GetGame().GetUIManager().ShowUICursor(
true);
154 GetGame().GetInput().ChangeGameFocus(-1);
155 GetGame().GetUIManager().ShowUICursor(
false);
166 GetUApi().ActivateExclude(
"menu");
202 if (!m_ControlledInfected)
220 m_MainWnd =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/debug/day_z_infecteddebug.layout");
229 m_CardMovementFrame =
m_MainWnd.FindAnyWidget(
"CardMovementFrame");
230 m_CardFightFrame =
m_MainWnd.FindAnyWidget(
"CardFightFrame");
277 m_CardMovementFrame.Show(
pCard == 0);
278 m_CardFightFrame.Show(
pCard == 1);
284 if (
w == m_SpawnEntityButton)
291 if (
w == m_CardMovementButton)
296 else if (
w == m_CardFightButton)
301 else if (
w == m_StartTurnButton)
306 else if (
w == m_StartVaultButton)
311 else if (
w == m_KnucleOutButton)
313 m_CH_DoKnucleOut =
true;
316 else if (
w == m_StartCrawlingButton)
318 m_CH_GoToCrawl =
true;
321 else if (
w == m_StartHitButton)
326 else if (
w == m_StartDeathButton)
328 m_CH_StartDeath =
true;
331 else if (
w == m_StartAttackButton)
333 m_CH_DoAttack =
true;
350 m_CH_DoVault =
false;
351 m_CH_DoKnucleOut =
false;
352 m_CH_GoToCrawl =
false;
354 m_CH_StartDeath =
false;
355 m_CH_DoAttack =
false;
356 m_MovementSpeedEB.SetText(
"0");
364 m_ControlledInfected.GetAIAgent().SetKeepInIdle(
true);
378 if (
infected != m_ControlledInfected)
381 infected.GetInputController().OverrideMovementSpeed(
true, m_MovementSpeedEB.GetText().ToFloat());
386 moveCommand.SetStanceVariation(m_StanceCB.GetCurrentItem());
387 moveCommand.SetIdleState(m_MindStateCB.GetCurrentItem());
392 moveCommand.StartTurn(m_TurnDirectionEB.GetText().ToFloat(), m_TurnTypeCB.GetCurrentItem());
397 infected.StartCommand_Vault(m_VaultingCB.GetCurrentItem());
398 m_CH_DoVault =
false;
400 if (m_CH_DoKnucleOut)
403 m_CH_DoKnucleOut =
false;
407 infected.StartCommand_Crawl(m_CrawlingTypeCB.GetCurrentItem());
408 m_CH_GoToCrawl =
false;
412 float hitDir = m_HitDirEB.GetText().ToFloat();
413 int bodyPart = m_HitBodyPartCB.GetCurrentItem();
414 bool heavyHit = m_HitTypeCB.GetCurrentItem() == 1;
422 int deathType = m_DeathTypeCB.GetCurrentItem();
423 float deathDir = m_HitDirEB.GetText().ToFloat();
427 m_CH_StartDeath =
false;
431 float attackDir = m_AttackDirCB.GetCurrentItem();
432 int attackType = m_AttackDescriptors.Get(m_AttackTypeCB.GetCurrentItem()).animValue;
436 m_CH_DoAttack =
false;
443 if (!m_ControlledInfected)
467 for (
int i = 0;
i < m_AttackDescriptors.Count(); ++
i)
468 m_AttackTypeCB.AddItem(m_AttackDescriptors.Get(
i).name);
const int ECE_EQUIP_ATTACHMENTS
const int ECE_PLACE_ON_SURFACE
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
class PluginDayZInfectedDebugUIHandler extends ScriptedWidgetEventHandler PluginDayZInfectedDebugAttackDesc(string pName, int pValue)
PluginDayZInfectedDebug m_pPluginInfectedDebug
ref PluginDayzPlayerDebugUIHandler m_pUIHandler
class JsonUndergroundAreaTriggerData GetPosition
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
static void RemoveShape(out Shape shape)
void CommandHandler(DayZInfected infected)
ButtonWidget m_StartHitButton
EditBoxWidget m_TurnDirectionEB
bool OnClick(Widget w, int x, int y, int button)
buttons clicks
XComboBoxWidget m_HitTypeCB
XComboBoxWidget m_DeathTypeCB
ButtonWidget m_CardMovementButton
ButtonWidget m_CardFightButton
ref PluginDayZInfectedDebugUIHandler m_pUIHandler
void ToggleDebugWindowEvent()
void ShowWidgets(bool show)
ButtonWidget m_SpawnEntityButton
void ~PluginDayZInfectedDebug()
bool OnChange(Widget w, int x, int y, bool finished)
XComboBoxWidget m_VaultingCB
ButtonWidget m_KnucleOutButton
XComboBoxWidget m_HitBodyPartCB
XComboBoxWidget m_AttackDirCB
void PluginDayZInfectedDebug()
Widget m_MainWnd
main controls
void CreateModuleWidgets()
XComboBoxWidget m_TurnTypeCB
ButtonWidget m_StartTurnButton
ButtonWidget m_StartCrawlingButton
void ToggleDebugWindowSetMode(int pMode)
EditBoxWidget m_HitDirEB
fight card
ButtonWidget m_StartDeathButton
XComboBoxWidget m_StanceCB
movement card
void SpawnNewInfectedEntity()
ButtonWidget m_StartVaultButton
XComboBoxWidget m_AttackTypeCB
ButtonWidget m_StartAttackButton
EditBoxWidget m_MovementSpeedEB
DayZInfected m_ControlledInfected
controlled instance
ref Timer m_TickTimer
status refresh timer
void DestroyModuleWidgets()
override void OnUpdate(float delta_time)
XComboBoxWidget m_CrawlingTypeCB
Widget m_CardMovementFrame
XComboBoxWidget m_MindStateCB
void CleanupDebugShapes(array< Shape > shapesArr)
proto native CGame GetGame()