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>

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) |
| Rom * | rom () 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 UndoManager & | undo_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 |
| Rom * | rom () const |
| zelda3::GameData * | game_data () const |
| project::YazeProject * | project () const |
| core::VersionManager * | version_manager () const |
| EditorContext | context () const |
| bool | HasContext () const |
Public Attributes | |
| std::vector< zelda3::DungeonMap > | dungeon_maps_ |
Private Types | |
| enum class | EditingMode { DRAW , EDIT } |
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_ |
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.
|
strongprivate |
| Enumerator | |
|---|---|
| DRAW | |
| EDIT | |
Definition at line 136 of file screen_editor.h.
|
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_.

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 31 of file screen_editor.cc.
References yaze::editor::Editor::dependencies_, DrawDungeonMapsEditor(), DrawInventoryMenuEditor(), DrawNamingScreenEditor(), DrawOverworldMapEditor(), DrawTitleScreenEditor(), ICON_MD_EDIT, ICON_MD_INVENTORY, ICON_MD_MAP, ICON_MD_PUBLIC, ICON_MD_TITLE, yaze::Rom::is_loaded(), yaze::editor::WorkspaceWindowManager::RegisterPanel(), rom(), and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 104 of file screen_editor.cc.
References ASSIGN_OR_RETURN, yaze::gfx::Tilemap::atlas, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::gfx::PaletteGroupMap::dungeon_main, dungeon_map_labels_, dungeon_maps_, yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), GetOrCreateSheet(), yaze::gfx::Arena::gfx_sheets(), yaze::Rom::is_loaded(), yaze::zelda3::LoadDungeonMaps(), yaze::zelda3::LoadDungeonMapTile16(), yaze::gfx::Tilemap::map_size, yaze::gfx::PaletteGroup::mutable_palette(), yaze::zelda3::GameData::palette_groups, yaze::gfx::Arena::QueueTextureCommand(), RefreshTileCacheForReload(), ResetRomBackedStateForLoad(), RETURN_IF_ERROR, rom(), rom_, rom_backed_state_valid_, yaze::gfx::Bitmap::SetPalette(), sheets_, tile16_blockset_, tile8_tilemap_, and yaze::gfx::Tilemap::tile_size.
Referenced by RefreshRomBackedState().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 198 of file screen_editor.cc.
References status_.
|
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().

|
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().

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 50 of file screen_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 51 of file screen_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 52 of file screen_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 53 of file screen_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 177 of file screen_editor.cc.
References dungeon_maps_, yaze::core::FeatureFlags::get(), HasPendingScreenChanges(), RETURN_IF_ERROR, rom(), rom_backed_state_valid_, and yaze::zelda3::SaveDungeonMaps().

|
inline |
|
inline |
Definition at line 56 of file screen_editor.h.
References rom_.
Referenced by DrawDungeonMapsEditor(), DrawInventoryMenuEditor(), DrawOverworldMapEditor(), DrawTitleScreenEditor(), Initialize(), Load(), LoadBinaryGfx(), Save(), and set_rom().
|
inline |
Definition at line 58 of file screen_editor.h.
References pending_dungeon_map_changes_.
Referenced by HasPendingScreenChanges().
|
inline |
Definition at line 61 of file screen_editor.h.
References pending_dungeon_map_tile16_changes_.
Referenced by HasPendingScreenChanges().
|
inline |
Definition at line 64 of file screen_editor.h.
References pending_title_screen_changes_.
Referenced by HasPendingScreenChanges().
|
inline |
Definition at line 67 of file screen_editor.h.
References pending_overworld_map_changes_, and pending_overworld_map_palette_changes_.
Referenced by HasPendingScreenChanges().
|
inline |
Definition at line 71 of file screen_editor.h.
References HasPendingDungeonMapChanges(), HasPendingDungeonMapTile16Changes(), HasPendingOverworldMapChanges(), and HasPendingTitleScreenChanges().
Referenced by Save().

| void yaze::editor::ScreenEditor::InvalidateRomBackedState | ( | ) |
Definition at line 1539 of file screen_editor.cc.
References ResetRomBackedStateForLoad().

| absl::Status yaze::editor::ScreenEditor::RefreshRomBackedState | ( | ) |
Definition at line 1543 of file screen_editor.cc.
References Load().

|
inline |
Definition at line 78 of file screen_editor.h.
References rom_backed_state_valid_.
|
private |
Definition at line 936 of file screen_editor.cc.
References yaze::zelda3::TitleScreen::composite_bitmap(), yaze::zelda3::TitleScreen::Create(), current_mode_, DRAW, DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), yaze::editor::AgentUI::GetTheme(), ICON_MD_DRAW, ICON_MD_SAVE, yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::TitleScreen::RenderCompositeLayer(), rom(), rom_backed_state_valid_, SaveTitleScreenToRom(), selected_title_tile16_, show_title_bg1_, show_title_bg2_, status_, title_screen_, title_screen_loaded_, and yaze::gfx::Arena::UPDATE.
Referenced by Initialize().
|
private |
Definition at line 1218 of file screen_editor.cc.
Referenced by Initialize().
|
private |
Definition at line 1220 of file screen_editor.cc.
References yaze::zelda3::OverworldMapScreen::Create(), current_mode_, DRAW, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::zelda3::OverworldMapScreen::dw_palette(), yaze::gfx::Arena::Get(), yaze::gui::Canvas::GetConfig(), yaze::editor::AgentUI::GetTheme(), yaze::gui::InlinePaletteEditor(), yaze::gui::kPreviewOnly, yaze::gui::kSelectionSource, yaze::zelda3::OverworldMapScreen::LoadCustomMap(), yaze::zelda3::OverworldMapScreen::lw_palette(), yaze::zelda3::OverworldMapScreen::map_bitmap(), MarkOverworldMapModified(), MarkOverworldMapPaletteModified(), yaze::zelda3::OverworldMapScreen::mutable_dw_tiles(), yaze::zelda3::OverworldMapScreen::mutable_lw_tiles(), ow_map_canvas_, ow_map_loaded_, ow_map_screen_, ow_show_dark_world_, ow_tileset_canvas_, yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::OverworldMapScreen::RenderMapLayer(), yaze::gui::CanvasConfig::role, rom(), rom_backed_state_valid_, yaze::zelda3::OverworldMapScreen::SaveCustomMap(), SaveOverworldMapToRom(), selected_ow_tile_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowSaveFileDialog(), status_, yaze::zelda3::OverworldMapScreen::tiles8_bitmap(), and yaze::gfx::Arena::UPDATE.
Referenced by Initialize().
|
private |
Definition at line 210 of file screen_editor.cc.
References yaze::gui::BeginCanvas(), yaze::gui::CanvasFrameOptions::canvas_size, yaze::gui::DisplayPalette(), yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::DrawBitmap(), DrawInventoryItemIcons(), DrawInventoryToolset(), yaze::gui::EndCanvas(), yaze::editor::Editor::game_data(), yaze::editor::AgentUI::GetTheme(), yaze::gui::CanvasFrameOptions::grid_step, inventory_, inventory_loaded_, palette_, yaze::gui::CanvasFrameOptions::render_popups, rom(), rom_backed_state_valid_, screen_canvas_, status_, and tilesheet_canvas_.
Referenced by Initialize().
|
private |
Definition at line 332 of file screen_editor.cc.
References inventory_.
Referenced by DrawInventoryMenuEditor().
|
private |
Definition at line 205 of file screen_editor.cc.
|
private |
Definition at line 1416 of file screen_editor.cc.
|
private |
Definition at line 283 of file screen_editor.cc.
References yaze::editor::UndoManager::CanRedo(), yaze::editor::UndoManager::CanUndo(), current_mode_, DRAW, ICON_MD_BUILD, ICON_MD_DRAW, ICON_MD_MORE_VERT, ICON_MD_REDO, ICON_MD_UNDO, ICON_MD_ZOOM_IN, ICON_MD_ZOOM_OUT, Redo(), screen_canvas_, status_, yaze::gui::ToolbarIconButton(), Undo(), yaze::editor::Editor::undo_manager_, yaze::gui::Canvas::ZoomIn(), and yaze::gui::Canvas::ZoomOut().
Referenced by DrawInventoryMenuEditor().
|
private |
Definition at line 1016 of file screen_editor.cc.
References yaze::zelda3::TitleScreen::bg1_bitmap(), yaze::zelda3::TitleScreen::composite_bitmap(), current_mode_, DRAW, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::editor::internal::EnsureCompositeBitmapTextureQueued(), yaze::gfx::Arena::Get(), yaze::gui::Canvas::GetConfig(), yaze::gui::kCompositeOutput, MarkTitleScreenModified(), yaze::zelda3::TitleScreen::mutable_bg1_buffer(), yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::TitleScreen::RenderBG1Layer(), yaze::zelda3::TitleScreen::RenderCompositeLayer(), yaze::gui::CanvasConfig::role, selected_title_tile16_, show_title_bg1_, show_title_bg2_, status_, title_bg1_canvas_, title_h_flip_, title_palette_, title_screen_, title_v_flip_, and yaze::gfx::Arena::UPDATE.
Referenced by DrawTitleScreenEditor().
|
private |
Definition at line 1084 of file screen_editor.cc.
References yaze::zelda3::TitleScreen::bg1_bitmap(), current_mode_, DRAW, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::gfx::Arena::Get(), MarkTitleScreenModified(), yaze::zelda3::TitleScreen::mutable_bg1_buffer(), yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::TitleScreen::RenderBG1Layer(), selected_title_tile16_, status_, title_bg1_canvas_, title_h_flip_, title_palette_, title_screen_, title_v_flip_, and yaze::gfx::Arena::UPDATE.
|
private |
Definition at line 1130 of file screen_editor.cc.
References yaze::zelda3::TitleScreen::bg2_bitmap(), current_mode_, DRAW, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::gfx::Arena::Get(), yaze::gui::Canvas::GetConfig(), yaze::gui::kEditableScratchpad, MarkTitleScreenModified(), yaze::zelda3::TitleScreen::mutable_bg2_buffer(), yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::TitleScreen::RenderBG2Layer(), yaze::gui::CanvasConfig::role, selected_title_tile16_, status_, title_bg2_canvas_, title_h_flip_, title_palette_, title_screen_, title_v_flip_, and yaze::gfx::Arena::UPDATE.
|
private |
Definition at line 1177 of file screen_editor.cc.
References yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::Canvas::GetConfig(), yaze::gui::kSelectionSource, yaze::gui::Canvas::points(), yaze::gui::CanvasConfig::role, selected_title_tile16_, yaze::zelda3::TitleScreen::tiles8_bitmap(), title_blockset_canvas_, title_h_flip_, title_palette_, title_screen_, and title_v_flip_.
Referenced by DrawTitleScreenEditor().
|
private |
|
private |
Definition at line 386 of file screen_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::TileCache::CacheTile(), yaze::gfx::Arena::CREATE, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOutlineWithColor(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawText(), yaze::gui::Canvas::DrawTileSelector(), dungeon_map_labels_, dungeon_maps_, floor_number, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::Get16x16Tile(), yaze::gui::Canvas::GetConfig(), yaze::editor::AgentUI::GetTheme(), yaze::gfx::TileCache::GetTile(), HasValidDungeonFloorSelection(), yaze::gfx::Bitmap::height(), yaze::util::HexByte(), yaze::zelda3::kNumRooms, yaze::gui::kSelectionSource, yaze::gfx::Bitmap::palette(), yaze::gui::Canvas::points(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gui::CanvasConfig::role, rom_backed_state_valid_, screen_canvas_, selected_dungeon, selected_room, yaze::gfx::Bitmap::set_data(), yaze::gfx::Bitmap::SetPalette(), tile16_blockset_, yaze::gfx::Tilemap::tile_cache, and yaze::gfx::Bitmap::width().
Referenced by DrawDungeonMapsTabs().
|
private |
Definition at line 501 of file screen_editor.cc.
References yaze::gui::BeginThemedTabBar(), CaptureDungeonMapSnapshot(), CommitDungeonMapUndo(), copy_button_pressed, DrawDungeonMapScreen(), dungeon_map_labels_, dungeon_maps_, yaze::gui::EndThemedTabBar(), floor_number, HasValidDungeonFloorSelection(), HasValidDungeonSelection(), yaze::gui::InputHexByte(), yaze::gui::InputHexWord(), yaze::zelda3::kNumRooms, MarkDungeonMapModified(), paste_button_pressed, yaze::editor::UndoManager::Push(), RestoreFromSnapshot(), rom_backed_state_valid_, SaveDungeonMapUndoState(), selected_dungeon, selected_room, and yaze::editor::Editor::undo_manager_.
Referenced by DrawDungeonMapsEditor().
|
private |
Draw dungeon maps editor with enhanced ROM hacking features.
Enhanced Features:
Performance Notes:
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().
|
private |
Draw dungeon room graphics editor with enhanced tile16 editing.
Enhanced Features:
Performance Notes:
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().
|
private |
Definition at line 901 of file screen_editor.cc.
References binary_gfx_loaded_, yaze::gfx::Arena::CREATE, yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), GetOrCreateSheet(), yaze::zelda3::LoadDungeonMapTile16(), MarkDungeonMapTile16Modified(), yaze::gfx::Arena::QueueTextureCommand(), RefreshTileCacheForReload(), rom(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::gfx::SnesTo8bppSheet(), status_, and tile16_blockset_.
Referenced by DrawDungeonMapsEditor().
|
private |
Definition at line 1547 of file screen_editor.cc.
References sheets_.
Referenced by Load(), and LoadBinaryGfx().
|
private |
Definition at line 1555 of file screen_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::TileCache::cache_, yaze::gfx::Arena::CREATE, yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Tilemap::tile_cache, yaze::gfx::Tilemap::tile_size, yaze::gfx::Pair::x, and yaze::gfx::Pair::y.
Referenced by Load(), and LoadBinaryGfx().

|
private |
Definition at line 1571 of file screen_editor.cc.
References dungeon_map_labels_, dungeon_maps_, and selected_dungeon.
Referenced by DrawDungeonMapsEditor(), DrawDungeonMapsTabs(), and HasValidDungeonFloorSelection().
|
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().

|
private |
Definition at line 1440 of file screen_editor.cc.
References yaze::editor::DungeonMapSnapshot::dungeon_index, yaze::editor::ScreenSnapshot::dungeon_map, dungeon_map_labels_, dungeon_maps_, yaze::editor::ScreenSnapshot::edit_type, yaze::editor::kDungeonMap, yaze::editor::DungeonMapSnapshot::labels, yaze::editor::DungeonMapSnapshot::map_data, and selected_dungeon.
Referenced by CommitDungeonMapUndo(), DrawDungeonMapsTabs(), and SaveDungeonMapUndoState().
|
private |
Definition at line 1452 of file screen_editor.cc.
References current_tile16_info, yaze::editor::ScreenSnapshot::edit_type, yaze::editor::kTile16Edit, selected_tile16_, yaze::editor::ScreenSnapshot::tile16_comp, yaze::editor::Tile16CompSnapshot::tile16_id, and yaze::editor::Tile16CompSnapshot::tile_info.
Referenced by CommitTile16CompUndo(), and SaveTile16CompUndoState().
|
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().

|
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().

|
private |
Definition at line 1472 of file screen_editor.cc.
References CaptureDungeonMapSnapshot(), has_pending_dungeon_undo_, MarkDungeonMapModified(), pending_dungeon_before_, pending_dungeon_desc_, yaze::editor::UndoManager::Push(), RestoreFromSnapshot(), and yaze::editor::Editor::undo_manager_.
Referenced by DrawDungeonMapsRoomGfx(), and DrawDungeonMapsTabs().

|
private |
Definition at line 1485 of file screen_editor.cc.
References CaptureTile16CompSnapshot(), has_pending_tile16_undo_, MarkDungeonMapTile16Modified(), pending_tile16_before_, pending_tile16_desc_, yaze::editor::UndoManager::Push(), RestoreFromSnapshot(), and yaze::editor::Editor::undo_manager_.
Referenced by DrawDungeonMapsRoomGfx().

|
private |
Definition at line 1498 of file screen_editor.cc.
References current_tile16_info, yaze::editor::DungeonMapSnapshot::dungeon_index, yaze::editor::ScreenSnapshot::dungeon_map, dungeon_map_labels_, dungeon_maps_, yaze::editor::ScreenSnapshot::edit_type, yaze::editor::Editor::game_data(), yaze::editor::kDungeonMap, yaze::editor::kTile16Edit, yaze::editor::DungeonMapSnapshot::labels, yaze::editor::DungeonMapSnapshot::map_data, MarkDungeonMapModified(), MarkDungeonMapTile16Modified(), yaze::gfx::ModifyTile16(), selected_dungeon, selected_tile16_, tile16_blockset_, yaze::editor::ScreenSnapshot::tile16_comp, yaze::editor::Tile16CompSnapshot::tile16_id, yaze::editor::Tile16CompSnapshot::tile_info, and yaze::gfx::UpdateTile16().
Referenced by CommitDungeonMapUndo(), CommitTile16CompUndo(), and DrawDungeonMapsTabs().
|
private |
Definition at line 1587 of file screen_editor.cc.
References binary_gfx_loaded_, yaze::editor::UndoManager::Clear(), yaze::gfx::SnesPalette::clear(), copy_button_pressed, current_mode_, current_tile16_info, current_tile_canvas_, DRAW, dungeon_map_labels_, dungeon_maps_, floor_number, has_pending_dungeon_undo_, has_pending_tile16_undo_, inventory_, inventory_loaded_, yaze::gfx::Tilemap::map_size, ow_map_canvas_, ow_map_loaded_, ow_map_screen_, ow_show_dark_world_, ow_tileset_canvas_, palette_, paste_button_pressed, pending_dungeon_before_, pending_dungeon_desc_, pending_dungeon_map_changes_, pending_dungeon_map_tile16_changes_, pending_overworld_map_changes_, pending_overworld_map_palette_changes_, pending_tile16_before_, pending_tile16_desc_, pending_title_screen_changes_, yaze::zelda3::OverworldMapScreen::ResetForReload(), yaze::zelda3::TitleScreen::ResetForReload(), rom_backed_state_valid_, screen_canvas_, selected_dungeon, selected_ow_tile_, selected_room, selected_tile16_, selected_tile8_, selected_title_tile16_, show_title_bg1_, show_title_bg2_, status_, tile16_blockset_, tile8_tilemap_, yaze::gfx::Tilemap::tile_info, yaze::gfx::Tilemap::tile_size, tilemap_canvas_, tilesheet_canvas_, title_bg1_canvas_, title_bg2_canvas_, title_blockset_canvas_, title_h_flip_, title_palette_, title_screen_, title_screen_loaded_, title_v_flip_, and yaze::editor::Editor::undo_manager_.
Referenced by InvalidateRomBackedState(), and Load().

|
inlineprivate |
Definition at line 124 of file screen_editor.h.
References pending_dungeon_map_changes_.
Referenced by CommitDungeonMapUndo(), DrawDungeonMapsTabs(), and RestoreFromSnapshot().
|
inlineprivate |
Definition at line 125 of file screen_editor.h.
References pending_dungeon_map_tile16_changes_.
Referenced by CommitTile16CompUndo(), LoadBinaryGfx(), and RestoreFromSnapshot().
|
inlineprivate |
Definition at line 128 of file screen_editor.h.
References pending_title_screen_changes_.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), and DrawTitleScreenCompositeCanvas().
|
inlineprivate |
Definition at line 129 of file screen_editor.h.
References pending_overworld_map_changes_.
Referenced by DrawOverworldMapEditor().
|
inlineprivate |
Definition at line 130 of file screen_editor.h.
References pending_overworld_map_palette_changes_.
Referenced by DrawOverworldMapEditor().
|
private |
Definition at line 1527 of file screen_editor.cc.
Referenced by DrawTitleScreenEditor().
|
private |
Definition at line 1533 of file screen_editor.cc.
Referenced by DrawOverworldMapEditor().
|
friend |
Definition at line 83 of file screen_editor.h.
| std::vector<zelda3::DungeonMap> yaze::editor::ScreenEditor::dungeon_maps_ |
Definition at line 80 of file screen_editor.h.
Referenced by CaptureDungeonMapSnapshot(), DrawDungeonMapScreen(), DrawDungeonMapsEditor(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), HasValidDungeonFloorSelection(), HasValidDungeonSelection(), Load(), ResetRomBackedStateForLoad(), RestoreFromSnapshot(), and Save().
|
private |
Definition at line 138 of file screen_editor.h.
Referenced by DrawDungeonMapsEditor(), DrawInventoryToolset(), DrawOverworldMapEditor(), DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 140 of file screen_editor.h.
Referenced by LoadBinaryGfx(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 142 of file screen_editor.h.
Referenced by DrawDungeonMapScreen(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 144 of file screen_editor.h.
Referenced by CaptureTile16CompSnapshot(), DrawDungeonMapsRoomGfx(), ResetRomBackedStateForLoad(), and RestoreFromSnapshot().
|
private |
Definition at line 145 of file screen_editor.h.
Referenced by DrawDungeonMapsEditor(), DrawDungeonMapsRoomGfx(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 146 of file screen_editor.h.
Referenced by CaptureDungeonMapSnapshot(), DrawDungeonMapScreen(), DrawDungeonMapsEditor(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), HasValidDungeonFloorSelection(), HasValidDungeonSelection(), ResetRomBackedStateForLoad(), and RestoreFromSnapshot().
|
private |
Definition at line 147 of file screen_editor.h.
Referenced by DrawDungeonMapScreen(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 149 of file screen_editor.h.
Referenced by DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 150 of file screen_editor.h.
Referenced by DrawDungeonMapsTabs(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 152 of file screen_editor.h.
Referenced by CaptureDungeonMapSnapshot(), DrawDungeonMapScreen(), DrawDungeonMapsTabs(), HasValidDungeonFloorSelection(), HasValidDungeonSelection(), Load(), ResetRomBackedStateForLoad(), and RestoreFromSnapshot().
|
private |
Definition at line 154 of file screen_editor.h.
Referenced by DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 155 of file screen_editor.h.
Referenced by DrawDungeonMapsEditor(), GetOrCreateSheet(), and Load().
|
private |
Definition at line 156 of file screen_editor.h.
Referenced by DrawDungeonMapScreen(), DrawDungeonMapsRoomGfx(), Load(), LoadBinaryGfx(), ResetRomBackedStateForLoad(), and RestoreFromSnapshot().
|
private |
Definition at line 157 of file screen_editor.h.
Referenced by DrawDungeonMapsRoomGfx(), Load(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 158 of file screen_editor.h.
Referenced by CaptureTile16CompSnapshot(), DrawDungeonMapsRoomGfx(), ResetRomBackedStateForLoad(), and RestoreFromSnapshot().
|
private |
Definition at line 160 of file screen_editor.h.
Referenced by DrawDungeonMapsRoomGfx(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 162 of file screen_editor.h.
Referenced by DrawDungeonMapScreen(), DrawDungeonMapsRoomGfx(), DrawInventoryMenuEditor(), DrawInventoryToolset(), ResetRomBackedStateForLoad(), and ScreenEditor().
|
private |
Definition at line 163 of file screen_editor.h.
Referenced by DrawDungeonMapsRoomGfx(), DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 164 of file screen_editor.h.
Referenced by DrawDungeonMapsEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 169 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenCompositeCanvas(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 171 of file screen_editor.h.
Referenced by DrawTitleScreenBG2Canvas(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 174 of file screen_editor.h.
Referenced by DrawTitleScreenBlocksetSelector(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 177 of file screen_editor.h.
Referenced by DrawInventoryItemIcons(), DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 179 of file screen_editor.h.
Referenced by DrawInventoryMenuEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 180 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 181 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 184 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 185 of file screen_editor.h.
Referenced by DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 186 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 187 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 188 of file screen_editor.h.
Referenced by DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenBlocksetSelector(), DrawTitleScreenCompositeCanvas(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 189 of file screen_editor.h.
Referenced by DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 190 of file screen_editor.h.
Referenced by DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 193 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 194 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 195 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 198 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 200 of file screen_editor.h.
Referenced by DrawOverworldMapEditor(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 204 of file screen_editor.h.
Referenced by CommitDungeonMapUndo(), ResetRomBackedStateForLoad(), and SaveDungeonMapUndoState().
|
private |
Definition at line 205 of file screen_editor.h.
Referenced by CommitTile16CompUndo(), ResetRomBackedStateForLoad(), and SaveTile16CompUndoState().
|
private |
Definition at line 206 of file screen_editor.h.
Referenced by HasPendingDungeonMapChanges(), MarkDungeonMapModified(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 207 of file screen_editor.h.
Referenced by HasPendingDungeonMapTile16Changes(), MarkDungeonMapTile16Modified(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 208 of file screen_editor.h.
Referenced by HasPendingTitleScreenChanges(), MarkTitleScreenModified(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 209 of file screen_editor.h.
Referenced by HasPendingOverworldMapChanges(), MarkOverworldMapModified(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 210 of file screen_editor.h.
Referenced by HasPendingOverworldMapChanges(), MarkOverworldMapPaletteModified(), and ResetRomBackedStateForLoad().
|
private |
Definition at line 211 of file screen_editor.h.
Referenced by DrawDungeonMapScreen(), DrawDungeonMapsEditor(), DrawDungeonMapsRoomGfx(), DrawDungeonMapsTabs(), DrawInventoryMenuEditor(), DrawOverworldMapEditor(), DrawTitleScreenEditor(), IsRomBackedStateValid(), Load(), ResetRomBackedStateForLoad(), and Save().
|
private |
Definition at line 212 of file screen_editor.h.
Referenced by CommitDungeonMapUndo(), ResetRomBackedStateForLoad(), and SaveDungeonMapUndoState().
|
private |
Definition at line 213 of file screen_editor.h.
Referenced by CommitTile16CompUndo(), ResetRomBackedStateForLoad(), and SaveTile16CompUndoState().
|
private |
Definition at line 214 of file screen_editor.h.
Referenced by CommitDungeonMapUndo(), ResetRomBackedStateForLoad(), and SaveDungeonMapUndoState().
|
private |
Definition at line 215 of file screen_editor.h.
Referenced by CommitTile16CompUndo(), ResetRomBackedStateForLoad(), and SaveTile16CompUndoState().
|
private |
Definition at line 217 of file screen_editor.h.
|
private |
Definition at line 218 of file screen_editor.h.
Referenced by DrawInventoryMenuEditor(), DrawInventoryToolset(), DrawOverworldMapEditor(), DrawTitleScreenBG1Canvas(), DrawTitleScreenBG2Canvas(), DrawTitleScreenCompositeCanvas(), DrawTitleScreenEditor(), LoadBinaryGfx(), ResetRomBackedStateForLoad(), and Update().