From 700416b2c7bce528d6389d70b2deadabc9ad5177 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 01:23:42 -0700 Subject: [PATCH] feat(editor): scale slider in selected-NPC editor Once an NPC is placed there was no way to resize it without removing and re-placing. Added a Scale DragFloat in the selected-creature editor with the same 0.1-50 range used for placed objects. --- tools/editor/editor_ui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 3eecf50d..7250b5c5 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -1937,6 +1937,7 @@ void EditorUI::renderNpcPanel(EditorApp& app) { ImGui::DragFloat3("Pos##npc", &sel->position.x, 1.0f); ImGui::SliderFloat("Facing", &sel->orientation, 0.0f, 360.0f, "%.0f"); + ImGui::DragFloat("Scale##s", &sel->scale, 0.05f, 0.1f, 50.0f, "%.2f"); int hp2 = sel->health; if (ImGui::InputInt("HP##s", &hp2)) sel->health = std::max(1, hp2); int lv2 = sel->level; if (ImGui::InputInt("Lv##s", &lv2)) sel->level = std::max(1, lv2);