1#ifndef YAZE_APP_EDITOR_PALETTE_PALETTE_CATEGORY_H
2#define YAZE_APP_EDITOR_PALETTE_PALETTE_CATEGORY_H
5#include <unordered_map>
39 static const std::vector<PaletteCategoryInfo> categories = {
43 {
"ow_main",
"ow_aux",
"ow_animated",
"ow_mini_map",
"grass"}},
51 {
"global_sprites",
"sprites_aux1",
"sprites_aux2",
"sprites_aux3"}},
55 {
"armors",
"swords",
"shields"}},
59 {
"hud",
"3d_object"}}};
69 static const std::unordered_map<std::string, std::string> names = {
70 {
"ow_main",
"Overworld Main"},
71 {
"ow_aux",
"Overworld Auxiliary"},
72 {
"ow_animated",
"Overworld Animated"},
73 {
"ow_mini_map",
"Mini Map"},
75 {
"dungeon_main",
"Dungeon Main"},
76 {
"global_sprites",
"Global Sprites"},
77 {
"sprites_aux1",
"Sprites Aux 1"},
78 {
"sprites_aux2",
"Sprites Aux 2"},
79 {
"sprites_aux3",
"Sprites Aux 3"},
80 {
"armors",
"Armor/Tunic"},
82 {
"shields",
"Shields"},
84 {
"3d_object",
"3D Objects"}};
85 auto it = names.find(group_name);
86 return it != names.end() ? it->second : group_name;
96 for (
const auto& name : cat.group_names) {
97 if (name == group_name) {
#define ICON_MD_LANDSCAPE
#define ICON_MD_MORE_HORIZ
PaletteCategory GetGroupCategory(const std::string &group_name)
Get the category that a palette group belongs to.
PaletteCategory
Categories for organizing palette groups in the UI.
const std::vector< PaletteCategoryInfo > & GetPaletteCategories()
Get all palette categories with their associated groups.
std::string GetGroupDisplayName(const std::string &group_name)
Get display name for a palette group.
Information about a palette category for UI rendering.
std::vector< std::string > group_names