yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::ScreenEditor Class Reference

The ScreenEditor class allows the user to edit a variety of screens in the game or create a custom menu. More...

#include <screen_editor.h>

Inheritance diagram for yaze::editor::ScreenEditor:

Public Member Functions

 ScreenEditor (Rom *rom=nullptr)
 
void Initialize () override
 
absl::Status Load () override
 
absl::Status Update () override
 
absl::Status Undo () override
 
absl::Status Redo () override
 
absl::Status Cut () override
 
absl::Status Copy () override
 
absl::Status Paste () override
 
absl::Status Find () override
 
absl::Status Save () override
 
void set_rom (Rom *rom)
 
Romrom () const
 
bool HasPendingDungeonMapChanges () const
 
bool HasPendingDungeonMapTile16Changes () const
 
bool HasPendingTitleScreenChanges () const
 
bool HasPendingOverworldMapChanges () const
 
bool HasPendingScreenChanges () const
 
void InvalidateRomBackedState ()
 
absl::Status RefreshRomBackedState ()
 
bool IsRomBackedStateValid () const
 
- Public Member Functions inherited from yaze::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
virtual void SetDependencies (const EditorDependencies &deps)
 
virtual void SetGameData (zelda3::GameData *game_data)
 
virtual absl::Status BeginSaveTransaction ()
 
virtual void RollbackSaveTransaction ()
 
virtual void CommitSaveTransaction ()
 
virtual std::string GetUndoDescription () const
 
virtual std::string GetRedoDescription () const
 
const UndoManagerundo_manager () const
 
virtual absl::Status Clear ()
 
virtual void ContributeStatus (StatusBar *)
 
EditorType type () const
 
bool * active ()
 
void set_active (bool active)
 
void toggle_active ()
 
virtual bool IsRomLoaded () const
 
virtual std::string GetRomStatus () const
 
Romrom () const
 
zelda3::GameDatagame_data () const
 
project::YazeProjectproject () const
 
core::VersionManagerversion_manager () const
 
EditorContext context () const
 
bool HasContext () const
 

Public Attributes

std::vector< zelda3::DungeonMapdungeon_maps_
 

Private Types

enum class  EditingMode { DRAW , EDIT }
 

Private Member Functions

void DrawTitleScreenEditor ()
 
void DrawNamingScreenEditor ()
 
void DrawOverworldMapEditor ()
 
void DrawInventoryMenuEditor ()
 
void DrawInventoryItemIcons ()
 
void DrawToolset ()
 
void DrawDungeonMapToolset ()
 
void DrawInventoryToolset ()
 
void DrawTitleScreenCompositeCanvas ()
 
void DrawTitleScreenBG1Canvas ()
 
void DrawTitleScreenBG2Canvas ()
 
void DrawTitleScreenBlocksetSelector ()
 
absl::Status LoadDungeonMapTile16 (const std::vector< uint8_t > &gfx_data, bool bin_mode=false)
 
void DrawDungeonMapScreen (int i)
 
void DrawDungeonMapsTabs ()
 
void DrawDungeonMapsEditor ()
 Draw dungeon maps editor with enhanced ROM hacking features.
 
void DrawDungeonMapsRoomGfx ()
 Draw dungeon room graphics editor with enhanced tile16 editing.
 
void LoadBinaryGfx ()
 
gfx::BitmapGetOrCreateSheet (int index)
 
void RefreshTileCacheForReload (gfx::Tilemap &tilemap)
 
bool HasValidDungeonSelection () const
 
bool HasValidDungeonFloorSelection (int floor) const
 
ScreenSnapshot CaptureDungeonMapSnapshot () const
 
ScreenSnapshot CaptureTile16CompSnapshot () const
 
void SaveDungeonMapUndoState (const std::string &description)
 
void SaveTile16CompUndoState (const std::string &description)
 
void CommitDungeonMapUndo ()
 
void CommitTile16CompUndo ()
 
void RestoreFromSnapshot (const ScreenSnapshot &snapshot)
 
void ResetRomBackedStateForLoad ()
 
void MarkDungeonMapModified ()
 
void MarkDungeonMapTile16Modified ()
 
void MarkTitleScreenModified ()
 
void MarkOverworldMapModified ()
 
void MarkOverworldMapPaletteModified ()
 
absl::Status SaveTitleScreenToRom ()
 
absl::Status SaveOverworldMapToRom ()
 

Private Attributes

EditingMode current_mode_ = EditingMode::DRAW
 
bool binary_gfx_loaded_ = false
 
uint8_t selected_room = 0
 
int selected_tile16_ = 0
 
int selected_tile8_ = 0
 
int selected_dungeon = 0
 
int floor_number = 1
 
bool copy_button_pressed = false
 
bool paste_button_pressed = false
 
zelda3::DungeonMapLabels dungeon_map_labels_
 
gfx::SnesPalette palette_
 
gfx::BitmapTable sheets_
 
gfx::Tilemap tile16_blockset_
 
gfx::Tilemap tile8_tilemap_
 
std::array< gfx::TileInfo, 4 > current_tile16_info
 
gui::Canvas current_tile_canvas_
 
gui::Canvas screen_canvas_
 
gui::Canvas tilesheet_canvas_
 
gui::Canvas tilemap_canvas_
 
gui::Canvas title_bg1_canvas_
 
gui::Canvas title_bg2_canvas_
 
gui::Canvas title_blockset_canvas_
 
std::unique_ptr< zelda3::Inventoryinventory_
 
bool inventory_loaded_ = false
 
zelda3::TitleScreen title_screen_
 
zelda3::OverworldMapScreen ow_map_screen_
 
int selected_title_tile16_ = 0
 
bool title_screen_loaded_ = false
 
bool title_h_flip_ = false
 
bool title_v_flip_ = false
 
int title_palette_ = 0
 
bool show_title_bg1_ = true
 
bool show_title_bg2_ = true
 
int selected_ow_tile_ = 0
 
bool ow_map_loaded_ = false
 
bool ow_show_dark_world_ = false
 
gui::Canvas ow_map_canvas_
 
gui::Canvas ow_tileset_canvas_
 
bool has_pending_dungeon_undo_ = false
 
bool has_pending_tile16_undo_ = false
 
bool pending_dungeon_map_changes_ = false
 
bool pending_dungeon_map_tile16_changes_ = false
 
bool pending_title_screen_changes_ = false
 
bool pending_overworld_map_changes_ = false
 
bool pending_overworld_map_palette_changes_ = false
 
bool rom_backed_state_valid_ = false
 
ScreenSnapshot pending_dungeon_before_
 
ScreenSnapshot pending_tile16_before_
 
std::string pending_dungeon_desc_
 
std::string pending_tile16_desc_
 
Romrom_
 
absl::Status status_
 

Friends

class ScreenEditorSaveStoplossTestPeer
 

Additional Inherited Members

- Protected Member Functions inherited from yaze::editor::Editor
std::string MakePanelTitle (const std::string &base_title) const
 
std::string MakeWindowId (const std::string &base_id) const
 
template<typename T >
absl::StatusOr< T > SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const
 
- Protected Attributes inherited from yaze::editor::Editor
bool active_ = false
 
EditorType type_
 
EditorDependencies dependencies_
 
UndoManager undo_manager_
 

Detailed Description

The ScreenEditor class allows the user to edit a variety of screens in the game or create a custom menu.

This class is currently a work in progress (WIP) and provides functionality for updating the screens, saving dungeon maps, drawing different types of screens, loading dungeon maps, and managing various properties related to the editor.

The screens that can be edited include the title screen, naming screen, overworld map, inventory menu, and more.

Definition at line 38 of file screen_editor.h.

Member Enumeration Documentation

◆ EditingMode

enum class yaze::editor::ScreenEditor::EditingMode
strongprivate
Enumerator
DRAW 
EDIT 

Definition at line 136 of file screen_editor.h.

Constructor & Destructor Documentation

◆ ScreenEditor()

yaze::editor::ScreenEditor::ScreenEditor ( Rom * rom = nullptr)
inlineexplicit

Definition at line 40 of file screen_editor.h.

References yaze::editor::kScreen, screen_canvas_, yaze::gui::Canvas::SetCanvasSize(), and yaze::editor::Editor::type_.

Here is the call graph for this function:

Member Function Documentation

◆ Initialize()

◆ Load()

◆ Update()

absl::Status yaze::editor::ScreenEditor::Update ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 198 of file screen_editor.cc.

References status_.

◆ Undo()

absl::Status yaze::editor::ScreenEditor::Undo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 48 of file screen_editor.h.

References yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.

Referenced by DrawInventoryToolset().

Here is the call graph for this function:

◆ Redo()

absl::Status yaze::editor::ScreenEditor::Redo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 49 of file screen_editor.h.

References yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.

Referenced by DrawInventoryToolset().

Here is the call graph for this function:

◆ Cut()

absl::Status yaze::editor::ScreenEditor::Cut ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 50 of file screen_editor.h.

◆ Copy()

absl::Status yaze::editor::ScreenEditor::Copy ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 51 of file screen_editor.h.

◆ Paste()

absl::Status yaze::editor::ScreenEditor::Paste ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 52 of file screen_editor.h.

◆ Find()

absl::Status yaze::editor::ScreenEditor::Find ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 53 of file screen_editor.h.

◆ Save()

absl::Status yaze::editor::ScreenEditor::Save ( )
overridevirtual

◆ set_rom()

void yaze::editor::ScreenEditor::set_rom ( Rom * rom)
inline

Definition at line 55 of file screen_editor.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ rom()

Rom * yaze::editor::ScreenEditor::rom ( ) const
inline

◆ HasPendingDungeonMapChanges()

bool yaze::editor::ScreenEditor::HasPendingDungeonMapChanges ( ) const
inline

Definition at line 58 of file screen_editor.h.

References pending_dungeon_map_changes_.

Referenced by HasPendingScreenChanges().

◆ HasPendingDungeonMapTile16Changes()

bool yaze::editor::ScreenEditor::HasPendingDungeonMapTile16Changes ( ) const
inline

Definition at line 61 of file screen_editor.h.

References pending_dungeon_map_tile16_changes_.

Referenced by HasPendingScreenChanges().

◆ HasPendingTitleScreenChanges()

bool yaze::editor::ScreenEditor::HasPendingTitleScreenChanges ( ) const
inline

Definition at line 64 of file screen_editor.h.

References pending_title_screen_changes_.

Referenced by HasPendingScreenChanges().

◆ HasPendingOverworldMapChanges()

bool yaze::editor::ScreenEditor::HasPendingOverworldMapChanges ( ) const
inline

◆ HasPendingScreenChanges()

bool yaze::editor::ScreenEditor::HasPendingScreenChanges ( ) const
inline

Definition at line 71 of file screen_editor.h.

References HasPendingDungeonMapChanges(), HasPendingDungeonMapTile16Changes(), HasPendingOverworldMapChanges(), and HasPendingTitleScreenChanges().

Referenced by Save().

Here is the call graph for this function:

◆ InvalidateRomBackedState()

void yaze::editor::ScreenEditor::InvalidateRomBackedState ( )

Definition at line 1539 of file screen_editor.cc.

References ResetRomBackedStateForLoad().

Here is the call graph for this function:

◆ RefreshRomBackedState()

absl::Status yaze::editor::ScreenEditor::RefreshRomBackedState ( )

Definition at line 1543 of file screen_editor.cc.

References Load().

Here is the call graph for this function:

◆ IsRomBackedStateValid()

bool yaze::editor::ScreenEditor::IsRomBackedStateValid ( ) const
inline

Definition at line 78 of file screen_editor.h.

References rom_backed_state_valid_.

◆ DrawTitleScreenEditor()

◆ DrawNamingScreenEditor()

void yaze::editor::ScreenEditor::DrawNamingScreenEditor ( )
private

Definition at line 1218 of file screen_editor.cc.

Referenced by Initialize().

◆ DrawOverworldMapEditor()

void yaze::editor::ScreenEditor::DrawOverworldMapEditor ( )
private

◆ DrawInventoryMenuEditor()

◆ DrawInventoryItemIcons()

void yaze::editor::ScreenEditor::DrawInventoryItemIcons ( )
private
Todo
Select this icon for editing

Definition at line 332 of file screen_editor.cc.

References inventory_.

Referenced by DrawInventoryMenuEditor().

◆ DrawToolset()

void yaze::editor::ScreenEditor::DrawToolset ( )
private

Definition at line 205 of file screen_editor.cc.

◆ DrawDungeonMapToolset()

void yaze::editor::ScreenEditor::DrawDungeonMapToolset ( )
private

Definition at line 1416 of file screen_editor.cc.

◆ DrawInventoryToolset()

◆ DrawTitleScreenCompositeCanvas()

◆ DrawTitleScreenBG1Canvas()

◆ DrawTitleScreenBG2Canvas()

◆ DrawTitleScreenBlocksetSelector()

◆ LoadDungeonMapTile16()

absl::Status yaze::editor::ScreenEditor::LoadDungeonMapTile16 ( const std::vector< uint8_t > & gfx_data,
bool bin_mode = false )
private

◆ DrawDungeonMapScreen()

◆ DrawDungeonMapsTabs()

◆ DrawDungeonMapsEditor()

void yaze::editor::ScreenEditor::DrawDungeonMapsEditor ( )
private

Draw dungeon maps editor with enhanced ROM hacking features.

Enhanced Features:

  • Multi-mode editing (DRAW, EDIT, SELECT)
  • Real-time tile16 preview and editing
  • Floor/basement management for complex dungeons
  • Copy/paste operations for floor layouts
  • Integration with ROM tile16 data

Performance Notes:

  • Lazy loading of dungeon graphics
  • Cached tile16 rendering for fast updates
  • Batch operations for multiple tile changes
  • Efficient memory management for large dungeons

Definition at line 814 of file screen_editor.cc.

References current_mode_, DRAW, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmapTable(), yaze::gui::Canvas::DrawContextMenu(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), dungeon_maps_, EDIT, yaze::gui::Canvas::GetConfig(), yaze::gui::Canvas::GetTileIdFromMousePos(), HasValidDungeonSelection(), ICON_MD_DRAW, ICON_MD_EDIT, ICON_MD_SAVE, yaze::gui::kSelectionSource, LoadBinaryGfx(), yaze::Rom::resource_label(), yaze::gui::CanvasConfig::role, rom(), rom_backed_state_valid_, yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), selected_dungeon, selected_tile8_, sheets_, tilemap_canvas_, and yaze::gui::ToolbarIconButton().

Referenced by Initialize().

◆ DrawDungeonMapsRoomGfx()

void yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx ( )
private

Draw dungeon room graphics editor with enhanced tile16 editing.

Enhanced Features:

  • Interactive tile16 selector with visual feedback
  • Real-time tile16 composition from 4x 8x8 tiles
  • Tile metadata editing (mirroring, palette, etc.)
  • Integration with ROM graphics buffer
  • Undo/redo support for tile modifications

Performance Notes:

  • Cached tile16 rendering to avoid repeated composition
  • Efficient tile selector with grid-based snapping
  • Batch tile updates to minimize ROM writes
  • Lazy loading of tile graphics data

Definition at line 624 of file screen_editor.cc.

References yaze::gfx::Tilemap::atlas, yaze::gui::BeginCanvas(), yaze::gfx::TileCache::CacheTile(), yaze::gui::CanvasFrameOptions::canvas_size, CommitDungeonMapUndo(), CommitTile16CompUndo(), yaze::gfx::Arena::CREATE, current_tile16_info, current_tile_canvas_, yaze::gfx::Bitmap::data(), yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::DrawBitmap(), yaze::gui::Canvas::DrawTilePainter(), yaze::gui::DrawTileSelector(), dungeon_maps_, yaze::gui::EndCanvas(), floor_number, yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), yaze::gui::Canvas::GetConfig(), yaze::gfx::TileCache::GetTile(), yaze::gui::CanvasFrameOptions::grid_step, HasValidDungeonFloorSelection(), yaze::gfx::Bitmap::height(), yaze::gui::InputTileInfo(), yaze::gui::Canvas::IsMouseHovering(), yaze::zelda3::kNumRooms, yaze::gui::kPreviewOnly, yaze::gui::kSelectionSource, yaze::gfx::ModifyTile16(), yaze::gui::Canvas::mutable_points(), yaze::gfx::Bitmap::palette(), yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gui::CanvasFrameOptions::render_popups, yaze::gfx::RenderTile16(), yaze::gui::CanvasConfig::role, rom_backed_state_valid_, SaveDungeonMapUndoState(), SaveTile16CompUndoState(), screen_canvas_, selected_dungeon, selected_room, selected_tile16_, selected_tile8_, yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::size(), tile16_blockset_, tile8_tilemap_, yaze::gfx::Tilemap::tile_cache, yaze::gfx::Tilemap::tile_info, tilesheet_canvas_, yaze::gfx::UpdateTile16(), and yaze::gfx::Bitmap::width().

Referenced by DrawDungeonMapsEditor().

◆ LoadBinaryGfx()

◆ GetOrCreateSheet()

gfx::Bitmap * yaze::editor::ScreenEditor::GetOrCreateSheet ( int index)
private

Definition at line 1547 of file screen_editor.cc.

References sheets_.

Referenced by Load(), and LoadBinaryGfx().

◆ RefreshTileCacheForReload()

◆ HasValidDungeonSelection()

bool yaze::editor::ScreenEditor::HasValidDungeonSelection ( ) const
private

◆ HasValidDungeonFloorSelection()

bool yaze::editor::ScreenEditor::HasValidDungeonFloorSelection ( int floor) const
private

Definition at line 1577 of file screen_editor.cc.

References dungeon_map_labels_, dungeon_maps_, HasValidDungeonSelection(), and selected_dungeon.

Referenced by DrawDungeonMapScreen(), DrawDungeonMapsRoomGfx(), and DrawDungeonMapsTabs().

Here is the call graph for this function:

◆ CaptureDungeonMapSnapshot()

◆ CaptureTile16CompSnapshot()

◆ SaveDungeonMapUndoState()

void yaze::editor::ScreenEditor::SaveDungeonMapUndoState ( const std::string & description)
private

Definition at line 1460 of file screen_editor.cc.

References CaptureDungeonMapSnapshot(), has_pending_dungeon_undo_, pending_dungeon_before_, and pending_dungeon_desc_.

Referenced by DrawDungeonMapsRoomGfx(), and DrawDungeonMapsTabs().

Here is the call graph for this function:

◆ SaveTile16CompUndoState()

void yaze::editor::ScreenEditor::SaveTile16CompUndoState ( const std::string & description)
private

Definition at line 1466 of file screen_editor.cc.

References CaptureTile16CompSnapshot(), has_pending_tile16_undo_, pending_tile16_before_, and pending_tile16_desc_.

Referenced by DrawDungeonMapsRoomGfx().

Here is the call graph for this function:

◆ CommitDungeonMapUndo()

void yaze::editor::ScreenEditor::CommitDungeonMapUndo ( )
private

◆ CommitTile16CompUndo()

void yaze::editor::ScreenEditor::CommitTile16CompUndo ( )
private

◆ RestoreFromSnapshot()

◆ ResetRomBackedStateForLoad()

void yaze::editor::ScreenEditor::ResetRomBackedStateForLoad ( )
private

◆ MarkDungeonMapModified()

void yaze::editor::ScreenEditor::MarkDungeonMapModified ( )
inlineprivate

◆ MarkDungeonMapTile16Modified()

void yaze::editor::ScreenEditor::MarkDungeonMapTile16Modified ( )
inlineprivate

◆ MarkTitleScreenModified()

void yaze::editor::ScreenEditor::MarkTitleScreenModified ( )
inlineprivate

◆ MarkOverworldMapModified()

void yaze::editor::ScreenEditor::MarkOverworldMapModified ( )
inlineprivate

Definition at line 129 of file screen_editor.h.

References pending_overworld_map_changes_.

Referenced by DrawOverworldMapEditor().

◆ MarkOverworldMapPaletteModified()

void yaze::editor::ScreenEditor::MarkOverworldMapPaletteModified ( )
inlineprivate

Definition at line 130 of file screen_editor.h.

References pending_overworld_map_palette_changes_.

Referenced by DrawOverworldMapEditor().

◆ SaveTitleScreenToRom()

absl::Status yaze::editor::ScreenEditor::SaveTitleScreenToRom ( )
private

Definition at line 1527 of file screen_editor.cc.

Referenced by DrawTitleScreenEditor().

◆ SaveOverworldMapToRom()

absl::Status yaze::editor::ScreenEditor::SaveOverworldMapToRom ( )
private

Definition at line 1533 of file screen_editor.cc.

Referenced by DrawOverworldMapEditor().

Friends And Related Symbol Documentation

◆ ScreenEditorSaveStoplossTestPeer

friend class ScreenEditorSaveStoplossTestPeer
friend

Definition at line 83 of file screen_editor.h.

Member Data Documentation

◆ dungeon_maps_

◆ current_mode_

◆ binary_gfx_loaded_

bool yaze::editor::ScreenEditor::binary_gfx_loaded_ = false
private

Definition at line 140 of file screen_editor.h.

Referenced by LoadBinaryGfx(), and ResetRomBackedStateForLoad().

◆ selected_room

uint8_t yaze::editor::ScreenEditor::selected_room = 0
private

◆ selected_tile16_

int yaze::editor::ScreenEditor::selected_tile16_ = 0
private

◆ selected_tile8_

int yaze::editor::ScreenEditor::selected_tile8_ = 0
private

◆ selected_dungeon

◆ floor_number

int yaze::editor::ScreenEditor::floor_number = 1
private

◆ copy_button_pressed

bool yaze::editor::ScreenEditor::copy_button_pressed = false
private

Definition at line 149 of file screen_editor.h.

Referenced by DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().

◆ paste_button_pressed

bool yaze::editor::ScreenEditor::paste_button_pressed = false
private

Definition at line 150 of file screen_editor.h.

Referenced by DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().

◆ dungeon_map_labels_

◆ palette_

gfx::SnesPalette yaze::editor::ScreenEditor::palette_
private

Definition at line 154 of file screen_editor.h.

Referenced by DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().

◆ sheets_

gfx::BitmapTable yaze::editor::ScreenEditor::sheets_
private

Definition at line 155 of file screen_editor.h.

Referenced by DrawDungeonMapsEditor(), GetOrCreateSheet(), and Load().

◆ tile16_blockset_

gfx::Tilemap yaze::editor::ScreenEditor::tile16_blockset_
private

◆ tile8_tilemap_

gfx::Tilemap yaze::editor::ScreenEditor::tile8_tilemap_
private

Definition at line 157 of file screen_editor.h.

Referenced by DrawDungeonMapsRoomGfx(), Load(), and ResetRomBackedStateForLoad().

◆ current_tile16_info

std::array<gfx::TileInfo, 4> yaze::editor::ScreenEditor::current_tile16_info
private

◆ current_tile_canvas_

gui::Canvas yaze::editor::ScreenEditor::current_tile_canvas_
private
Initial value:
{"##CurrentTileCanvas", ImVec2(32, 32),

Definition at line 160 of file screen_editor.h.

Referenced by DrawDungeonMapsRoomGfx(), and ResetRomBackedStateForLoad().

◆ screen_canvas_

gui::Canvas yaze::editor::ScreenEditor::screen_canvas_
private

◆ tilesheet_canvas_

gui::Canvas yaze::editor::ScreenEditor::tilesheet_canvas_
private

◆ tilemap_canvas_

gui::Canvas yaze::editor::ScreenEditor::tilemap_canvas_
private
Initial value:
{"##TilemapCanvas", ImVec2(128 + 2, (192) + 4),

Definition at line 164 of file screen_editor.h.

Referenced by DrawDungeonMapsEditor(), and ResetRomBackedStateForLoad().

◆ title_bg1_canvas_

gui::Canvas yaze::editor::ScreenEditor::title_bg1_canvas_
private
Initial value:
{"##TitleBG1Canvas", ImVec2(256, 256),

Definition at line 169 of file screen_editor.h.

Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenCompositeCanvas(), and ResetRomBackedStateForLoad().

◆ title_bg2_canvas_

gui::Canvas yaze::editor::ScreenEditor::title_bg2_canvas_
private
Initial value:
{"##TitleBG2Canvas", ImVec2(256, 256),

Definition at line 171 of file screen_editor.h.

Referenced by DrawTitleScreenBG2Canvas(), and ResetRomBackedStateForLoad().

◆ title_blockset_canvas_

gui::Canvas yaze::editor::ScreenEditor::title_blockset_canvas_
private
Initial value:
{"##TitleBlocksetCanvas", ImVec2(128, 512),

Definition at line 174 of file screen_editor.h.

Referenced by DrawTitleScreenBlocksetSelector(), and ResetRomBackedStateForLoad().

◆ inventory_

std::unique_ptr<zelda3::Inventory> yaze::editor::ScreenEditor::inventory_
private
Initial value:
=
std::make_unique<zelda3::Inventory>()

Definition at line 177 of file screen_editor.h.

Referenced by DrawInventoryItemIcons(), DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().

◆ inventory_loaded_

bool yaze::editor::ScreenEditor::inventory_loaded_ = false
private

Definition at line 179 of file screen_editor.h.

Referenced by DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().

◆ title_screen_

◆ ow_map_screen_

zelda3::OverworldMapScreen yaze::editor::ScreenEditor::ow_map_screen_
private

Definition at line 181 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ selected_title_tile16_

int yaze::editor::ScreenEditor::selected_title_tile16_ = 0
private

◆ title_screen_loaded_

bool yaze::editor::ScreenEditor::title_screen_loaded_ = false
private

Definition at line 185 of file screen_editor.h.

Referenced by DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().

◆ title_h_flip_

bool yaze::editor::ScreenEditor::title_h_flip_ = false
private

◆ title_v_flip_

bool yaze::editor::ScreenEditor::title_v_flip_ = false
private

◆ title_palette_

int yaze::editor::ScreenEditor::title_palette_ = 0
private

◆ show_title_bg1_

bool yaze::editor::ScreenEditor::show_title_bg1_ = true
private

◆ show_title_bg2_

bool yaze::editor::ScreenEditor::show_title_bg2_ = true
private

◆ selected_ow_tile_

int yaze::editor::ScreenEditor::selected_ow_tile_ = 0
private

Definition at line 193 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ ow_map_loaded_

bool yaze::editor::ScreenEditor::ow_map_loaded_ = false
private

Definition at line 194 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ ow_show_dark_world_

bool yaze::editor::ScreenEditor::ow_show_dark_world_ = false
private

Definition at line 195 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ ow_map_canvas_

gui::Canvas yaze::editor::ScreenEditor::ow_map_canvas_
private
Initial value:
{"##OWMapCanvas", ImVec2(512, 512),

Definition at line 198 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ ow_tileset_canvas_

gui::Canvas yaze::editor::ScreenEditor::ow_tileset_canvas_
private
Initial value:
{"##OWTilesetCanvas", ImVec2(128, 128),

Definition at line 200 of file screen_editor.h.

Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().

◆ has_pending_dungeon_undo_

bool yaze::editor::ScreenEditor::has_pending_dungeon_undo_ = false
private

◆ has_pending_tile16_undo_

bool yaze::editor::ScreenEditor::has_pending_tile16_undo_ = false
private

◆ pending_dungeon_map_changes_

bool yaze::editor::ScreenEditor::pending_dungeon_map_changes_ = false
private

◆ pending_dungeon_map_tile16_changes_

bool yaze::editor::ScreenEditor::pending_dungeon_map_tile16_changes_ = false
private

◆ pending_title_screen_changes_

bool yaze::editor::ScreenEditor::pending_title_screen_changes_ = false
private

◆ pending_overworld_map_changes_

bool yaze::editor::ScreenEditor::pending_overworld_map_changes_ = false
private

◆ pending_overworld_map_palette_changes_

bool yaze::editor::ScreenEditor::pending_overworld_map_palette_changes_ = false
private

◆ rom_backed_state_valid_

◆ pending_dungeon_before_

ScreenSnapshot yaze::editor::ScreenEditor::pending_dungeon_before_
private

◆ pending_tile16_before_

ScreenSnapshot yaze::editor::ScreenEditor::pending_tile16_before_
private

◆ pending_dungeon_desc_

std::string yaze::editor::ScreenEditor::pending_dungeon_desc_
private

◆ pending_tile16_desc_

std::string yaze::editor::ScreenEditor::pending_tile16_desc_
private

◆ rom_

Rom* yaze::editor::ScreenEditor::rom_
private

Definition at line 217 of file screen_editor.h.

Referenced by Load(), rom(), and set_rom().

◆ status_


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