yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
gfx_group_editor.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
2#define YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
3
4#include "absl/status/status.h"
6#include "app/gui/canvas.h"
7#include "app/rom.h"
8
9namespace yaze {
10namespace app {
11namespace editor {
12
17class GfxGroupEditor : public SharedRom {
18 public:
19 absl::Status Update();
20
21 void DrawBlocksetViewer(bool sheet_only = false);
22 void DrawRoomsetViewer();
23 void DrawSpritesetViewer(bool sheet_only = false);
24 void DrawPaletteViewer();
25
26 void SetSelectedBlockset(uint8_t blockset) { selected_blockset_ = blockset; }
27 void SetSelectedRoomset(uint8_t roomset) { selected_roomset_ = roomset; }
28 void SetSelectedSpriteset(uint8_t spriteset) {
29 selected_spriteset_ = spriteset;
30 }
31
32 private:
33 uint8_t selected_blockset_ = 0;
34 uint8_t selected_roomset_ = 0;
37
41
43};
44
45} // namespace editor
46} // namespace app
47} // namespace yaze
48#endif // YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
A class to hold a shared pointer to a Rom object.
Definition rom.h:576
Manage graphics group configurations in a Rom.
void SetSelectedBlockset(uint8_t blockset)
void SetSelectedRoomset(uint8_t roomset)
void DrawSpritesetViewer(bool sheet_only=false)
void DrawBlocksetViewer(bool sheet_only=false)
void SetSelectedSpriteset(uint8_t spriteset)
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:34
Definition common.cc:22