mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 09:39:48 -04:00
Change fullscreen checkbox to menu item, add F11 keybind
This commit is contained in:
@@ -24,16 +24,20 @@ namespace dusk {
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::BeginMenu("Graphics")) {
|
||||
if (ImGui::MenuItem("Fullscreen", "F11")) {
|
||||
m_graphicsSettings.m_fullscreen = !m_graphicsSettings.m_fullscreen;
|
||||
VISetWindowFullscreen(m_graphicsSettings.m_fullscreen);
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Checkbox("Native Bloom", &m_graphicsSettings.m_enableBloom);
|
||||
ImGui::Checkbox("Water Projection Offset", &m_graphicsSettings.m_waterProjectionOffset);
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("Adds GC-specific -0.01 transS offset\n"
|
||||
"that causes ~6px ghost artifacts in water reflections");
|
||||
}
|
||||
ImGui::Checkbox("Fullscreen", &m_graphicsSettings.m_fullscreen);
|
||||
if (m_graphicsSettings.m_fullscreen != VIGetWindowFullscreen()) {
|
||||
VISetWindowFullscreen(m_graphicsSettings.m_fullscreen);
|
||||
}
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
@@ -86,6 +90,11 @@ namespace dusk {
|
||||
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && ImGui::IsKeyPressed(ImGuiKey_R)) {
|
||||
JUTGamePad::C3ButtonReset::sResetSwitchPushing = true;
|
||||
}
|
||||
|
||||
if (ImGui::IsKeyPressed(ImGuiKey_F11)) {
|
||||
m_graphicsSettings.m_fullscreen = !m_graphicsSettings.m_fullscreen;
|
||||
VISetWindowFullscreen(m_graphicsSettings.m_fullscreen);
|
||||
}
|
||||
}
|
||||
|
||||
static void drawVirtualStick(const char* id, const ImVec2& stick) {
|
||||
|
||||
Reference in New Issue
Block a user