mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-06 23:51:21 +00:00
GUI: hacky implementation of lock layout
This commit is contained in:
parent
43981eb59f
commit
16afb6d7be
1 changed files with 2 additions and 2 deletions
|
@ -2891,7 +2891,7 @@ bool FurnaceGUI::loop() {
|
|||
doAction(GUI_ACTION_FULLSCREEN);
|
||||
}
|
||||
#endif
|
||||
if (ImGui::MenuItem("lock layout (not working!)",NULL,lockLayout)) {
|
||||
if (ImGui::MenuItem("lock layout",NULL,lockLayout)) {
|
||||
lockLayout=!lockLayout;
|
||||
}
|
||||
if (ImGui::MenuItem("visualizer",NULL,fancyPattern)) {
|
||||
|
@ -3022,7 +3022,7 @@ bool FurnaceGUI::loop() {
|
|||
drawPattern();
|
||||
drawPiano();
|
||||
} else {
|
||||
globalWinFlags=0;
|
||||
globalWinFlags=lockLayout?ImGuiWindowFlags_NoMove:0;
|
||||
ImGui::DockSpaceOverViewport(NULL,lockLayout?(ImGuiDockNodeFlags_NoResize|ImGuiDockNodeFlags_NoCloseButton|ImGuiDockNodeFlags_NoDocking|ImGuiDockNodeFlags_NoDockingSplitMe|ImGuiDockNodeFlags_NoDockingSplitOther):0);
|
||||
|
||||
drawSubSongs();
|
||||
|
|
Loading…
Reference in a new issue