Dedicated panel for editing dungeon palette sets. More...
#include <paletteset_editor_panel.h>

Public Member Functions | |
| absl::Status | Update () |
| void | SetRom (Rom *rom) |
| Rom * | rom () const |
| void | SetGameData (zelda3::GameData *data) |
| zelda3::GameData * | game_data () const |
Private Member Functions | |
| void | DrawPalettesetList () |
| void | DrawPalettesetEditor () |
| void | DrawPalettePreview (gfx::SnesPalette &palette, const char *label) |
| void | DrawPaletteGrid (gfx::SnesPalette &palette, bool editable=false) |
Private Attributes | |
| uint8_t | selected_paletteset_ = 0 |
| bool | show_all_colors_ = false |
| Rom * | rom_ = nullptr |
| zelda3::GameData * | game_data_ = nullptr |
Dedicated panel for editing dungeon palette sets.
A paletteset defines which palettes are used together in a dungeon room:
This panel allows viewing and editing these associations, providing a better UX than the combined GfxGroupEditor tab.
Definition at line 25 of file paletteset_editor_panel.h.
| absl::Status yaze::editor::PalettesetEditorPanel::Update | ( | ) |
Definition at line 37 of file paletteset_editor_panel.cc.
References DrawPalettesetEditor(), DrawPalettesetList(), game_data(), ICON_MD_PALETTE, rom(), and show_all_colors_.

|
inline |
|
inline |
Definition at line 30 of file paletteset_editor_panel.h.
References rom_.
Referenced by DrawPalettesetEditor(), SetRom(), and Update().
|
inline |
Definition at line 31 of file paletteset_editor_panel.h.
References game_data_.
|
inline |
Definition at line 32 of file paletteset_editor_panel.h.
References game_data_.
Referenced by DrawPalettesetEditor(), and Update().
|
private |
Definition at line 72 of file paletteset_editor_panel.cc.
References selected_paletteset_.
Referenced by Update().
|
private |
Definition at line 98 of file paletteset_editor_panel.cc.
References DrawPalettePreview(), yaze::gfx::PaletteGroupMap::dungeon_main, game_data(), ICON_MD_LANDSCAPE, ICON_MD_PERSON, ICON_MD_PETS, ICON_MD_SMART_TOY, yaze::gui::InputHexByte(), yaze::gfx::PaletteGroup::mutable_palette(), yaze::zelda3::GameData::palette_groups, yaze::zelda3::GameData::paletteset_ids, yaze::Rom::resource_label(), rom(), yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), selected_paletteset_, yaze::gfx::PaletteGroupMap::sprites_aux1, yaze::gfx::PaletteGroupMap::sprites_aux2, and yaze::gfx::PaletteGroupMap::sprites_aux3.
Referenced by Update().
|
private |
Definition at line 170 of file paletteset_editor_panel.cc.
References DrawPaletteGrid().
Referenced by DrawPalettesetEditor().

|
private |
Definition at line 177 of file paletteset_editor_panel.cc.
References yaze::gfx::SnesPalette::empty(), show_all_colors_, yaze::gfx::SnesPalette::size(), and yaze::gui::SnesColorButton().
Referenced by DrawPalettePreview().

|
private |
Definition at line 40 of file paletteset_editor_panel.h.
Referenced by DrawPalettesetEditor(), and DrawPalettesetList().
|
private |
Definition at line 41 of file paletteset_editor_panel.h.
Referenced by DrawPaletteGrid(), and Update().
|
private |
Definition at line 43 of file paletteset_editor_panel.h.
|
private |
Definition at line 44 of file paletteset_editor_panel.h.
Referenced by game_data(), and SetGameData().