From 379c939208d806a8ec4a0ee2b4160757e1f302af Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 30 Jul 2022 21:13:41 -0500 Subject: [PATCH] [nostalgia/core/studio] Move Select tool to first tool in TileSheetEditor toolbox --- src/nostalgia/core/studio/tilesheeteditor-imgui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nostalgia/core/studio/tilesheeteditor-imgui.cpp b/src/nostalgia/core/studio/tilesheeteditor-imgui.cpp index bba3938e..5b9753f7 100644 --- a/src/nostalgia/core/studio/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/core/studio/tilesheeteditor-imgui.cpp @@ -123,15 +123,15 @@ void TileSheetEditorImGui::draw(core::Context*) noexcept { ImGui::BeginChild("ToolBox", ImVec2(m_palViewWidth - 24, 30), true); { const auto btnSz = ImVec2(45, 14); + if (ImGui::Selectable("Select", m_tool == Tool::Select, 0, btnSz)) { + m_tool = Tool::Select; + } + ImGui::SameLine(); if (ImGui::Selectable("Draw", m_tool == Tool::Draw, 0, btnSz)) { m_tool = Tool::Draw; model()->clearSelection(); } ImGui::SameLine(); - if (ImGui::Selectable("Select", m_tool == Tool::Select, 0, btnSz)) { - m_tool = Tool::Select; - } - ImGui::SameLine(); if (ImGui::Selectable("Fill", m_tool == Tool::Fill, 0, btnSz)) { m_tool = Tool::Fill; model()->clearSelection();