yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::editor::GfxGroupEditor Class Reference

Manage graphics group configurations in a Rom. More...

#include <gfx_group_editor.h>

Inheritance diagram for yaze::app::editor::GfxGroupEditor:
Collaboration diagram for yaze::app::editor::GfxGroupEditor:

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< Romshared_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< Romshared_rom_ = nullptr
 

Detailed Description

Manage graphics group configurations in a Rom.

Definition at line 27 of file gfx_group_editor.h.

Member Function Documentation

◆ Update()

◆ DrawBlocksetViewer()

void yaze::app::editor::GfxGroupEditor::DrawBlocksetViewer ( bool sheet_only = false)

◆ DrawRoomsetViewer()

void yaze::app::editor::GfxGroupEditor::DrawRoomsetViewer ( )

Definition at line 135 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().

Here is the call graph for this function:

◆ DrawSpritesetViewer()

void yaze::app::editor::GfxGroupEditor::DrawSpritesetViewer ( bool sheet_only = false)

◆ DrawPaletteViewer()

void yaze::app::editor::GfxGroupEditor::DrawPaletteViewer ( )

◆ SetSelectedBlockset()

void yaze::app::editor::GfxGroupEditor::SetSelectedBlockset ( uint8_t blockset)
inline

Definition at line 36 of file gfx_group_editor.h.

References selected_blockset_.

Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats().

◆ SetSelectedRoomset()

void yaze::app::editor::GfxGroupEditor::SetSelectedRoomset ( uint8_t roomset)
inline

Definition at line 37 of file gfx_group_editor.h.

References selected_roomset_.

◆ SetSelectedSpriteset()

void yaze::app::editor::GfxGroupEditor::SetSelectedSpriteset ( uint8_t spriteset)
inline

Definition at line 38 of file gfx_group_editor.h.

References selected_spriteset_.

Referenced by yaze::app::editor::DungeonEditor::DrawUsageStats().

Member Data Documentation

◆ selected_blockset_

uint8_t yaze::app::editor::GfxGroupEditor::selected_blockset_ = 0
private

Definition at line 43 of file gfx_group_editor.h.

Referenced by DrawBlocksetViewer(), SetSelectedBlockset(), and Update().

◆ selected_roomset_

uint8_t yaze::app::editor::GfxGroupEditor::selected_roomset_ = 0
private

Definition at line 44 of file gfx_group_editor.h.

Referenced by DrawRoomsetViewer(), SetSelectedRoomset(), and Update().

◆ selected_spriteset_

uint8_t yaze::app::editor::GfxGroupEditor::selected_spriteset_ = 0
private

Definition at line 45 of file gfx_group_editor.h.

Referenced by DrawSpritesetViewer(), SetSelectedSpriteset(), and Update().

◆ selected_paletteset_

uint8_t yaze::app::editor::GfxGroupEditor::selected_paletteset_ = 0
private

Definition at line 46 of file gfx_group_editor.h.

Referenced by DrawPaletteViewer().

◆ blockset_canvas_

gui::Canvas yaze::app::editor::GfxGroupEditor::blockset_canvas_
private

Definition at line 48 of file gfx_group_editor.h.

Referenced by DrawBlocksetViewer().

◆ roomset_canvas_

gui::Canvas yaze::app::editor::GfxGroupEditor::roomset_canvas_
private

Definition at line 49 of file gfx_group_editor.h.

Referenced by DrawRoomsetViewer().

◆ spriteset_canvas_

gui::Canvas yaze::app::editor::GfxGroupEditor::spriteset_canvas_
private

Definition at line 50 of file gfx_group_editor.h.

Referenced by DrawSpritesetViewer().

◆ palette_

gfx::SnesPalette yaze::app::editor::GfxGroupEditor::palette_
private

Definition at line 52 of file gfx_group_editor.h.


The documentation for this class was generated from the following files: