From a086d7cfaaa136f50e514c8b19f197bcd31d4f61 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Sat, 15 Mar 2025 22:38:21 +0300 Subject: [PATCH] `RobCharaAdjust`: Added key combination to hide the window --- src/ReDIVA/data_edit/rob_chara_adjust.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ReDIVA/data_edit/rob_chara_adjust.cpp b/src/ReDIVA/data_edit/rob_chara_adjust.cpp index d6161e34..1f1f5eee 100644 --- a/src/ReDIVA/data_edit/rob_chara_adjust.cpp +++ b/src/ReDIVA/data_edit/rob_chara_adjust.cpp @@ -12,6 +12,7 @@ #include "../data_test/motion_test.hpp" #include "../dw.hpp" #include "../imgui_helper.hpp" +#include "../input.hpp" static const char* chara_name[] = { "1P", @@ -127,6 +128,12 @@ bool RobCharaAdjust::dest() { } void RobCharaAdjust::window() { + if (Input::IsKeyTapped(GLFW_KEY_A, GLFW_MOD_CONTROL | GLFW_MOD_SHIFT)) + visible ^= true; + + if (!visible) + return; + ImGuiIO& io = ImGui::GetIO(); ImGuiStyle& style = ImGui::GetStyle(); ImFont* font = ImGui::GetFont(); @@ -151,6 +158,7 @@ void RobCharaAdjust::window() { return; } else if (!open) { + visible = false; ImGui::End(); return; }