yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
paletteset_editor_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_GRAPHICS_PALETTESET_EDITOR_PANEL_H_
2#define YAZE_APP_EDITOR_GRAPHICS_PALETTESET_EDITOR_PANEL_H_
3
4#include <cstdint>
5
6#include "absl/status/status.h"
8#include "rom/rom.h"
9#include "zelda3/game_data.h"
10
11namespace yaze {
12namespace editor {
13
26 public:
27 absl::Status Update();
28
29 void SetRom(Rom* rom) { rom_ = rom; }
30 Rom* rom() const { return rom_; }
31 void SetGameData(zelda3::GameData* data) { game_data_ = data; }
33
34 private:
35 void DrawPalettesetList();
37 void DrawPalettePreview(gfx::SnesPalette& palette, const char* label);
38 void DrawPaletteGrid(gfx::SnesPalette& palette, bool editable = false);
39
41 bool show_all_colors_ = false;
42
43 Rom* rom_ = nullptr;
45};
46
47} // namespace editor
48} // namespace yaze
49
50#endif // YAZE_APP_EDITOR_GRAPHICS_PALETTESET_EDITOR_PANEL_H_
51
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:24
Dedicated panel for editing dungeon palette sets.
void DrawPaletteGrid(gfx::SnesPalette &palette, bool editable=false)
void DrawPalettePreview(gfx::SnesPalette &palette, const char *label)
void SetGameData(zelda3::GameData *data)
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).