mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +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;
|
bool pendingShadows = true;
|
||||||
int pendingMusicVolume = 30;
|
int pendingMusicVolume = 30;
|
||||||
int pendingSfxVolume = 100;
|
int pendingSfxVolume = 100;
|
||||||
|
float pendingMouseSensitivity = 0.2f;
|
||||||
|
bool pendingInvertMouse = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render player info window
|
* Render player info window
|
||||||
|
|
|
||||||
|
|
@ -1880,7 +1880,7 @@ void GameScreen::renderSettingsWindow() {
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
float screenW = io.DisplaySize.x;
|
float screenW = io.DisplaySize.x;
|
||||||
float screenH = io.DisplaySize.y;
|
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);
|
ImVec2 pos((screenW - size.x) * 0.5f, (screenH - size.y) * 0.5f);
|
||||||
|
|
||||||
ImGui::SetNextWindowPos(pos, ImGuiCond_Always);
|
ImGui::SetNextWindowPos(pos, ImGuiCond_Always);
|
||||||
|
|
@ -1939,6 +1939,7 @@ void GameScreen::renderSettingsWindow() {
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
|
||||||
if (ImGui::Button("Apply", ImVec2(-1, 0))) {
|
if (ImGui::Button("Apply", ImVec2(-1, 0))) {
|
||||||
window->setVsync(pendingVsync);
|
window->setVsync(pendingVsync);
|
||||||
window->setFullscreen(pendingFullscreen);
|
window->setFullscreen(pendingFullscreen);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue