fix(editor): NPC template scale slider matches selected-NPC editor range (0.1-50)

Template was a SliderFloat 0.5-10 while the selected-NPC editor uses
DragFloat 0.1-50. Inconsistent ceilings made it surprising that an NPC
could be scaled higher after placement than during placement. Now both
use DragFloat with the same range.
This commit is contained in:
Kelsi 2026-05-06 03:30:30 -07:00
parent d5bbc28fe1
commit f022459971

View file

@ -1866,7 +1866,7 @@ void EditorUI::renderNpcPanel(EditorApp& app) {
if (ImGui::InputText("Name##tmpl", nameBuf, sizeof(nameBuf)))
tmpl.name = nameBuf;
ImGui::SliderFloat("Scale", &tmpl.scale, 0.5f, 10.0f, "%.1f");
ImGui::DragFloat("Scale", &tmpl.scale, 0.05f, 0.1f, 50.0f, "%.2f");
ImGui::SliderFloat("Facing", &tmpl.orientation, 0.0f, 360.0f, "%.0f deg");
ImGui::SameLine();
if (ImGui::SmallButton("Random##face")) {