Skip to content

Commit

Permalink
Update XAT.Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmoose committed Aug 19, 2024
1 parent 9fac12f commit a44bcb1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions Dalamud/XAT.Plugin/UI/XATWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public XATWindow(XATPlugin plugin) : base($" {XATPlugin.PluginName} - Attention!

SizeConstraints = new WindowSizeConstraints
{
MinimumSize = new Vector2(520, 265),
MaximumSize = new Vector2(520, 265)
MinimumSize = new Vector2(520, 360),
MaximumSize = new Vector2(520, 360)
};
}

public override void Draw()
{
var segmentSize = ImGui.GetWindowSize().X / 3.45f;
var segmentSize = ImGui.GetWindowSize().X / 4.5f;
var buttonSize = new Vector2(segmentSize, ImGui.GetTextLineHeight() * 1.8f);

using (var textGroup = ImRaii.Group())
Expand All @@ -32,20 +32,24 @@ public override void Draw()
{
var text = $"""
The XAT Plugin has been merged with Brio 0.4.0!
The XAT Plugin has been merged into Brio 0.4.0!
Once you have installed Brio you can find the XAT Cutscene Control
under the `Advanced Animation Control` Window, found by clicking
the 'point up-right' button on the Animation Control Tab!
For additional help, you may DM me on Twitter/Discord or, join the Discord.
For additional help, you can view the help page,
you may DM me on Twitter/Discord or, join the Discord.
After you have installed Brio, please uninstall the XAT plugin!
Thank You!
""";

ImGui.PushTextWrapPos(segmentSize * 3);
ImGui.PushTextWrapPos(segmentSize * 4);
ImGui.TextWrapped(text);
ImGui.PopTextWrapPos();
}
Expand All @@ -71,6 +75,12 @@ Thank You!
Process.Start(new ProcessStartInfo { FileName = "https://twitter.com/MiniatureMoosey", UseShellExecute = true });
ImGui.PopStyleColor();
ImGui.SameLine();

ImGui.PushStyleColor(ImGuiCol.Button, new Vector4(110, 84, 148, 255) / 255);
if (ImGui.Button("View Help page", buttonSize))
Process.Start(new ProcessStartInfo { FileName = "https://etheirys-tools.gitbook.io/brio", UseShellExecute = true });
ImGui.PopStyleColor();
ImGui.SameLine();
}
}
}

0 comments on commit a44bcb1

Please sign in to comment.