mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 01:23:52 +00:00
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:
parent
d5bbc28fe1
commit
f022459971
1 changed files with 1 additions and 1 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue