Improved UI main panel & control

bugfix; scrolling about and settings icons, clic outside buttonswitch. Updated default windows position.
This commit is contained in:
Bruno Herbelin
2022-01-09 00:01:06 +01:00
parent 1bb8b636b9
commit 685082e212
2 changed files with 35 additions and 25 deletions

View File

@@ -92,7 +92,7 @@ bool ImGuiToolkit::ButtonSwitch(const char* label, bool* toggle, const char* sho
float radius = height * 0.50f;
// toggle action : operate on the whole area
ImGui::InvisibleButton(label, ImVec2(frame_width, frame_height));
ImGui::InvisibleButton(label, ImVec2(frame_width - frame_height, frame_height));
if (ImGui::IsItemClicked()) {
*toggle = !*toggle;
ret = true;