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) |
| void | set_rom (Rom *rom) |
| Rom * | rom () const |
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_ |
| Rom * | rom_ = nullptr |
Manage graphics group configurations in a Rom.
Definition at line 16 of file gfx_group_editor.h.
| absl::Status yaze::editor::GfxGroupEditor::Update | ( | ) |
Definition at line 43 of file gfx_group_editor.cc.
References DrawBlocksetViewer(), DrawPaletteViewer(), DrawRoomsetViewer(), DrawSpritesetViewer(), yaze::gui::InputHexByte(), yaze::Rom::resource_label(), rom(), yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), selected_blockset_, selected_roomset_, and selected_spriteset_.
Referenced by yaze::editor::OverworldEditor::DrawOverworldProperties(), and yaze::editor::OverworldEditor::Update().
| void yaze::editor::GfxGroupEditor::DrawBlocksetViewer | ( | bool | sheet_only = false | ) |
Definition at line 86 of file gfx_group_editor.cc.
References yaze::gui::BitmapCanvasPipeline(), blockset_canvas_, yaze::gfx::Arena::Get(), yaze::gui::InputHexByte(), yaze::Rom::main_blockset_ids, yaze::gfx::Arena::mutable_gfx_sheets(), rom(), and selected_blockset_.
Referenced by Update().
| void yaze::editor::GfxGroupEditor::DrawRoomsetViewer | ( | ) |
Definition at line 125 of file gfx_group_editor.cc.
References yaze::gui::BitmapCanvasPipeline(), yaze::gfx::Arena::Get(), yaze::gui::InputHexByte(), yaze::gfx::Arena::mutable_gfx_sheets(), yaze::Rom::resource_label(), rom(), yaze::Rom::room_blockset_ids, roomset_canvas_, yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), and selected_roomset_.
Referenced by Update().
| void yaze::editor::GfxGroupEditor::DrawSpritesetViewer | ( | bool | sheet_only = false | ) |
Definition at line 178 of file gfx_group_editor.cc.
References yaze::gui::BitmapCanvasPipeline(), yaze::gfx::Arena::Get(), yaze::gui::InputHexByte(), yaze::gfx::Arena::mutable_gfx_sheets(), rom(), selected_spriteset_, spriteset_canvas_, and yaze::Rom::spriteset_ids.
Referenced by Update().
| void yaze::editor::GfxGroupEditor::DrawPaletteViewer | ( | ) |
Definition at line 238 of file gfx_group_editor.cc.
References yaze::gui::InputHexByte(), yaze::Rom::mutable_palette_group(), yaze::Rom::paletteset_ids, yaze::Rom::resource_label(), rom(), yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), and selected_paletteset_.
Referenced by Update().
|
inline |
Definition at line 25 of file gfx_group_editor.h.
References selected_blockset_.
|
inline |
Definition at line 26 of file gfx_group_editor.h.
References selected_roomset_.
|
inline |
Definition at line 27 of file gfx_group_editor.h.
References selected_spriteset_.
|
inline |
Definition at line 30 of file gfx_group_editor.h.
Referenced by yaze::editor::OverworldEditor::OverworldEditor().

|
inline |
Definition at line 31 of file gfx_group_editor.h.
References rom_.
Referenced by DrawBlocksetViewer(), DrawPaletteViewer(), DrawRoomsetViewer(), DrawSpritesetViewer(), set_rom(), and Update().
|
private |
Definition at line 34 of file gfx_group_editor.h.
Referenced by DrawBlocksetViewer(), SetSelectedBlockset(), and Update().
|
private |
Definition at line 35 of file gfx_group_editor.h.
Referenced by DrawRoomsetViewer(), SetSelectedRoomset(), and Update().
|
private |
Definition at line 36 of file gfx_group_editor.h.
Referenced by DrawSpritesetViewer(), SetSelectedSpriteset(), and Update().
|
private |
Definition at line 37 of file gfx_group_editor.h.
Referenced by DrawPaletteViewer().
|
private |
Definition at line 39 of file gfx_group_editor.h.
Referenced by DrawBlocksetViewer().
|
private |
Definition at line 40 of file gfx_group_editor.h.
Referenced by DrawRoomsetViewer().
|
private |
Definition at line 41 of file gfx_group_editor.h.
Referenced by DrawSpritesetViewer().
|
private |
Definition at line 43 of file gfx_group_editor.h.
|
private |
Definition at line 44 of file gfx_group_editor.h.