mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-07 09:33:51 +00:00
feat(editor): add Trainer/Banker/Auctioneer/Repair NPC flags + SQL export
CreatureSpawn struct gains four AzerothCore-standard NPC flag bits: trainer -> npcflag 0x10 repair -> npcflag 0x1000 banker -> npcflag 0x20000 auctioneer -> npcflag 0x200000 Saved/loaded via the JSON spawn file, exported to creature_template.npcflag, exposed as checkboxes in the NPC template panel. Lets users build full city NPCs (city auctioneer, weapon trainer, etc.) without dropping to SQL.
This commit is contained in:
parent
bc6e60c6e9
commit
99aaab3aa8
4 changed files with 23 additions and 1 deletions
|
|
@ -1919,6 +1919,11 @@ void EditorUI::renderNpcPanel(EditorApp& app) {
|
|||
ImGui::SameLine(); ImGui::Checkbox("Questgiver", &tmpl.questgiver);
|
||||
ImGui::Checkbox("Vendor", &tmpl.vendor);
|
||||
ImGui::SameLine(); ImGui::Checkbox("Innkeeper", &tmpl.innkeeper);
|
||||
ImGui::Checkbox("Trainer", &tmpl.trainer);
|
||||
ImGui::SameLine(); ImGui::Checkbox("Banker", &tmpl.banker);
|
||||
ImGui::Checkbox("Auctioneer", &tmpl.auctioneer);
|
||||
ImGui::SameLine(); ImGui::Checkbox("Repair", &tmpl.repair);
|
||||
ImGui::SameLine(); ImGui::Checkbox("Flightmaster", &tmpl.flightmaster);
|
||||
|
||||
// Update nameBuf when preset selection changes it
|
||||
if (tmpl.name.c_str() != std::string(nameBuf))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue