yaze 0.2.2
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 editor {
11
16class GfxGroupEditor : public SharedRom {
17 public:
18 absl::Status Update();
19
20 void DrawBlocksetViewer(bool sheet_only = false);
21 void DrawRoomsetViewer();
22 void DrawSpritesetViewer(bool sheet_only = false);
23 void DrawPaletteViewer();
24
25 void SetSelectedBlockset(uint8_t blockset) { selected_blockset_ = blockset; }
26 void SetSelectedRoomset(uint8_t roomset) { selected_roomset_ = roomset; }
27 void SetSelectedSpriteset(uint8_t spriteset) {
28 selected_spriteset_ = spriteset;
29 }
30
31 private:
32 uint8_t selected_blockset_ = 0;
33 uint8_t selected_roomset_ = 0;
36
40
42};
43
44} // namespace editor
45} // namespace yaze
46#endif // YAZE_APP_EDITOR_GFX_GROUP_EDITOR_H
SharedRom()=default
Manage graphics group configurations in a Rom.
void SetSelectedSpriteset(uint8_t spriteset)
void SetSelectedRoomset(uint8_t roomset)
void SetSelectedBlockset(uint8_t blockset)
void DrawSpritesetViewer(bool sheet_only=false)
void DrawBlocksetViewer(bool sheet_only=false)
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
Represents a canvas for drawing and manipulating graphics.
Definition canvas.h:34
Editors are the view controllers for the application.
Main namespace for the application.
Definition controller.cc:18