# HG changeset patch # User Alys Brooks # Date 2021-06-29 08:21:03 # Node ID 5e4ba38271f426cf4290311d793eab0e397cad9c # Parent 3c7f0b7e08f3f24e611c3387253ef178f1a501d5 Add Apply button. diff --git a/isometric-park-fna/UI/OptionsWindow.cs b/isometric-park-fna/UI/OptionsWindow.cs --- a/isometric-park-fna/UI/OptionsWindow.cs +++ b/isometric-park-fna/UI/OptionsWindow.cs @@ -147,6 +147,18 @@ fontName = OptionsWindow.fontName}); } + ImGui.SameLine(); + if (ImGui.Button("Apply")) + { + bridgeEngine.resolutionMessages.Add(new SetResolutionMessage { + resolution = newResolution, + fullscreen = newFullscreen + }); + bridgeEngine.fontMessages.Add(new SetFontMessage{ + fontSize = OptionsWindow.fontSize, + fontName = OptionsWindow.fontName}); + } + ImGui.End();