WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ItemSetsPanel.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5#include <functional>
6
7class WoWModel;
8
10namespace ItemSetsPanel
11{
12
15{
16 int id;
17 std::string name;
18};
19
22{
23 int id;
24 std::string name;
25};
26
29{
30 bool isChar = false;
31
32 // Item Sets state
33 std::vector<ItemSetEntry>* itemSets = nullptr;
34 bool* itemSetsBuilt = nullptr;
35 std::string* itemSetSearchBuf = nullptr;
36 std::vector<size_t>* itemSetFiltered = nullptr;
37 bool* itemSetFilterDirty = nullptr;
38
39 // Start Outfits state
40 std::vector<StartOutfitEntry>* startOutfits = nullptr;
41 bool* startOutfitsBuilt = nullptr;
42 std::string* startOutfitSearchBuf = nullptr;
43 std::vector<size_t>* startOutfitFiltered = nullptr;
44 bool* startOutfitFilterDirty = nullptr;
45
46 // Callbacks
47 std::function<WoWModel*()> getLoadedModel;
48 std::function<void()> buildItemSets;
49 std::function<void()> rebuildItemSetFilter;
50 std::function<void(WoWModel*, int)> applyItemSet;
51 std::function<void(WoWModel*)> buildStartOutfits;
52 std::function<void()> rebuildStartOutfitFilter;
53 std::function<void(WoWModel*, int)> applyStartOutfit;
54};
55
56void draw(DrawContext& ctx);
57
58} // namespace ItemSetsPanel
Core WoW .m2 model: geometry, animation, textures, and character data.
Definition WoWModel.h:50
ImGui panel for applying pre-defined item sets and start outfits.
void draw(DrawContext &ctx)
Per-frame context for the item sets panel.
std::function< void(WoWModel *, int)> applyStartOutfit
std::function< void()> rebuildItemSetFilter
std::vector< size_t > * startOutfitFiltered
std::function< void(WoWModel *, int)> applyItemSet
std::vector< ItemSetEntry > * itemSets
std::function< void(WoWModel *)> buildStartOutfits
std::vector< size_t > * itemSetFiltered
std::function< WoWModel *()> getLoadedModel
std::vector< StartOutfitEntry > * startOutfits
std::string * startOutfitSearchBuf
std::function< void()> buildItemSets
std::function< void()> rebuildStartOutfitFilter
An item set from the ItemSet DB2 table.
std::string name
Display name.
A starter outfit from the CharStartOutfit DB2 table.
std::string name
Display name.