public void GetData(Framework framework) { /*if (!this.pluginInterface.ClientState.Condition[Dalamud.Game.ClientState.ConditionFlag.InDeepDungeon]) * { * ui.IsVisible = false; * return; * }*/ var target = pluginInterface.ClientState.Targets.CurrentTarget; if (target == null || target == previousTarget) { ui.IsVisible = false; return; } TargetData t = new TargetData(); if (!t.IsValidTarget(target)) { ui.IsVisible = false; return; } else { previousTarget = target; ui.IsVisible = true; } }
public void GetData(Framework framework) { if (!this._condition[ConditionFlag.InDeepDungeon]) { ui.IsVisible = false; return; } GameObject target = _targetManager.Target; TargetData t = new TargetData(); if (!t.IsValidTarget(target)) { ui.IsVisible = false; return; } else { previousTarget = target; ui.IsVisible = true; } }