mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
Live addon rework
This commit is contained in:
parent
6e66829c6d
commit
ee99fe4499
3 changed files with 34 additions and 96 deletions
|
|
@ -9,8 +9,8 @@ using Dalamud.Game.ClientState;
|
|||
using Dalamud.Game.ClientState.Actors.Types;
|
||||
using Dalamud.Game.ClientState.Actors.Types.NonPlayer;
|
||||
using Dalamud.Game.ClientState.Structs.JobGauge;
|
||||
using Dalamud.Game.Gui.Addons;
|
||||
using Dalamud.Game.Gui.Toast;
|
||||
using Dalamud.Game.Internal.Gui.Addon;
|
||||
using Dalamud.Game.Text;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Plugin;
|
||||
|
|
@ -104,6 +104,17 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
Gamepad,
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void OnOpen()
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void OnClose()
|
||||
{
|
||||
this.resultAddon = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the DataKind dropdown menu.
|
||||
/// </summary>
|
||||
|
|
@ -562,9 +573,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
if (ImGui.Button("Get Addon"))
|
||||
{
|
||||
this.resultAddon =
|
||||
this.dalamud.Framework.Gui.GetAddonByName(
|
||||
this.inputAddonName, this.inputAddonIndex);
|
||||
this.resultAddon = this.dalamud.Framework.Gui.GetAddonByName(this.inputAddonName, this.inputAddonIndex);
|
||||
}
|
||||
|
||||
if (ImGui.Button("Find Agent"))
|
||||
|
|
@ -572,14 +581,12 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
if (this.resultAddon != null)
|
||||
{
|
||||
ImGui.TextUnformatted(
|
||||
$"{this.resultAddon.Name} - 0x{this.resultAddon.Address.ToInt64():x}\n v:{this.resultAddon.Visible} x:{this.resultAddon.X} y:{this.resultAddon.Y} s:{this.resultAddon.Scale}, w:{this.resultAddon.Width}, h:{this.resultAddon.Height}");
|
||||
ImGui.TextUnformatted($"{this.resultAddon.Name} - 0x{this.resultAddon.Address.ToInt64():x}\n v:{this.resultAddon.Visible} x:{this.resultAddon.X} y:{this.resultAddon.Y} s:{this.resultAddon.Scale}, w:{this.resultAddon.Width}, h:{this.resultAddon.Height}");
|
||||
}
|
||||
|
||||
if (this.findAgentInterfacePtr != IntPtr.Zero)
|
||||
{
|
||||
ImGui.TextUnformatted(
|
||||
$"Agent: 0x{this.findAgentInterfacePtr.ToInt64():x}");
|
||||
ImGui.TextUnformatted($"Agent: 0x{this.findAgentInterfacePtr.ToInt64():x}");
|
||||
ImGui.SameLine();
|
||||
|
||||
if (ImGui.Button("C"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue