From 998eb2567dd7b30c3058404ac6f4bba4deb45330 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Tue, 28 Sep 2021 21:01:49 +0000 Subject: notify restartRequired --- src/VkChess.cs | 4 ++++ ui/chess.crow | 3 +++ ui/winOptions.crow | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) 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 ("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 @@ +