Yet more ui tweaks
This commit is contained in:
@@ -146,7 +146,7 @@ internal static class ImGuiUtils
|
|||||||
public static unsafe void Hyperlink(string text, string url)
|
public static unsafe void Hyperlink(string text, string url)
|
||||||
{
|
{
|
||||||
ImGui.TextUnformatted(text);
|
ImGui.TextUnformatted(text);
|
||||||
UnderlineLastItem(*ImGui.GetStyleColorVec4(ImGuiCol.Button));
|
UnderlineLastItem(*ImGui.GetStyleColorVec4(ImGuiCol.Text));
|
||||||
if (ImGui.IsItemHovered())
|
if (ImGui.IsItemHovered())
|
||||||
{
|
{
|
||||||
ImGui.SetMouseCursor(ImGuiMouseCursor.Hand);
|
ImGui.SetMouseCursor(ImGuiMouseCursor.Hand);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class SettingsWindow : Window
|
|||||||
|
|
||||||
SizeConstraints = new WindowSizeConstraints()
|
SizeConstraints = new WindowSizeConstraints()
|
||||||
{
|
{
|
||||||
MinimumSize = new Vector2(400, 800),
|
MinimumSize = new Vector2(400, 600),
|
||||||
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
|
MaximumSize = new Vector2(float.MaxValue, float.MaxValue)
|
||||||
};
|
};
|
||||||
Size = SizeConstraints.Value.MinimumSize;
|
Size = SizeConstraints.Value.MinimumSize;
|
||||||
@@ -257,7 +257,7 @@ public class SettingsWindow : Window
|
|||||||
ImGuiUtils.EndGroupPanel();
|
ImGuiUtils.EndGroupPanel();
|
||||||
|
|
||||||
ImGuiUtils.BeginGroupPanel("Solver Score Weights (Advanced)");
|
ImGuiUtils.BeginGroupPanel("Solver Score Weights (Advanced)");
|
||||||
ImGui.TextWrapped("All values should add up to 1. Otherwise, the Score Storage Threshold must be changed.");
|
ImGui.TextWrapped("All values should add up to 1. Otherwise, the Score Storage Threshold should be changed.");
|
||||||
ImGuiHelpers.ScaledDummy(10);
|
ImGuiHelpers.ScaledDummy(10);
|
||||||
|
|
||||||
DrawOption(
|
DrawOption(
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public readonly record struct SolverConfig
|
|||||||
ExplorationConstant = 4;
|
ExplorationConstant = 4;
|
||||||
MaxStepCount = 25;
|
MaxStepCount = 25;
|
||||||
MaxRolloutStepCount = MaxStepCount;
|
MaxRolloutStepCount = MaxStepCount;
|
||||||
ForkCount = Environment.ProcessorCount;
|
ForkCount = Math.Max(Environment.ProcessorCount, 32);
|
||||||
FurcatedActionCount = ForkCount / 2;
|
FurcatedActionCount = ForkCount / 2;
|
||||||
StrictActions = true;
|
StrictActions = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user