mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Add mouse sensitivity and invert mouse to settings UI
Larger settings window (440x520) to fit all sections.
This commit is contained in:
parent
e700c19394
commit
3ef0f8c2f1
2 changed files with 4 additions and 1 deletions
|
|
@ -63,6 +63,8 @@ private:
|
|||
bool pendingShadows = true;
|
||||
int pendingMusicVolume = 30;
|
||||
int pendingSfxVolume = 100;
|
||||
float pendingMouseSensitivity = 0.2f;
|
||||
bool pendingInvertMouse = false;
|
||||
|
||||
/**
|
||||
* Render player info window
|
||||
|
|
|
|||
|
|
@ -1880,7 +1880,7 @@ void GameScreen::renderSettingsWindow() {
|
|||
ImGuiIO& io = ImGui::GetIO();
|
||||
float screenW = io.DisplaySize.x;
|
||||
float screenH = io.DisplaySize.y;
|
||||
ImVec2 size(400.0f, 420.0f);
|
||||
ImVec2 size(440.0f, 520.0f);
|
||||
ImVec2 pos((screenW - size.x) * 0.5f, (screenH - size.y) * 0.5f);
|
||||
|
||||
ImGui::SetNextWindowPos(pos, ImGuiCond_Always);
|
||||
|
|
@ -1939,6 +1939,7 @@ void GameScreen::renderSettingsWindow() {
|
|||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
ImGui::Spacing();
|
||||
|
||||
if (ImGui::Button("Apply", ImVec2(-1, 0))) {
|
||||
window->setVsync(pendingVsync);
|
||||
window->setFullscreen(pendingFullscreen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue