WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
NpcBrowserPanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <functional>
6
7struct NPCRecord;
8
10namespace NpcBrowserPanel
11{
12
15{
16 bool isWoWLoaded = false;
17 bool isDBReady = false;
18
19 const std::vector<NPCRecord>* npcs = nullptr;
20 std::vector<size_t>* npcFiltered = nullptr;
21 bool* npcFilterDirty = nullptr;
22 std::string* npcSearchBuf = nullptr;
23
24 std::function<void()> rebuildNpcFilter;
25 std::function<void(unsigned int)> loadNPC;
26};
27
28void draw(DrawContext& ctx);
29
30} // namespace NpcBrowserPanel
ImGui panel for browsing and loading NPC models.
void draw(DrawContext &ctx)
A single NPC record (creature display info).
Definition database.h:53
Per-frame context for the NPC browser panel.
std::vector< size_t > * npcFiltered
const std::vector< NPCRecord > * npcs
std::function< void()> rebuildNpcFilter
std::function< void(unsigned int)> loadNPC