From d0410bddcd7ea43c51b6bf2442a99e58710e70eb Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 27 Feb 2023 19:42:48 -0500 Subject: four duplicate layer types! --- src/imgui_ui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/imgui_ui.cpp') diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp index 546392a..aa09bfb 100644 --- a/src/imgui_ui.cpp +++ b/src/imgui_ui.cpp @@ -131,6 +131,15 @@ ImGui_ColorPanel(project_data *File, project_state *State, ui *UI, memory *Memor UI->AltColor = Temp; } + const char *Name = (State->DuplicateMode & sortflag_up) ? "Up" : "Down"; + if (ImGui::MenuItem(Name, NULL)) { + State->DuplicateMode ^= sortflag_up; + } + Name = (State->DuplicateMode & sortflag_furthest) ? "Furthest" : "Above"; + if (ImGui::MenuItem(Name, NULL)) { + State->DuplicateMode ^= sortflag_furthest; + } + if (State->Tool == tool_default) { if (ImGui::MenuItem("All", NULL, (State->SelectionMode == 0))) { State->SelectionMode = 0; -- cgit v1.2.3