protected override void OnAddedToScene() { base.OnAddedToScene(); InitAnimationSystem(); if (IsInGame) { foreach (var v in ActiveBuffs) { v.TargetEntity = this; v.TargetPosition = this.Position; v.TryStartPerform(); } if (RageEnabled) { if (rageBar.Parent == null) { headOverBar.AddChild(rageBar); } if (rageTextBox.Parent == null) { headOverBar.AddChild(rageTextBox); } } if (Program.Settings.DisplayCooldownBars) { cooldownBars = new Graphics.Interface.ProgressBar[Abilities.Count]; for (int i = 0; i < cooldownBars.Length; i++) { cooldownBars[i] = new Graphics.Interface.ProgressBar { Position = new Vector2(0, 5 * (i + 1) + 2), Size = new Vector2(70, 5) }; headOverBar.AddChild(cooldownBars[i]); } } if (Program.Settings.MotionSettings.IsOnGroundDebug) { isOnGroundDebug = new Props.Stone3 { Scale = new Vector3(0.3f, 0.3f, 0.3f), Translation = Vector3.UnitZ * 2 }; AddChild(isOnGroundDebug); } } }
protected override void OnAddedToScene() { base.OnAddedToScene(); InitAnimationSystem(); if (IsInGame) { foreach (var v in ActiveBuffs) { v.TargetEntity = this; v.TargetPosition = this.Position; v.TryStartPerform(); } if (RageEnabled) { if (rageBar.Parent == null) headOverBar.AddChild(rageBar); if (rageTextBox.Parent == null) headOverBar.AddChild(rageTextBox); } if (Program.Settings.DisplayCooldownBars) { cooldownBars = new Graphics.Interface.ProgressBar[Abilities.Count]; for (int i = 0; i < cooldownBars.Length; i++) { cooldownBars[i] = new Graphics.Interface.ProgressBar { Position = new Vector2(0, 5 * (i + 1) + 2), Size = new Vector2(70, 5) }; headOverBar.AddChild(cooldownBars[i]); } } if (Program.Settings.MotionSettings.IsOnGroundDebug) { isOnGroundDebug = new Props.Stone3 { Scale = new Vector3(0.3f, 0.3f, 0.3f), Translation = Vector3.UnitZ * 2 }; AddChild(isOnGroundDebug); } } }