mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
refactor: move ui debug after addon, comment on types
This commit is contained in:
parent
35984cfe22
commit
4f1abb2908
1 changed files with 16 additions and 8 deletions
|
|
@ -68,7 +68,7 @@ namespace Dalamud.Interface
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
var copy = ImGui.Button("Copy all");
|
var copy = ImGui.Button("Copy all");
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGui.Combo("Data kind", ref this.currentKind, new[] {"ServerOpCode", "Address", "Actor Table", "Font Test", "Party List", "Plugin IPC", "Condition", "Gauge", "Command", "Addon", "StartInfo", "Target", "UI Debug"},
|
ImGui.Combo("Data kind", ref this.currentKind, new[] {"ServerOpCode", "Address", "Actor Table", "Font Test", "Party List", "Plugin IPC", "Condition", "Gauge", "Command", "Addon", "Addon Inspector", "StartInfo", "Target" },
|
||||||
13);
|
13);
|
||||||
ImGui.Checkbox("Resolve GameData", ref this.resolveGameData);
|
ImGui.Checkbox("Resolve GameData", ref this.resolveGameData);
|
||||||
|
|
||||||
|
|
@ -287,12 +287,14 @@ namespace Dalamud.Interface
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Gauge
|
||||||
case 7:
|
case 7:
|
||||||
var gauge = this.dalamud.ClientState.JobGauges.Get<ASTGauge>();
|
var gauge = this.dalamud.ClientState.JobGauges.Get<ASTGauge>();
|
||||||
ImGui.Text($"Moon: {gauge.ContainsSeal(SealType.MOON)} Drawn: {gauge.DrawnCard()}");
|
ImGui.Text($"Moon: {gauge.ContainsSeal(SealType.MOON)} Drawn: {gauge.DrawnCard()}");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Command
|
||||||
case 8:
|
case 8:
|
||||||
foreach (var command in this.dalamud.CommandManager.Commands) {
|
foreach (var command in this.dalamud.CommandManager.Commands) {
|
||||||
ImGui.Text(
|
ImGui.Text(
|
||||||
|
|
@ -301,6 +303,7 @@ namespace Dalamud.Interface
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Addon
|
||||||
case 9:
|
case 9:
|
||||||
ImGui.InputText("Addon name", ref this.inputAddonName, 256);
|
ImGui.InputText("Addon name", ref this.inputAddonName, 256);
|
||||||
ImGui.InputInt("Addon Index", ref this.inputAddonIndex);
|
ImGui.InputInt("Addon Index", ref this.inputAddonIndex);
|
||||||
|
|
@ -323,12 +326,22 @@ namespace Dalamud.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// Addon Inspector
|
||||||
case 10:
|
case 10:
|
||||||
|
{
|
||||||
|
this.UIDebug ??= new UIDebug(this.dalamud);
|
||||||
|
this.UIDebug.Draw();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// StartInfo
|
||||||
|
case 11:
|
||||||
ImGui.Text(JsonConvert.SerializeObject(this.dalamud.StartInfo, Formatting.Indented));
|
ImGui.Text(JsonConvert.SerializeObject(this.dalamud.StartInfo, Formatting.Indented));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 11:
|
// Target
|
||||||
|
case 12:
|
||||||
var targetMgr = this.dalamud.ClientState.Targets;
|
var targetMgr = this.dalamud.ClientState.Targets;
|
||||||
|
|
||||||
if (targetMgr.CurrentTarget != null)
|
if (targetMgr.CurrentTarget != null)
|
||||||
|
|
@ -363,11 +376,6 @@ namespace Dalamud.Interface
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 12: {
|
|
||||||
this.UIDebug ??= new UIDebug(this.dalamud);
|
|
||||||
this.UIDebug.Draw();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ImGui.TextUnformatted("Data not ready.");
|
ImGui.TextUnformatted("Data not ready.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue