diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-28 21:01:49 +0000 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-28 21:01:49 +0000 |
| commit | 998eb2567dd7b30c3058404ac6f4bba4deb45330 (patch) | |
| tree | c6229968362121894de5c2de0c18d67c17a40ca9 | |
| parent | c7d842ba602f50e58424f18e57d87d14d87b5df3 (diff) | |
notify restartRequiredtests2
| -rw-r--r-- | src/VkChess.cs | 4 | ||||
| -rw-r--r-- | ui/chess.crow | 3 | ||||
| -rw-r--r-- | ui/winOptions.crow | 1 |
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> |