aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
-rw-r--r--src/VkChess.cs4
-rw-r--r--ui/chess.crow3
-rw-r--r--ui/winOptions.crow1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/VkChess.cs b/src/VkChess.cs
index de8f19f..0e3f0d1 100644
--- a/src/VkChess.cs
+++ b/src/VkChess.cs
@@ -832,6 +832,7 @@ namespace vkChess
renderer.uboLights.Update (renderer.lights);
}
}
+ public bool RestartRequired => false;
public VkSampleCountFlags SampleCount {
get => Configuration.Global.Get<VkSampleCountFlags> ("SampleCount", VkSampleCountFlags.SampleCount1);
set {
@@ -840,6 +841,7 @@ namespace vkChess
Configuration.Global.Set ("SampleCount", value);
DeferredPbrRendererBase.NUM_SAMPLES = value;
NotifyValueChanged ("SampleCount", value);
+ NotifyValueChanged ("RestartRequired", true);
}
}
public bool EnableTesselation {
@@ -849,6 +851,7 @@ namespace vkChess
return;
Configuration.Global.Set ("EnableTesselation", value);
NotifyValueChanged ("EnableTesselation", value);
+ NotifyValueChanged ("RestartRequired", true);
}
}
public bool EnableReflections {
@@ -858,6 +861,7 @@ namespace vkChess
return;
Configuration.Global.Set ("EnableReflections", value);
NotifyValueChanged ("EnableReflections", value);
+ NotifyValueChanged ("RestartRequired", true);
}
}
public float SSRStep {
diff --git a/ui/chess.crow b/ui/chess.crow
index 0a12378..5616f45 100644
--- a/ui/chess.crow
+++ b/ui/chess.crow
@@ -12,6 +12,9 @@
</MenuItem>
</ItemTemplate>
</Menu>
+ <Label Text="Restart required..." Font="droid bold, 14" Visible="{RestartRequired}" Margin="3"
+ Background="#100101" Foreground="White" />
+
<Widget Width="Stretched"/>
<VerticalStack Style="hsStatus" Width="160">
<Label Style="labStatus" Text="State:" />
diff --git a/ui/winOptions.crow b/ui/winOptions.crow
index 528ca5e..43d610b 100644
--- a/ui/winOptions.crow
+++ b/ui/winOptions.crow
@@ -77,7 +77,6 @@
<HorizontalStack >
<CheckBox Caption="Enable Reflections" IsChecked="{²EnableReflections}" />
<CheckBox Caption="Enable Tesselation" IsChecked="{²EnableTesselation}" />
- <Label Text="(restart required)"/>
</HorizontalStack >
<EnumSelector Caption="Sample count" ForceRadioButton="true" BitFieldExcludeMask="{AvailableSampleCount}" EnumValue="{²SampleCount}" Height="Fit" Width="Stretched">
<Template>