Manage graphics group configurations in a Rom. More...
#include <gfx_group_editor.h>
Public Member Functions | |
absl::Status | Update () |
void | DrawBlocksetViewer (bool sheet_only=false) |
void | DrawRoomsetViewer () |
void | DrawSpritesetViewer (bool sheet_only=false) |
void | DrawPaletteViewer () |
void | SetSelectedBlockset (uint8_t blockset) |
void | SetSelectedRoomset (uint8_t roomset) |
void | SetSelectedSpriteset (uint8_t spriteset) |
Public Member Functions inherited from yaze::app::SharedRom | |
SharedRom ()=default | |
virtual | ~SharedRom ()=default |
std::shared_ptr< Rom > | shared_rom () |
auto | rom () |
Private Attributes | |
uint8_t | selected_blockset_ = 0 |
uint8_t | selected_roomset_ = 0 |
uint8_t | selected_spriteset_ = 0 |
uint8_t | selected_paletteset_ = 0 |
gui::Canvas | blockset_canvas_ |
gui::Canvas | roomset_canvas_ |
gui::Canvas | spriteset_canvas_ |
gfx::SnesPalette | palette_ |
Additional Inherited Members | |
Static Public Attributes inherited from yaze::app::SharedRom | |
static std::shared_ptr< Rom > | shared_rom_ = nullptr |
Manage graphics group configurations in a Rom.
Definition at line 17 of file gfx_group_editor.h.
absl::Status yaze::app::editor::GfxGroupEditor::Update | ( | ) |
Definition at line 44 of file gfx_group_editor.cc.
References DrawBlocksetViewer(), DrawPaletteViewer(), DrawRoomsetViewer(), DrawSpritesetViewer(), yaze::app::gui::InputHexByte(), yaze::app::SharedRom::rom(), selected_blockset_, selected_roomset_, and selected_spriteset_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldProperties(), and yaze::app::editor::OverworldEditor::DrawToolset().
void yaze::app::editor::GfxGroupEditor::DrawBlocksetViewer | ( | bool | sheet_only = false | ) |
Definition at line 87 of file gfx_group_editor.cc.
References yaze::app::gui::BitmapCanvasPipeline(), blockset_canvas_, yaze::app::gui::InputHexByte(), yaze::app::SharedRom::rom(), and selected_blockset_.
Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats(), and Update().
void yaze::app::editor::GfxGroupEditor::DrawRoomsetViewer | ( | ) |
Definition at line 126 of file gfx_group_editor.cc.
References yaze::app::gui::BitmapCanvasPipeline(), yaze::app::gui::InputHexByte(), yaze::app::SharedRom::rom(), roomset_canvas_, and selected_roomset_.
Referenced by Update().
void yaze::app::editor::GfxGroupEditor::DrawSpritesetViewer | ( | bool | sheet_only = false | ) |
Definition at line 179 of file gfx_group_editor.cc.
References yaze::app::gui::BitmapCanvasPipeline(), yaze::app::gui::InputHexByte(), yaze::app::SharedRom::rom(), selected_spriteset_, and spriteset_canvas_.
Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats(), and Update().
void yaze::app::editor::GfxGroupEditor::DrawPaletteViewer | ( | ) |
Definition at line 238 of file gfx_group_editor.cc.
References yaze::app::gui::InputHexByte(), yaze::app::gfx::kDungeons, yaze::app::gfx::kSpritesAux1, yaze::app::gfx::kSpritesAux2, yaze::app::gfx::kSpritesAux3, yaze::app::SharedRom::rom(), and selected_paletteset_.
Referenced by Update(), and yaze::app::editor::PaletteEditor::Update().
|
inline |
Definition at line 26 of file gfx_group_editor.h.
References selected_blockset_.
Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats().
|
inline |
Definition at line 27 of file gfx_group_editor.h.
References selected_roomset_.
|
inline |
Definition at line 28 of file gfx_group_editor.h.
References selected_spriteset_.
Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats().
|
private |
Definition at line 33 of file gfx_group_editor.h.
Referenced by DrawBlocksetViewer(), SetSelectedBlockset(), and Update().
|
private |
Definition at line 34 of file gfx_group_editor.h.
Referenced by DrawRoomsetViewer(), SetSelectedRoomset(), and Update().
|
private |
Definition at line 35 of file gfx_group_editor.h.
Referenced by DrawSpritesetViewer(), SetSelectedSpriteset(), and Update().
|
private |
Definition at line 36 of file gfx_group_editor.h.
Referenced by DrawPaletteViewer().
|
private |
Definition at line 38 of file gfx_group_editor.h.
Referenced by DrawBlocksetViewer().
|
private |
Definition at line 39 of file gfx_group_editor.h.
Referenced by DrawRoomsetViewer().
|
private |
Definition at line 40 of file gfx_group_editor.h.
Referenced by DrawSpritesetViewer().
|
private |
Definition at line 42 of file gfx_group_editor.h.