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();