aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-09-02 20:32:56 -0700
committerPinapelz <yukais@pinapelz.com>2024-09-02 20:36:22 -0700
commit48122c50492b8c4d8acecee903868b226cc30293 (patch)
treecaace568745b2f1a7c89bb8c0b1d1f5f3cc9dec3
parent50877adf4583874381fb11f998e4f53abe8f6b4b (diff)
add settings button to main window
-rw-r--r--Malmstone/Windows/MainWindow.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/Malmstone/Windows/MainWindow.cs b/Malmstone/Windows/MainWindow.cs
index 39addd4..08550d4 100644
--- a/Malmstone/Windows/MainWindow.cs
+++ b/Malmstone/Windows/MainWindow.cs
@@ -24,7 +24,7 @@ namespace Malmstone.Windows
{
SizeConstraints = new WindowSizeConstraints
{
- MinimumSize = new Vector2(440, 480),
+ MinimumSize = new Vector2(440, 510),
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
};
@@ -43,10 +43,6 @@ namespace Malmstone.Windows
{
ImGui.Text($"Current Series Level: {pvpInfo.CurrentSeriesRank}");
ImGui.Text($"Current Level Experience Progress: {pvpInfo.SeriesExperience} XP");
- if (pvpInfo.CurrentSeriesRank != pvpInfo.ClaimedSeriesRank)
- {
- ImGui.Text("Don't forget to claim your rank rewards!");
- }
ImGui.Spacing();
ImGui.Text("Target Series Level:");
@@ -111,6 +107,16 @@ namespace Malmstone.Windows
ImGui.Spacing();
ImGui.BulletText($"Win: {xpResult.RivalWingsWin} " + (xpResult.RivalWingsWin == 1 ? "time" : "times"));
ImGui.BulletText($"Lose: {xpResult.RivalWingsLose} " + (xpResult.RivalWingsLose == 1 ? "time" : "times"));
+
+ ImGui.Separator();
+ ImGui.Spacing();
+ if (pvpInfo.CurrentSeriesRank != pvpInfo.ClaimedSeriesRank)
+ {
+ ImGui.SameLine();
+ ImGui.Text("Don't forget to claim your rank rewards!");
+ }
+ if (ImGui.Button("Settings"))
+ Plugin.ToggleConfigUI();
}
else
{
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage