WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ItemBrowserPanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <functional>
6
7struct ItemRecord;
8class ItemDatabase;
9
11namespace ItemBrowserPanel
12{
13
16{
17 bool isWoWLoaded = false;
18 bool isDBReady = false;
19
20 const ItemDatabase* items = nullptr;
21 std::vector<size_t>* itemBrowseFiltered = nullptr;
22 bool* itemBrowseFilterDirty = nullptr;
23 std::string* itemBrowseSearchBuf = nullptr;
24
25 std::function<void()> rebuildItemBrowseFilter;
26 std::function<void(unsigned int)> loadItemModel;
27};
28
29void draw(DrawContext& ctx);
30
31} // namespace ItemBrowserPanel
In-memory item database loaded from the CSV item list.
Definition database.h:41
ImGui panel for browsing and loading item models.
void draw(DrawContext &ctx)
Per-frame context for the item browser panel.
std::function< void()> rebuildItemBrowseFilter
std::function< void(unsigned int)> loadItemModel
std::vector< size_t > * itemBrowseFiltered
A single equipment item record from the item database.
Definition database.h:26