Rolls settings fundumentals setup
This commit is contained in:
@@ -20,6 +20,12 @@ public class SettingsWindow : Window, IDisposable
|
||||
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")
|
||||
{
|
||||
Flags = ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoScrollbar |
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user