feat(editor): selected-NPC editor gains Faction input (parity with template)

This commit is contained in:
Kelsi 2026-05-06 04:15:39 -07:00
parent 4e01dd5553
commit 9625201952

View file

@ -2003,6 +2003,9 @@ void EditorUI::renderNpcPanel(EditorApp& app) {
if (sel->displayId == 0)
ImGui::TextColored(ImVec4(0.9f, 0.6f, 0.3f, 1),
"Display ID 0 = invisible in game; set for SQL export");
int facSel = static_cast<int>(sel->faction);
if (ImGui::InputInt("Faction##s", &facSel))
sel->faction = static_cast<uint32_t>(std::max(0, facSel));
const char* beh2[] = {"Stationary", "Patrol", "Wander", "Scripted"};
int bi2 = static_cast<int>(sel->behavior);