1212
1313Notifications Notifications::instance;
1414
15- bool show_demo_window = true ;
16-
1715bool f11_prev_state = false ; // previously seen F11 state
1816
1917bool overlay_visible = false ; // user wants overlay to show?
@@ -49,7 +47,7 @@ class GlobalsWindow : public OverlayWindow
4947
5048 GameStage cur_stage_num = *Game::stg_stage_num;
5149 ImGui::Text (" Loaded Stage: %d (%s / %s)" , cur_stage_num, Game::GetStageFriendlyName (cur_stage_num), Game::GetStageUniqueName (cur_stage_num));
52-
50+
5351 if (Settings::DrawDistanceIncrease > 0 )
5452 if (ImGui::Button (" Open Draw Distance Debugger" ))
5553 Game::DrawDistanceDebugEnabled = true ;
@@ -93,13 +91,22 @@ GlobalsWindow GlobalsWindow::instance;
9391
9492class UISettingsWindow : public OverlayWindow
9593{
94+ bool ShowStyleEditor = false ;
95+
9696public:
9797 void init () override {}
9898 void render (bool overlayEnabled) override
9999 {
100100 if (!overlayEnabled)
101101 return ;
102102
103+ if (ShowStyleEditor)
104+ {
105+ if (ImGui::Begin (" UI Style Editor" , &ShowStyleEditor))
106+ ImGui::ShowStyleEditor ();
107+ ImGui::End ();
108+ }
109+
103110 ImVec2 screenSize = ImGui::GetIO ().DisplaySize ;
104111
105112 // Calculate starting position for the latest notification
@@ -121,6 +128,9 @@ class UISettingsWindow : public OverlayWindow
121128
122129 if (ImGui::TreeNodeEx (" Global" , ImGuiTreeNodeFlags_DefaultOpen))
123130 {
131+ if (ImGui::Button (" Open UI Style Editor" ))
132+ ShowStyleEditor = true ;
133+
124134 static bool fontScaleChanged = false ;
125135 if (ImGui::SliderFloat (" Font Scale" , &Overlay::GlobalFontScale, 0 .5f , 2 .5f ))
126136 fontScaleChanged |= true ;
0 commit comments