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
7
struct
NPCRecord
;
8
10
namespace
NpcBrowserPanel
11
{
12
14
struct
DrawContext
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
28
void
draw
(
DrawContext
& ctx);
29
30
}
// namespace NpcBrowserPanel
NpcBrowserPanel
ImGui panel for browsing and loading NPC models.
Definition
NpcBrowserPanel.cpp:12
NpcBrowserPanel::draw
void draw(DrawContext &ctx)
Definition
NpcBrowserPanel.cpp:14
NPCRecord
A single NPC record (creature display info).
Definition
database.h:53
NpcBrowserPanel::DrawContext
Per-frame context for the NPC browser panel.
Definition
NpcBrowserPanel.h:15
NpcBrowserPanel::DrawContext::isDBReady
bool isDBReady
Definition
NpcBrowserPanel.h:17
NpcBrowserPanel::DrawContext::npcFiltered
std::vector< size_t > * npcFiltered
Definition
NpcBrowserPanel.h:20
NpcBrowserPanel::DrawContext::npcs
const std::vector< NPCRecord > * npcs
Definition
NpcBrowserPanel.h:19
NpcBrowserPanel::DrawContext::isWoWLoaded
bool isWoWLoaded
Definition
NpcBrowserPanel.h:16
NpcBrowserPanel::DrawContext::npcFilterDirty
bool * npcFilterDirty
Definition
NpcBrowserPanel.h:21
NpcBrowserPanel::DrawContext::npcSearchBuf
std::string * npcSearchBuf
Definition
NpcBrowserPanel.h:22
NpcBrowserPanel::DrawContext::rebuildNpcFilter
std::function< void()> rebuildNpcFilter
Definition
NpcBrowserPanel.h:24
NpcBrowserPanel::DrawContext::loadNPC
std::function< void(unsigned int)> loadNPC
Definition
NpcBrowserPanel.h:25
Source
App
Panels
NpcBrowserPanel.h
Generated by
1.9.8