diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index 00f1f291..440b1924 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -1940,6 +1940,12 @@ void EditorUI::renderNpcPanel(EditorApp& app) { 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); + int dispId = static_cast(sel->displayId); + if (ImGui::InputInt("Display ID##s", &dispId)) + sel->displayId = static_cast(std::max(0, dispId)); + if (sel->displayId == 0) + ImGui::TextColored(ImVec4(0.9f, 0.6f, 0.3f, 1), + "Display ID 0 = invisible in game; set for SQL export"); const char* beh2[] = {"Stationary", "Patrol", "Wander", "Scripted"}; int bi2 = static_cast(sel->behavior);