mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Adjust settings UI and remove F4 shadows toggle
This commit is contained in:
parent
716393c059
commit
26f91b032f
1 changed files with 4 additions and 7 deletions
|
|
@ -386,12 +386,6 @@ void GameScreen::processTargetInput(game::GameHandler& gameHandler) {
|
|||
}
|
||||
}
|
||||
|
||||
if (input.isKeyJustPressed(SDL_SCANCODE_F4)) {
|
||||
auto* renderer = core::Application::getInstance().getRenderer();
|
||||
if (renderer) {
|
||||
renderer->setShadowsEnabled(!renderer->areShadowsEnabled());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Slash key: focus chat input
|
||||
|
|
@ -1853,9 +1847,12 @@ void GameScreen::renderSettingsWindow() {
|
|||
renderer->setShadowsEnabled(pendingShadows);
|
||||
}
|
||||
}
|
||||
if (ImGui::Button("Close", ImVec2(-1, 0))) {
|
||||
ImGui::Spacing();
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10.0f, 10.0f));
|
||||
if (ImGui::Button("Back to Game", ImVec2(-1, 0))) {
|
||||
showSettingsWindow = false;
|
||||
}
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
ImGui::End();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue