From aa7553d9f9fbf26b5a28457f4750f3a5aa9740a4 Mon Sep 17 00:00:00 2001 From: Marto Date: Mon, 29 Dec 2025 14:25:10 +0100 Subject: [PATCH] Rolls settings fundumentals setup --- HighRollerClassic/Windows/SettingsWindow.cs | 26 +++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/HighRollerClassic/Windows/SettingsWindow.cs b/HighRollerClassic/Windows/SettingsWindow.cs index a997278..b25f708 100644 --- a/HighRollerClassic/Windows/SettingsWindow.cs +++ b/HighRollerClassic/Windows/SettingsWindow.cs @@ -12,13 +12,19 @@ public class SettingsWindow : Window, IDisposable private const int Spacing = 5; private const int InputWidth = 105; private const int InputMaxLen = 11; - + private const uint MaxAllowedGil = 999_999_999; private readonly Configuration configuration; private Settings settings; private bool maxBetFormatValid = true; private bool stepFormatValid = true; + + // todo proper implementation it's just a placeholder + private bool NoTempRolls => true; + private Roll? new_roll; + + private (uint min, uint max) rollInterval = (1, 999); public SettingsWindow(Plugin plugin) : base("Settings###HRC Settings") { @@ -42,12 +48,18 @@ public class SettingsWindow : Window, IDisposable // todo set up multiplier, roll, color, etc // todo add button for rolls - if (ImGui.Button("Add roll")) { } - - foreach (var roll in settings.rolls) + if (ImGui.Button("Add roll") && NoTempRolls) { - // ImGui.BeginTable(); - ImGui.EndTable(); + // TODO no new rolls must be there + + } + if (ImGui.CollapsingHeader("Rolls###settings", ImGuiTreeNodeFlags.DefaultOpen)) + { + // todo here we put new rolls + foreach (var roll in settings.rolls) + { + // todo here we put existing rolls + } } var maxbetValid = NewInput("max_bet_label", "Max bet", "max_bet_text", ref settings.maxBet); @@ -79,7 +91,7 @@ public class SettingsWindow : Window, IDisposable } - private bool? NewInput(string labelId, string labelText, string inputId, ref uint? result) + private static bool? NewInput(string labelId, string labelText, string inputId, ref uint? result) { bool? valid = null;