[nostalgia/core/studio] Add copy/cut/paste support to TileSheet Editor

This commit is contained in:
2022-03-10 20:42:21 -06:00
parent a6983ce53b
commit 415c2574bb
3 changed files with 154 additions and 65 deletions

View File

@@ -59,6 +59,7 @@ void TileSheetEditorImGui::draw(core::Context*) noexcept {
const auto btnSz = ImVec2(40, 14);
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)) {