Main UI class for editing overworld maps in A Link to the Past. More...
#include <overworld_editor.h>

Classes | |
| struct | OverworldUndoPoint |
| struct | ScratchSpace |
Public Member Functions | |
| OverworldEditor (Rom *rom) | |
| OverworldEditor (Rom *rom, const EditorDependencies &deps) | |
| ~OverworldEditor () override | |
| void | SetMainGraphicsUsageCallback (GfxGroupEditor::MainUsageCallback callback) |
| void | SetRoomsetGraphicsUsageCallback (GfxGroupEditor::RoomsetUsageCallback callback) |
| void | PrepareForSessionTeardown () override |
| void | SetDependencies (const EditorDependencies &deps) override |
| void | SetGameData (zelda3::GameData *game_data) override |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Update () final |
| 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 |
| absl::Status | BeginSaveTransaction () override |
| void | RollbackSaveTransaction () override |
| void | CommitSaveTransaction () override |
| absl::Status | Clear () override |
| void | ContributeStatus (StatusBar *status_bar) override |
| EditorContextSnapshot | BuildContextSnapshot () const override |
| zelda3::Overworld & | overworld () |
| Access the underlying Overworld data. | |
| const gfx::Bitmap * | AreaScreenBitmap (int map_id) |
| int | jump_to_tab () |
| bool | IsRomLoaded () const override |
| std::string | GetRomStatus () const override |
| Rom * | rom () const |
| bool | is_lyra_preview () const |
| absl::Status | CheckRomReplacement (const Rom &replacement) const |
| bool | overlay_preview_enabled () const |
| void | set_current_map (int map_id) |
| Set the current map for editing (also updates world) | |
| void | SetCurrentMap (int map_id) |
| void | SelectMapForEditing (int map_id, bool respect_pin=true) |
| void | set_current_tile16 (int tile_id) |
| int | current_tile16_id () const |
| absl::Status | OpenGraphicsForTile16Quadrant (int tile16_id, int quadrant) |
| absl::Status | OpenGraphicsForContextTile16 (const OverworldContextTarget &target) |
| const TilePaintingManager * | tile_painting () const |
| const gfx::Bitmap & | map_bitmap (int map_id) const |
| bool | map_pinned () const |
| int | current_map_id () const |
| int | current_world_id () const |
| int | hovered_map_id () const |
| absl::Status | LoadGraphics () |
| Load the Bitmap objects for each OverworldMap. | |
| absl::Status | SyncProjectGraphicsPreview (bool force=false) |
| void | SetCurrentEntity (zelda3::GameEntity *entity) |
| Set the currently active entity for editing. | |
| zelda3::GameEntity * | current_entity () const |
| void | NotifyEntityModified (zelda3::GameEntity *entity) |
| Notify that an entity has been modified, marking ROM as dirty. | |
| void | OpenEntityEditor (zelda3::GameEntity *entity) |
| void | RequestJumpToRoom (int room_id) |
| Trigger a jump to a dungeon room. | |
| void | RequestJumpToEntrance (int entrance_id) |
| Trigger a jump to a dungeon entrance. | |
| EntityMutationService * | entity_mutation_service () |
| Access the entity mutation service. | |
| zelda3::OverworldEntrance & | edit_entrance () |
| zelda3::OverworldExit & | edit_exit () |
| zelda3::OverworldItem & | edit_item () |
| zelda3::Sprite & | edit_sprite () |
| std::optional< OverworldEntityInsertionRequest > | TakePendingEntityInsertion () |
| std::string & | insert_error () |
| gui::Canvas & | ow_map_canvas () |
| int | game_state () const |
| void | SetPreviewStoryState (int state) |
| void | HandleEntityInsertion (const std::string &entity_type, const OverworldContextTarget &target) |
| Handle entity insertion from context menu. | |
| void | RequestItemInsertPopup (const std::optional< OverworldContextTarget > &target) |
| void | DrawItemInsertPopup () |
| bool | TryPlaceArmedItem () |
| void | HandleTile16Edit (const OverworldContextTarget &target) |
| Handle tile16 editing from context menu (MOUSE mode) Opens the Tile16 captured at menu-open through the pending-edit guard. | |
| bool | SampleContextTile16 (const OverworldContextTarget &target) |
| bool | SelectItemByIdentity (const zelda3::OverworldItem &item_identity) |
| Select an overworld item using value identity matching. | |
| void | ClearSelectedItem () |
| Clear active item selection. | |
| std::optional< zelda3::OverworldItem > | selected_item_identity () const |
| Get current selected item identity snapshot. | |
| zelda3::OverworldItem * | GetSelectedItem () |
| Resolve selected item identity to the current live item pointer. | |
| const zelda3::OverworldItem * | GetSelectedItem () const |
| bool | DuplicateSelectedItem (int offset_x=16, int offset_y=0) |
| Duplicate selected item with optional pixel offset. | |
| bool | NudgeSelectedItem (int delta_x, int delta_y) |
| Move selected item by signed pixel deltas. | |
| bool | DeleteSelectedItem () |
| Delete selected item and preserve nearest-item selection continuity. | |
| bool | DeleteItemByIdentity (const zelda3::OverworldItem &item_identity) |
| void | ToggleBrushTool () |
| void | ActivateFillTool () |
| void | CycleTileSelection (int delta) |
| void | ToggleMapLock () |
| void | ToggleCanvasFullscreen () |
| void | ToggleTile16EditorWindow () |
| void | ToggleItemListWindow () |
| void | SetEditingMode (EditingMode mode) |
| Tool change from the toolbar or keys 1/2: also leaves entity modes. | |
| void | SelectAdjacentMap (int dx, int dy) |
| Alt+Arrow: select the neighbouring screen in the world grid and center it. | |
| void | JumpToMap (int map_id) |
| void | LocateOverworldTile (int map_id, int world_x, int world_y) |
| void | SwitchToWorld (int world) |
| void | ZoomIn () |
| void | ZoomOut () |
| void | ZoomToFit () |
| void | ResetOverworldView () |
| void | CenterOverworldView () |
| void | SetEntityEditMode (EntityEditMode mode) |
| Entity focus (entrances/exits/items/sprites); NONE = all entities. | |
| void | ToggleEntityVisibility () |
| bool | entities_visible () const |
| void | ToggleGrid () |
| bool | grid_visible () const |
| void | OpenMapPropertiesWindow () |
| void | RequestTile16Selection (int tile_id) |
| bool | PickTile16FromHoveredCanvas () |
| absl::Status | DrawAreaGraphics () |
| absl::Status | DrawTile16Selector () |
| void | DrawMapProperties () |
| void | InvalidateGraphicsCache (int map_id=-1) |
| Invalidate cached graphics for a specific map or all maps. | |
| absl::Status | DrawScratchSpace () |
| void | DrawTile8Selector () |
| absl::Status | UpdateGfxGroupEditor () |
| void | DrawV3Settings () |
| UsageStatisticsCard * | usage_stats_card () |
| Access usage statistics card for panel. | |
| DebugWindowCard * | debug_window_card () |
| Access debug window card for panel. | |
| Tile16Editor & | tile16_editor () |
| Access the Tile16 Editor for panel integration. | |
| const Tile16Editor & | tile16_editor () const |
| const gfx::Tilemap & | tile16_blockset () const |
| Read-only access for integration tests that verify refresh output. | |
| const gfx::Bitmap & | current_gfx_bmp_for_testing () const |
| OverworldEntityWorkbench * | GetWorkbench () |
| Resolve the entity workbench window content (may be null). | |
| void | DrawOverworldCanvas () |
| Draw the main overworld canvas. | |
Public Member Functions inherited from yaze::editor::Editor | |
| Editor ()=default | |
| virtual | ~Editor ()=default |
| virtual std::string | GetUndoDescription () const |
| virtual std::string | GetRedoDescription () const |
| const UndoManager & | undo_manager () const |
| virtual bool | CanUndo () const |
| virtual bool | CanRedo () const |
| virtual bool | CanCut () const |
| virtual bool | CanCopy () const |
| virtual bool | CanPaste () const |
| virtual bool | CanFind () const |
| EditorType | type () const |
| bool * | active () |
| void | set_active (bool active) |
| void | toggle_active () |
| Rom * | rom () const |
| zelda3::GameData * | game_data () const |
| project::YazeProject * | project () const |
| core::VersionManager * | version_manager () const |
| EditorContext | context () const |
| bool | HasContext () const |
Static Public Member Functions | |
| static bool | NormalizeMapSelection (int ¤t_world, int ¤t_map) |
| Clamp a possibly stale world/map selection back into a valid overworld range. | |
Public Attributes | |
| int | jump_to_tab_ = -1 |
Private Types | |
| enum | OverworldProperty { LW_AREA_GFX , DW_AREA_GFX , LW_AREA_PAL , DW_AREA_PAL , LW_SPR_GFX_PART1 , LW_SPR_GFX_PART2 , DW_SPR_GFX_PART1 , DW_SPR_GFX_PART2 , LW_SPR_PAL_PART1 , LW_SPR_PAL_PART2 , DW_SPR_PAL_PART1 , DW_SPR_PAL_PART2 } |
Private Member Functions | |
| bool | NormalizeCurrentSelectionState () |
| Handle overworld keyboard shortcuts and edit-mode hotkeys. | |
| void | InitMapRefreshCoordinator () |
| Initialize the map refresh coordinator (called during Initialize) | |
| void | InitMapTextureCoordinator () |
| void | InitInteractionCoordinator () |
| void | RefreshChildMap (int map_index) |
| void | RefreshOverworldMap () |
| void | RefreshOverworldMapOnDemand (int map_index) |
| void | RefreshChildMapOnDemand (int map_index) |
| absl::Status | RefreshMapPalette (int map_id=-1) |
| void | RefreshMapProperties (int map_id=-1) |
| absl::Status | RefreshTile16Blockset () |
| void | UpdateBlocksetWithPendingTileChanges () |
| void | ForceRefreshGraphics (int map_index) |
| void | RefreshSiblingMapGraphics (int map_index, bool include_self=false) |
| void | InitTilePaintingManager () |
| Initialize the tile painting manager (called after graphics load) | |
| void | CheckForOverworldEdits () |
| Check for tile edits - delegates to TilePaintingManager. | |
| absl::Status | CheckForCurrentMap () |
| Check for map changes and refresh if needed. | |
| void | HandleMapInteraction () |
| void | UpdateBlocksetSelectorState () |
| void | ScrollBlocksetCanvasToCurrentTile () |
| Scroll the blockset canvas to show the current selected tile16. | |
| void | InitCanvasNavigationManager () |
| Initialize the canvas navigation manager (called during Initialize) | |
| void | DrawEntityPopups () |
| void | OpenEntityContextMenu (zelda3::GameEntity *entity) |
| void | DrawEntityContextMenu () |
| zelda3::GameEntity * | ResolveEditingEntity () |
| absl::Status | LoadSpriteGraphics () |
| void | ProcessDeferredTextures () |
| Create textures for deferred map bitmaps on demand. | |
| void | RefreshMapsForSheetEdits () |
| Mark maps for a graphics rebuild when a sheet they use changed in the session's sheet store (an unsaved Graphics editor edit). | |
| void | EnsureMapTexture (int map_index) |
| Ensure a specific map has its texture created. | |
| void | PrimeWorldMaps (int world, bool process_texture_queue=false) |
| void | SetupCanvasAutomation () |
| gui::Canvas * | GetOverworldCanvas () |
| bool | AutomationSetTile (int x, int y, int tile_id) |
| int | AutomationGetTile (int x, int y) |
| absl::Status | SaveCurrentSelectionToScratch () |
| absl::Status | LoadScratchToSelection () |
| absl::Status | ClearScratchSpace () |
| void | DrawScratchSpaceEdits () |
| void | DrawScratchSpacePattern () |
| void | DrawScratchSpaceSelection () |
| void | UpdateScratchBitmapTile (int tile_x, int tile_y, int tile_id) |
| absl::Status | LoadScratchPad () |
| absl::Status | SaveScratchPad () const |
| absl::Status | FlushScratchPadIfDirty () |
| absl::Status | RebuildScratchBitmapFromTileData () |
| void | MarkScratchSpaceDirty () |
| void | CreateUndoPoint (int map_id, int world, int x, int y, int old_tile_id) |
| void | FinalizePaintOperation () |
| auto & | GetWorldTiles (int world) |
| OverworldItemsSnapshot | CaptureItemUndoSnapshot () const |
| void | RestoreItemUndoSnapshot (const OverworldItemsSnapshot &snapshot) |
| void | PushItemUndoAction (OverworldItemsSnapshot before, std::string description) |
| absl::Status | ApplyOverworldPropertyEdit (const OverworldPropertyEdit &edit, bool record_undo=true) |
| absl::Status | ApplyOverworldPropertyEdits (const std::vector< OverworldPropertyEdit > &edits, const std::string &description, bool record_undo=true) |
| absl::Status | RenameProjectResourceLabelWithUndo (const std::string &type, int id, const std::string &label) |
Friends | |
| class | OverworldCanvasRenderer |
| class | AuthoringSaveWorkflowTestPeer |
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_ |
Static Protected Attributes inherited from yaze::gfx::GfxContext | |
| static std::unordered_map< uint8_t, gfx::Paletteset > | palettesets_ |
Main UI class for editing overworld maps in A Link to the Past.
The OverworldEditor orchestrates tile editing, entity management, and map property configuration. It coordinates between the data layer (zelda3::Overworld) and the UI components (canvas, panels, popups).
Key subsystems:
Definition at line 134 of file overworld_editor.h.
|
private |
| Enumerator | |
|---|---|
| LW_AREA_GFX | |
| DW_AREA_GFX | |
| LW_AREA_PAL | |
| DW_AREA_PAL | |
| LW_SPR_GFX_PART1 | |
| LW_SPR_GFX_PART2 | |
| DW_SPR_GFX_PART1 | |
| DW_SPR_GFX_PART2 | |
| LW_SPR_PAL_PART1 | |
| LW_SPR_PAL_PART2 | |
| DW_SPR_PAL_PART1 | |
| DW_SPR_PAL_PART2 | |
Definition at line 701 of file overworld_editor.h.
|
inlineexplicit |
Definition at line 142 of file overworld_editor.h.
References gfx_group_editor_, yaze::editor::kOverworld, rom(), yaze::editor::GfxGroupEditor::SetRom(), yaze::editor::GfxGroupEditor::SetUndoManager(), yaze::editor::Editor::type_, and yaze::editor::Editor::undo_manager_.

|
inlineexplicit |
Definition at line 150 of file overworld_editor.h.
References yaze::editor::Editor::dependencies_.
|
override |
Definition at line 136 of file overworld_editor.cc.
References blockset_canvas_, yaze::gui::Canvas::ClearContextMenuItems(), current_gfx_canvas_, yaze::gfx::Arena::Get(), graphics_bin_canvas_, map_properties_system_, ow_map_canvas_, palette_listener_id_, properties_canvas_, scratch_canvas_, sidebar_, and yaze::gfx::Arena::UnregisterPaletteListener().

|
inline |
Definition at line 155 of file overworld_editor.h.
References gfx_group_editor_, and yaze::editor::GfxGroupEditor::SetMainUsageCallback().

|
inline |
Definition at line 159 of file overworld_editor.h.
References gfx_group_editor_, and yaze::editor::GfxGroupEditor::SetRoomsetUsageCallback().

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 163 of file overworld_editor.h.
References yaze::editor::GfxGroupEditor::DetachRuntimeContext(), and gfx_group_editor_.

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 167 of file overworld_editor.h.
References gfx_group_editor_, yaze::editor::EditorDependencies::gfx_group_workspace, yaze::editor::Editor::SetDependencies(), and yaze::editor::GfxGroupEditor::SetWorkspaceState().

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 172 of file overworld_editor.h.
References yaze::editor::Editor::game_data(), game_data_, gfx_group_editor_, overworld_, yaze::zelda3::Overworld::SetGameData(), yaze::editor::GfxGroupEditor::SetGameData(), yaze::editor::Tile16Editor::SetGameData(), and tile16_editor_.
Referenced by yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), and yaze::test::OverworldEditorTestSuite::RunTilePlacementTest().

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 172 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), canvas_renderer_, CenterOverworldView(), current_map_, debug_window_card_, yaze::editor::Editor::dependencies_, entities_visible(), entity_mutation_service_, entity_renderer_, ForceRefreshGraphics(), game_state_, yaze::editor::ShortcutManager::GetDisplayString(), gfx_group_editor_, yaze::gui::Canvas::global_scale(), grid_visible(), InitCanvasNavigationManager(), InitInteractionCoordinator(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), JumpToMap(), map_properties_system_, maps_bmp_, OpenMapPropertiesWindow(), overworld_, ow_map_canvas_, RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshTile16Blockset(), RenameProjectResourceLabelWithUndo(), yaze::editor::EditorDependencies::renderer, renderer_, RequestItemInsertPopup(), ResetOverworldView(), rom_, SelectMapForEditing(), SetEditingMode(), SetEntityEditMode(), yaze::editor::GfxGroupEditor::SetHostSurfaceHint(), SetPreviewStoryState(), SetupCanvasAutomation(), yaze::editor::EditorDependencies::shortcut_manager, show_overlay_preview_, sidebar_, sprite_previews_, SwitchToWorld(), ToggleEntityVisibility(), ToggleGrid(), toolbar_, yaze::editor::Editor::type(), upgrade_system_, usage_stats_card_, ZoomIn(), ZoomOut(), and ZoomToFit().
Referenced by yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), and yaze::test::OverworldEditorTestSuite::RunTilePlacementTest().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 528 of file overworld_editor.cc.
References all_gfx_loaded_, ASSIGN_OR_RETURN, yaze::editor::Tile16Editor::BindDocument(), yaze::editor::UndoManager::Clear(), yaze::gui::Canvas::ClearContextMenuItems(), yaze::util::ComputeSha1Hex(), current_gfx_bmp_, current_paint_operation_, current_tile16_, yaze::Rom::data(), yaze::editor::Editor::dependencies_, entrance_tiletypes_, game_data_, yaze::gfx::Arena::Get(), yaze::gfx::PaletteManager::Get(), HandleEntityInsertion(), HandleTile16Edit(), yaze::editor::Tile16Editor::Initialize(), yaze::Rom::InspectLyraLayout(), yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::Overworld::is_lyra_preview(), yaze::rom::kInvalid, yaze::rom::kValid, yaze::zelda3::LoadEntranceTileTypes(), LoadGraphics(), LoadScratchPad(), LOG_DEBUG, LOG_WARN, lyra_loaded_rom_sha1_, map_properties_system_, map_refresh_, yaze::zelda3::Overworld::mutable_all_tiles_types(), yaze::zelda3::Overworld::mutable_tiles16(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), overworld_, ow_map_canvas_, palette_, palette_listener_id_, pending_entity_insertion_, pending_tile16_selection_after_gfx_, RefreshOverworldMap(), RefreshTile16Blockset(), yaze::gfx::Arena::RegisterPaletteListener(), yaze::editor::WorkspaceWindowManager::RegisterPanelAlias(), RequestTile16Selection(), RETURN_IF_ERROR, rom_, SampleContextTile16(), yaze::editor::Tile16Editor::set_on_current_tile_changed(), yaze::editor::Tile16Editor::set_on_document_changed(), yaze::editor::Tile16Editor::set_palette(), yaze::editor::Tile16Editor::SetOpenGraphicsForQuadrant(), yaze::editor::Tile16Editor::SetRom(), yaze::Rom::size(), status_, tile16_blockset_bmp_, tile16_editor_, yaze::editor::Editor::undo_manager_, and yaze::editor::EditorDependencies::window_manager.
Referenced by yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and Update().
|
finalvirtual |
Implements yaze::editor::Editor.
Definition at line 701 of file overworld_editor.cc.
References all_gfx_loaded_, Clear(), current_map_, yaze::editor::Editor::dependencies_, yaze::gui::DrawEmptyState(), yaze::gui::EmptyLoading(), yaze::gui::EmptyNoRom(), entity_mutation_service_, entity_renderer_, GetWorkbench(), ICON_MD_CANCEL, ICON_MD_CHECK, ICON_MD_FORMAT_COLOR_FILL, ICON_MD_LAYERS, ICON_MD_UPGRADE, interaction_coordinator_, yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::Overworld::is_lyra_preview(), Load(), LOG_ERROR, map_properties_system_, NormalizeCurrentSelectionState(), overworld_, overworld_canvas_fullscreen_, yaze::zelda3::OverworldCustomASMHasBeenApplied, ProcessDeferredTextures(), RefreshMapsForSheetEdits(), rom_, show_custom_bg_color_editor_, show_overlay_editor_, status_, SyncProjectGraphicsPreview(), upgrade_system_, and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1637 of file overworld_editor.cc.
References FinalizePaintOperation(), is_lyra_preview(), yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.
Referenced by InitInteractionCoordinator().

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1646 of file overworld_editor.cc.
References FinalizePaintOperation(), is_lyra_preview(), yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.
Referenced by InitInteractionCoordinator().

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 188 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1251 of file overworld_editor.cc.
References current_tile16_, yaze::editor::Editor::dependencies_, yaze::editor::SharedClipboard::has_overworld_tile16, yaze::editor::SharedClipboard::overworld_height, yaze::editor::SharedClipboard::overworld_tile16_ids, yaze::editor::SharedClipboard::overworld_width, yaze::editor::EditorDependencies::shared_clipboard, and tile_painting_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1275 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::SharedClipboard::has_overworld_tile16, is_lyra_preview(), yaze::editor::EditorDependencies::shared_clipboard, and tile_painting_.

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 191 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1344 of file overworld_editor.cc.
References yaze::zelda3::ApplyOverworldSpriteSave(), ASSIGN_OR_RETURN, yaze::Rom::CheckLayoutWritable(), yaze::ScopedRomTransaction::Commit(), yaze::zelda3::Overworld::CreateTile32Tilemap(), yaze::editor::Editor::dependencies_, yaze::zelda3::DetectOverworldRomProfile(), yaze::core::FeatureFlags::get(), yaze::zelda3::Overworld::GetProjectedWriteRanges(), yaze::project::YazeProject::hack_manifest, yaze::core::FeatureFlags::Flags::Overworld::kSaveOverworldMaps, yaze::core::HackManifest::loaded(), overworld(), yaze::core::FeatureFlags::Flags::overworld, overworld_, yaze::zelda3::Overworld::PrepareSpriteSave(), yaze::editor::EditorDependencies::project, RETURN_IF_ERROR, rom_, yaze::project::YazeProject::rom_metadata, yaze::zelda3::Overworld::SaveCustomOverworldData(), yaze::zelda3::Overworld::SaveEntrances(), yaze::zelda3::Overworld::SaveExits(), yaze::zelda3::Overworld::SaveItems(), yaze::zelda3::Overworld::SaveMap16Expanded(), yaze::zelda3::Overworld::SaveMap16Tiles(), yaze::zelda3::Overworld::SaveMap32Expanded(), yaze::zelda3::Overworld::SaveMap32Tiles(), yaze::zelda3::Overworld::SaveMapProperties(), yaze::zelda3::Overworld::SaveMusic(), yaze::zelda3::Overworld::SaveOverworldMaps(), yaze::editor::EditorDependencies::toast_manager, yaze::editor::ValidateHackManifestSaveConflicts(), and yaze::project::RomMetadata::write_policy.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1318 of file overworld_editor.cc.
References map_tile_save_transaction_open_, overworld_, and yaze::zelda3::Overworld::RollbackSavedMapTiles().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1328 of file overworld_editor.cc.
References map_tile_save_transaction_open_, overworld_, and yaze::zelda3::Overworld::RollbackSavedMapTiles().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1336 of file overworld_editor.cc.
References yaze::zelda3::Overworld::CommitSavedMapTiles(), map_tile_save_transaction_open_, and overworld_.

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2020 of file overworld_editor.cc.
References all_gfx_loaded_, current_graphics_set_, yaze::zelda3::Overworld::Destroy(), yaze::gfx::Arena::Get(), is_lyra_preview(), lyra_loaded_rom_sha1_, map_blockset_loaded_, overworld_, palette_listener_id_, pending_tile16_selection_after_gfx_, show_overlay_preview_, and yaze::gfx::Arena::UnregisterPaletteListener().
Referenced by Update().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2176 of file overworld_editor.cc.
References current_map_, current_mode, current_tile16_, yaze::editor::DRAW_TILE, yaze::editor::EffectiveOverworldHoverMap(), entity_edit_mode_, yaze::editor::ENTRANCES, yaze::editor::EXITS, yaze::editor::FILL_TILE, yaze::editor::FormatOverworldMapStatusSegment(), hovered_map_, yaze::gui::Canvas::IsMouseHovering(), yaze::editor::ITEMS, yaze::editor::MOUSE, yaze::editor::MUSIC, yaze::editor::NONE, ow_map_canvas_, yaze::editor::StatusBar::SetCustomSegment(), yaze::editor::StatusBar::SetEditorMode(), yaze::editor::SPRITES, and yaze::editor::TRANSPORTS.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2230 of file overworld_editor.cc.
References yaze::editor::EditorContextSnapshot::actions, yaze::zelda3::Overworld::all_items(), yaze::editor::AppendResolvedGraphicsContext(), yaze::editor::OverworldMapMetadata::area_gfx_label, yaze::editor::OverworldMapMetadata::area_palette_label, yaze::editor::OverworldMapMetadata::area_size_label, yaze::editor::BuildOverworldMapMetadata(), yaze::editor::EditorContextSnapshot::capabilities, yaze::editor::EditorContextSnapshot::category, yaze::editor::EditorContextSnapshot::counts, current_map_, current_map_lock_, current_parent_, current_tile16_, yaze::editor::Editor::dependencies_, yaze::zelda3::DescribeOverworldGraphicsContext(), yaze::editor::EditorContextSnapshot::diagnostics, yaze::Rom::dirty(), yaze::zelda3::Overworld::entrances(), yaze::zelda3::Overworld::exits(), game_state_, yaze::editor::EditorContextSnapshot::has_pending_changes, yaze::zelda3::Overworld::is_loaded(), yaze::editor::kInfo, yaze::editor::OverworldMapMetadata::map_id_label, yaze::editor::OverworldMapMetadata::map_title, yaze::editor::EditorContextSnapshot::metadata, yaze::project::YazeProject::name, overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::editor::OverworldMapMetadata::parent_label, yaze::editor::EditorContextSnapshot::pending_label, yaze::editor::EditorDependencies::project, yaze::zelda3::GraphicsContextIdentity::project_name, rom_, selected_tile16_ids_, yaze::editor::EditorContextSnapshot::semantic_owner, yaze::zelda3::Overworld::sprites(), yaze::editor::EditorContextSnapshot::subtitle, yaze::editor::EditorContextSnapshot::title, and yaze::editor::OverworldMapMetadata::world_label.
|
inline |
Access the underlying Overworld data.
Definition at line 201 of file overworld_editor.h.
References overworld_.
Referenced by LoadGraphics(), yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), and Save().
| const gfx::Bitmap * yaze::editor::OverworldEditor::AreaScreenBitmap | ( | int | map_id | ) |
Definition at line 1805 of file overworld_editor.cc.
References EnsureMapTexture(), yaze::gfx::Bitmap::is_active(), yaze::zelda3::kNumOverworldMaps, maps_bmp_, and yaze::gfx::Bitmap::texture().

|
inline |
Definition at line 207 of file overworld_editor.h.
References jump_to_tab_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 214 of file overworld_editor.h.
References yaze::Rom::is_loaded(), and rom_.

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 215 of file overworld_editor.h.
References yaze::Rom::is_loaded(), rom_, and yaze::Rom::title().

|
inline |
Definition at line 223 of file overworld_editor.h.
References rom_.
Referenced by OverworldEditor().
|
inline |
Definition at line 224 of file overworld_editor.h.
References yaze::zelda3::Overworld::is_lyra_preview(), and overworld_.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), CheckRomReplacement(), Clear(), DrawAreaGraphics(), DrawMapProperties(), DrawScratchSpace(), DrawTile16Selector(), DrawTile8Selector(), DrawV3Settings(), GetWorkbench(), Paste(), Redo(), RenameProjectResourceLabelWithUndo(), SetEditingMode(), SetEntityEditMode(), Undo(), and UpdateGfxGroupEditor().

| absl::Status yaze::editor::OverworldEditor::CheckRomReplacement | ( | const Rom & | replacement | ) | const |
Definition at line 514 of file overworld_editor.cc.
References yaze::util::ComputeSha1Hex(), yaze::Rom::data(), yaze::Rom::InspectLyraLayout(), yaze::zelda3::Overworld::is_loaded(), is_lyra_preview(), yaze::rom::kAbsent, lyra_loaded_rom_sha1_, overworld_, yaze::rom::LyraLayoutInspection::presence, and yaze::Rom::size().
|
inline |
Definition at line 228 of file overworld_editor.h.
References show_overlay_preview_.
|
static |
Clamp a possibly stale world/map selection back into a valid overworld range.
Definition at line 155 of file overworld_editor.cc.
References yaze::zelda3::kNumOverworldMaps.
Referenced by NormalizeCurrentSelectionState().
|
inline |
Set the current map for editing (also updates world)
Definition at line 235 of file overworld_editor.h.
References current_map_, current_parent_, current_world_, FinalizePaintOperation(), yaze::zelda3::Overworld::inspected_map_count(), overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::Overworld::set_current_map(), and yaze::zelda3::Overworld::set_current_world().
Referenced by JumpToMap(), yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and SetCurrentMap().
|
inline |
Definition at line 251 of file overworld_editor.h.
References set_current_map().

| void yaze::editor::OverworldEditor::SelectMapForEditing | ( | int | map_id, |
| bool | respect_pin = true ) |
Definition at line 887 of file overworld_editor.cc.
References all_gfx_loaded_, current_map_, current_map_lock_, current_mode, current_parent_, current_world_, yaze::editor::DRAW_TILE, yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), yaze::editor::FILL_TILE, FinalizePaintOperation(), yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_lyra_preview(), overworld_, yaze::zelda3::Overworld::overworld_map(), PRINT_IF_ERROR, RefreshMapProperties(), RefreshMapsForSheetEdits(), RefreshTile16Blockset(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), and status_.
Referenced by InitCanvasNavigationManager(), Initialize(), InitTilePaintingManager(), JumpToMap(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), SelectAdjacentMap(), and SwitchToWorld().
|
inline |
Definition at line 254 of file overworld_editor.h.
References current_tile16_.
|
inline |
Definition at line 255 of file overworld_editor.h.
References current_tile16_.
| absl::Status yaze::editor::OverworldEditor::OpenGraphicsForTile16Quadrant | ( | int | tile16_id, |
| int | quadrant ) |
Definition at line 1865 of file overworld_editor.cc.
References yaze::editor::usage_preview::PreviewImage::colors, yaze::editor::Editor::context(), current_map_, yaze::editor::EditorDependencies::custom_data, yaze::editor::Editor::dependencies_, yaze::zelda3::Overworld::EnsureMapBuilt(), FinalizePaintOperation(), game_data_, yaze::zelda3::Overworld::GetMapTiles(), yaze::editor::usage_preview::PreviewImage::height, yaze::editor::usage_preview::PreviewImage::index0_transparent, yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), yaze::editor::kGraphics, yaze::editor::kOverworld, yaze::editor::OverworldPanelIds::kTile16Editor, yaze::editor::MakeOverworldGraphicsEditContext(), yaze::zelda3::Overworld::mutable_overworld_map(), yaze::zelda3::Overworld::mutable_tiles16(), yaze::editor::WorkspaceWindowManager::OpenWindow(), overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::editor::usage_preview::PreviewImage::pixels, RefreshMapsForSheetEdits(), RequestTile16Selection(), RETURN_IF_ERROR, rom_, SelectMapForEditing(), yaze::editor::usage_preview::SnapshotSessionSheets(), yaze::zelda3::Overworld::SyncAreaProperties(), SyncProjectGraphicsPreview(), yaze::zelda3::Overworld::tiles16(), yaze::editor::UpdateGraphicsContextPalettes(), yaze::editor::usage_preview::PreviewImage::width, and yaze::editor::EditorDependencies::window_manager.
Referenced by Load(), and OpenGraphicsForContextTile16().
| absl::Status yaze::editor::OverworldEditor::OpenGraphicsForContextTile16 | ( | const OverworldContextTarget & | target | ) |
Definition at line 88 of file overworld_context_actions.cc.
References current_map_, yaze::zelda3::Overworld::is_loaded(), yaze::editor::OverworldContextTarget::map_id, OpenGraphicsForTile16Quadrant(), overworld_, SelectMapForEditing(), status_, yaze::editor::OverworldContextTarget::tile16_id, yaze::zelda3::Overworld::tiles16(), yaze::editor::OverworldContextTarget::valid(), and yaze::editor::OverworldContextTarget::world_position.
Referenced by Load().
|
inline |
Definition at line 263 of file overworld_editor.h.
References tile_painting_.
|
inline |
Definition at line 266 of file overworld_editor.h.
References yaze::gfx::Bitmap::at(), and maps_bmp_.

|
inline |
Definition at line 269 of file overworld_editor.h.
References current_map_lock_.
|
inline |
Definition at line 270 of file overworld_editor.h.
References current_map_.
|
inline |
Definition at line 271 of file overworld_editor.h.
References current_world_.
|
inline |
Definition at line 272 of file overworld_editor.h.
References hovered_map_.
| absl::Status yaze::editor::OverworldEditor::LoadGraphics | ( | ) |
Load the Bitmap objects for each OverworldMap.
Calls the Overworld class to load the image data and palettes from the Rom, then renders the area graphics and tile16 blockset Bitmap objects before assembling the OverworldMap Bitmap objects.
Definition at line 1679 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::gfx::CreateTilemap(), yaze::zelda3::Overworld::current_area_palette(), current_gfx_bmp_, yaze::zelda3::Overworld::current_graphics(), current_map_, current_parent_, current_world_, yaze::zelda3::Overworld::EnsureMapBuilt(), game_state_, yaze::gfx::Arena::Get(), yaze::core::FeatureFlags::get(), yaze::Rom::InspectLyraLayout(), yaze::gfx::Bitmap::is_active(), yaze::zelda3::kNumTile16Individual, yaze::editor::kOverworldMapSize, yaze::editor::kTile16Size, yaze::rom::kValid, yaze::zelda3::Overworld::Load(), yaze::zelda3::Overworld::LoadLyraTerrainPreview(), LoadSpriteGraphics(), LOG_DEBUG, map_blockset_loaded_, map_texture_, overworld(), overworld_, yaze::zelda3::Overworld::overworld_map(), palette_, yaze::rom::LyraLayoutInspection::presence, yaze::gfx::Arena::QueueTextureCommand(), renderer_, RETURN_IF_ERROR, rom_, yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), yaze::zelda3::Overworld::set_game_state(), yaze::gfx::Bitmap::SetPalette(), show_overlay_preview_, yaze::gfx::SnesPalette::size(), yaze::gfx::Bitmap::surface(), SyncProjectGraphicsPreview(), tile16_blockset_, tile16_blockset_bmp_, and yaze::zelda3::Overworld::tile16_blockset_data().
Referenced by Load().
| absl::Status yaze::editor::OverworldEditor::SyncProjectGraphicsPreview | ( | bool | force = false | ) |
Definition at line 1656 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, graphics_preview_config_path_, yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::kNumOverworldMaps, yaze::core::LoadOverworldGraphicsPreview(), maps_bmp_, overworld_, yaze::project::YazeProject::overworld_graphics_preview, yaze::editor::EditorDependencies::project, RefreshTile16Blockset(), RETURN_IF_ERROR, and yaze::zelda3::Overworld::SetGraphicsPreview().
Referenced by LoadGraphics(), OpenGraphicsForTile16Quadrant(), and Update().

| void yaze::editor::OverworldEditor::SetCurrentEntity | ( | zelda3::GameEntity * | entity | ) |
Set the currently active entity for editing.
Definition at line 495 of file overworld_editor.cc.
References current_entity_, yaze::zelda3::GameEntity::entity_type_, yaze::zelda3::GameEntity::kItem, and selected_item_identity_.
Referenced by SetPreviewStoryState().
|
inline |
Definition at line 294 of file overworld_editor.h.
References current_entity_.
| void yaze::editor::OverworldEditor::NotifyEntityModified | ( | zelda3::GameEntity * | entity | ) |
Notify that an entity has been modified, marking ROM as dirty.
Definition at line 508 of file overworld_editor.cc.
References rom_, and yaze::Rom::set_dirty().

| void yaze::editor::OverworldEditor::OpenEntityEditor | ( | zelda3::GameEntity * | entity | ) |
|
inline |
Trigger a jump to a dungeon room.
Definition at line 301 of file overworld_editor.h.
References jump_to_tab_.
|
inline |
Trigger a jump to a dungeon entrance.
Definition at line 304 of file overworld_editor.h.
References jump_to_tab_.
|
inline |
Access the entity mutation service.
Definition at line 307 of file overworld_editor.h.
References entity_mutation_service_.
|
inline |
Definition at line 311 of file overworld_editor.h.
References edit_entrance_.
|
inline |
Definition at line 312 of file overworld_editor.h.
References edit_exit_.
|
inline |
Definition at line 313 of file overworld_editor.h.
References edit_item_.
|
inline |
Definition at line 314 of file overworld_editor.h.
References edit_sprite_.
|
inline |
Definition at line 316 of file overworld_editor.h.
References pending_entity_insertion_.
|
inline |
Definition at line 321 of file overworld_editor.h.
References insert_error_.
|
inline |
Definition at line 323 of file overworld_editor.h.
References ow_map_canvas_.
|
inline |
Definition at line 324 of file overworld_editor.h.
References game_state_.
| void yaze::editor::OverworldEditor::SetPreviewStoryState | ( | int | state | ) |
Definition at line 654 of file overworld_editor.cc.
References all_gfx_loaded_, current_entity_, yaze::zelda3::GameEntity::entity_type_, ForceRefreshGraphics(), game_state_, yaze::zelda3::kNumOverworldMaps, yaze::zelda3::GameEntity::kSprite, yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, RefreshOverworldMap(), RefreshTile16Blockset(), yaze::zelda3::Overworld::set_game_state(), SetCurrentEntity(), and status_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::HandleEntityInsertion | ( | const std::string & | entity_type, |
| const OverworldContextTarget & | target ) |
Handle entity insertion from context menu.
| entity_type | Type: "entrance", "hole", "exit", "item", "sprite" |
Definition at line 62 of file overworld_context_actions.cc.
References pending_entity_insertion_, RequestItemInsertPopup(), and yaze::editor::OverworldContextTarget::valid().
Referenced by Load().

| void yaze::editor::OverworldEditor::RequestItemInsertPopup | ( | const std::optional< OverworldContextTarget > & | target | ) |
Insert Item opens the item catalog. A context-menu target places the chosen item there; otherwise the next map click places it.
Definition at line 115 of file overworld_context_actions.cc.
References item_insert_popup_requested_, and item_insert_target_.
Referenced by HandleEntityInsertion(), and Initialize().
| void yaze::editor::OverworldEditor::DrawItemInsertPopup | ( | ) |
Definition at line 121 of file overworld_context_actions.cc.
References armed_item_id_, item_insert_popup_requested_, item_insert_target_, item_placement_armed_, yaze::editor::ITEMS, yaze::zelda3::kSecretItemNames, pending_entity_insertion_, and SetEntityEditMode().

| bool yaze::editor::OverworldEditor::TryPlaceArmedItem | ( | ) |
Definition at line 155 of file overworld_context_actions.cc.
References armed_item_id_, current_world_, entity_edit_mode_, entity_renderer_, game_state_, yaze::gui::Canvas::global_scale(), yaze::gui::Canvas::hover_mouse_pos(), yaze::gui::Canvas::IsMouseHovering(), item_placement_armed_, yaze::editor::ITEMS, overworld_, yaze::zelda3::Overworld::overworld_map(), ow_map_canvas_, pending_entity_insertion_, and yaze::editor::ResolveOverworldContextTarget().
| void yaze::editor::OverworldEditor::HandleTile16Edit | ( | const OverworldContextTarget & | target | ) |
Handle tile16 editing from context menu (MOUSE mode) Opens the Tile16 captured at menu-open through the pending-edit guard.
Definition at line 188 of file overworld_context_actions.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::OverworldPanelIds::kTile16Editor, yaze::editor::WorkspaceWindowManager::MarkWindowRecentlyUsed(), yaze::editor::WorkspaceWindowManager::OpenWindowFloating(), SampleContextTile16(), and yaze::editor::EditorDependencies::window_manager.
Referenced by Load().

| bool yaze::editor::OverworldEditor::SampleContextTile16 | ( | const OverworldContextTarget & | target | ) |
Definition at line 75 of file overworld_context_actions.cc.
References yaze::zelda3::Overworld::is_loaded(), map_blockset_loaded_, overworld_, RequestTile16Selection(), ScrollBlocksetCanvasToCurrentTile(), yaze::editor::OverworldContextTarget::tile16_id, yaze::zelda3::Overworld::tiles16(), and yaze::editor::OverworldContextTarget::valid().
Referenced by HandleTile16Edit(), and Load().
| bool yaze::editor::OverworldEditor::SelectItemByIdentity | ( | const zelda3::OverworldItem & | item_identity | ) |
Select an overworld item using value identity matching.
Definition at line 980 of file overworld_editor.cc.
References current_entity_, yaze::editor::Editor::dependencies_, yaze::editor::FindItemByIdentity(), yaze::editor::WorkspaceWindowManager::GetWindowContent(), overworld_, selected_item_identity_, yaze::editor::OverworldEntityWorkbench::SetActiveEntity(), and yaze::editor::EditorDependencies::window_manager.

| void yaze::editor::OverworldEditor::ClearSelectedItem | ( | ) |
Clear active item selection.
Definition at line 1000 of file overworld_editor.cc.
References current_entity_, yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetWindowContent(), selected_item_identity_, yaze::editor::OverworldEntityWorkbench::SetActiveEntity(), and yaze::editor::EditorDependencies::window_manager.
Referenced by DeleteSelectedItem(), GetSelectedItem(), and RestoreItemUndoSnapshot().

|
inline |
Get current selected item identity snapshot.
Definition at line 358 of file overworld_editor.h.
References selected_item_identity_.
| zelda3::OverworldItem * yaze::editor::OverworldEditor::GetSelectedItem | ( | ) |
Resolve selected item identity to the current live item pointer.
Definition at line 1024 of file overworld_editor.cc.
References ClearSelectedItem(), current_entity_, yaze::editor::FindItemByIdentity(), GetWorkbench(), overworld_, and selected_item_identity_.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), InitInteractionCoordinator(), and NudgeSelectedItem().

| const zelda3::OverworldItem * yaze::editor::OverworldEditor::GetSelectedItem | ( | ) | const |
Definition at line 1042 of file overworld_editor.cc.
References GetSelectedItem().

| bool yaze::editor::OverworldEditor::DuplicateSelectedItem | ( | int | offset_x = 16, |
| int | offset_y = 0 ) |
Duplicate selected item with optional pixel offset.
Definition at line 1098 of file overworld_editor.cc.
References CaptureItemUndoSnapshot(), current_entity_, yaze::editor::Editor::dependencies_, yaze::editor::DuplicateItemByIdentity(), yaze::editor::EntityMutationService::MutationResult::entity, entity_mutation_service_, yaze::editor::EntityMutationService::MutationResult::error_message, GetSelectedItem(), GetWorkbench(), yaze::editor::kError, yaze::editor::kInfo, yaze::editor::kSuccess, yaze::editor::EntityMutationService::MutationResult::ok(), overworld_, PushItemUndoAction(), rom_, selected_item_identity_, yaze::Rom::set_dirty(), yaze::editor::ToastManager::Show(), yaze::editor::EntityMutationService::MutationResult::status, and yaze::editor::EditorDependencies::toast_manager.
Referenced by InitInteractionCoordinator().
| bool yaze::editor::OverworldEditor::NudgeSelectedItem | ( | int | delta_x, |
| int | delta_y ) |
Move selected item by signed pixel deltas.
Definition at line 1158 of file overworld_editor.cc.
References CaptureItemUndoSnapshot(), current_entity_, yaze::editor::Editor::dependencies_, GetSelectedItem(), GetWorkbench(), yaze::editor::kError, yaze::editor::NudgeItem(), PushItemUndoAction(), rom_, selected_item_identity_, yaze::Rom::set_dirty(), yaze::editor::ToastManager::Show(), and yaze::editor::EditorDependencies::toast_manager.
Referenced by InitInteractionCoordinator().
| bool yaze::editor::OverworldEditor::DeleteSelectedItem | ( | ) |
Delete selected item and preserve nearest-item selection continuity.
Definition at line 1187 of file overworld_editor.cc.
References CaptureItemUndoSnapshot(), ClearSelectedItem(), current_entity_, yaze::editor::Editor::dependencies_, entity_mutation_service_, yaze::editor::FindNearestItemForSelection(), GetSelectedItem(), GetWorkbench(), yaze::zelda3::OverworldItem::id_, yaze::editor::kError, yaze::editor::kSuccess, overworld_, PushItemUndoAction(), yaze::editor::RemoveItemByIdentity(), rom_, selected_item_identity_, yaze::Rom::set_dirty(), yaze::editor::ToastManager::Show(), and yaze::editor::EditorDependencies::toast_manager.
| bool yaze::editor::OverworldEditor::DeleteItemByIdentity | ( | const zelda3::OverworldItem & | item_identity | ) |
|
inline |
Definition at line 380 of file overworld_editor.h.
References tile_painting_.
|
inline |
Definition at line 384 of file overworld_editor.h.
References tile_painting_.
| void yaze::editor::OverworldEditor::CycleTileSelection | ( | int | delta | ) |
Definition at line 2045 of file overworld_editor.cc.
References current_tile16_, yaze::zelda3::kNumTile16Individual, and RequestTile16Selection().

| void yaze::editor::OverworldEditor::ToggleMapLock | ( | ) |
Definition at line 2051 of file overworld_editor.cc.
References current_map_lock_.
| void yaze::editor::OverworldEditor::ToggleCanvasFullscreen | ( | ) |
Definition at line 2055 of file overworld_editor.cc.
References overworld_canvas_fullscreen_.
| void yaze::editor::OverworldEditor::ToggleTile16EditorWindow | ( | ) |
Definition at line 2059 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::OverworldPanelIds::kTile16Editor, yaze::editor::WorkspaceWindowManager::ToggleWindow(), and yaze::editor::EditorDependencies::window_manager.

| void yaze::editor::OverworldEditor::ToggleItemListWindow | ( | ) |
Definition at line 2068 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::OverworldPanelIds::kItemList, yaze::editor::WorkspaceWindowManager::ToggleWindow(), and yaze::editor::EditorDependencies::window_manager.

| void yaze::editor::OverworldEditor::SetEditingMode | ( | EditingMode | mode | ) |
Tool change from the toolbar or keys 1/2: also leaves entity modes.
Definition at line 2127 of file overworld_editor.cc.
References current_mode, entity_edit_mode_, is_lyra_preview(), yaze::gui::kEntityManipulation, yaze::gui::kTilePainting, yaze::editor::MOUSE, yaze::editor::NONE, ow_map_canvas_, and yaze::gui::Canvas::SetUsageMode().
Referenced by Initialize(), and InitInteractionCoordinator().

| void yaze::editor::OverworldEditor::SelectAdjacentMap | ( | int | dx, |
| int | dy ) |
Alt+Arrow: select the neighbouring screen in the world grid and center it.
Definition at line 2077 of file overworld_editor.cc.
References canvas_nav_, current_map_, current_world_, yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_lyra_preview(), overworld_, and SelectMapForEditing().

| void yaze::editor::OverworldEditor::JumpToMap | ( | int | map_id | ) |
Select map_id (switching world if needed) and center it; the context menu's Related Maps entries.
Definition at line 2099 of file overworld_editor.cc.
References canvas_nav_, current_world_, yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_loaded(), overworld_, SelectMapForEditing(), set_current_map(), and SwitchToWorld().
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), Initialize(), and LocateOverworldTile().
| void yaze::editor::OverworldEditor::LocateOverworldTile | ( | int | map_id, |
| int | world_x, | ||
| int | world_y ) |
Definition at line 2119 of file overworld_editor.cc.
References canvas_nav_, and JumpToMap().

| void yaze::editor::OverworldEditor::SwitchToWorld | ( | int | world | ) |
Definition at line 947 of file overworld_editor.cc.
References current_map_, current_world_, yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), FinalizePaintOperation(), ForceRefreshGraphics(), hovered_map_, yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_lyra_preview(), NormalizeCurrentSelectionState(), overworld_, PrimeWorldMaps(), PRINT_IF_ERROR, RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), SelectMapForEditing(), and status_.
Referenced by Initialize(), and JumpToMap().
| void yaze::editor::OverworldEditor::ZoomIn | ( | ) |
Definition at line 11 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::ZoomOut | ( | ) |
Definition at line 16 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::ZoomToFit | ( | ) |
Definition at line 21 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::ResetOverworldView | ( | ) |
Definition at line 26 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::CenterOverworldView | ( | ) |
Definition at line 31 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::SetEntityEditMode | ( | EntityEditMode | mode | ) |
Entity focus (entrances/exits/items/sprites); NONE = all entities.
Definition at line 2138 of file overworld_editor.cc.
References current_mode, entity_edit_mode_, is_lyra_preview(), yaze::gui::kEntityManipulation, yaze::editor::MOUSE, yaze::editor::NONE, ow_map_canvas_, and yaze::gui::Canvas::SetUsageMode().
Referenced by DrawItemInsertPopup(), Initialize(), and InitInteractionCoordinator().

|
inline |
Definition at line 413 of file overworld_editor.h.
References show_entities_.
Referenced by Initialize().
|
inline |
Definition at line 414 of file overworld_editor.h.
References show_entities_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::ToggleGrid | ( | ) |
Definition at line 2150 of file overworld_editor.cc.
References yaze::gui::Canvas::ApplyConfigSnapshot(), yaze::gui::CanvasConfig::enable_grid, yaze::gui::Canvas::GetConfig(), and ow_map_canvas_.
Referenced by Initialize().

| bool yaze::editor::OverworldEditor::grid_visible | ( | ) | const |
Definition at line 2156 of file overworld_editor.cc.
References yaze::gui::CanvasConfig::enable_grid, yaze::gui::Canvas::GetConfig(), and ow_map_canvas_.
Referenced by Initialize().

| void yaze::editor::OverworldEditor::OpenMapPropertiesWindow | ( | ) |
Open and focus the docked Map Properties window (double-click a map, context menu "Map > Map Properties").
Definition at line 2160 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::OverworldPanelIds::kMapProperties, and yaze::editor::EditorDependencies::window_manager.
Referenced by InitCanvasNavigationManager(), and Initialize().

| void yaze::editor::OverworldEditor::RequestTile16Selection | ( | int | tile_id | ) |
Single entry point for changing the active Tile16 (painting + editor). Uses Tile16Editor::RequestTileSwitch when graphics are ready so staged edits get the unsaved dialog; defers until Load() completes otherwise.
Definition at line 1992 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::editor::Tile16Editor::current_tile16(), current_tile16_, yaze::Rom::is_loaded(), yaze::zelda3::kNumTile16Individual, LOG_WARN, map_blockset_loaded_, pending_tile16_selection_after_gfx_, yaze::editor::Tile16Editor::RequestTileSwitch(), rom_, yaze::editor::Tile16Editor::SetCurrentTile(), and tile16_editor_.
Referenced by CycleTileSelection(), InitTilePaintingManager(), Load(), OpenGraphicsForTile16Quadrant(), and SampleContextTile16().

|
inline |
Definition at line 426 of file overworld_editor.h.
References tile_painting_.
Referenced by InitCanvasNavigationManager(), and InitInteractionCoordinator().
|
inline |
Definition at line 436 of file overworld_editor.h.
References canvas_renderer_, is_lyra_preview(), and NormalizeCurrentSelectionState().

|
inline |
Definition at line 446 of file overworld_editor.h.
References canvas_renderer_, and is_lyra_preview().

|
inline |
Definition at line 455 of file overworld_editor.h.
References canvas_renderer_, is_lyra_preview(), and NormalizeCurrentSelectionState().

|
inline |
Invalidate cached graphics for a specific map or all maps.
| map_id | The map to invalidate (-1 to invalidate all maps) Call this when palette or graphics settings change. |
Definition at line 468 of file overworld_editor.h.
References map_refresh_.
| absl::Status yaze::editor::OverworldEditor::DrawScratchSpace | ( | ) |
Definition at line 157 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gui::BeginCanvas(), yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), yaze::gui::CanvasFrameOptions::canvas_size, ClearScratchSpace(), yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_mode, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::editor::DRAW_TILE, yaze::gui::Canvas::DrawBitmap(), DrawScratchSpaceEdits(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::EndCanvas(), yaze::gui::EndPadding(), FlushScratchPadIfDirty(), yaze::gfx::Arena::Get(), yaze::gui::CanvasFrameOptions::grid_step, yaze::editor::OverworldEditor::ScratchSpace::height, HOVER_HINT, ICON_MD_BRUSH, ICON_MD_CONTENT_PASTE, yaze::gfx::Bitmap::is_active(), is_lyra_preview(), map_blockset_loaded_, yaze::editor::OverworldEditor::ScratchSpace::name, overworld_, ow_map_canvas_, palette_, yaze::gfx::Arena::QueueTextureCommand(), yaze::gui::CanvasFrameOptions::render_popups, RETURN_IF_ERROR, SaveCurrentSelectionToScratch(), yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_canvas_, scratch_space_, yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_tiles(), yaze::gfx::Bitmap::SetPalette(), yaze::gui::CanvasFrameOptions::use_child_window, and yaze::editor::OverworldEditor::ScratchSpace::width.
|
inline |
Definition at line 473 of file overworld_editor.h.
References canvas_renderer_, and is_lyra_preview().

| absl::Status yaze::editor::OverworldEditor::UpdateGfxGroupEditor | ( | ) |
Definition at line 1300 of file overworld_editor.cc.
References yaze::gui::DrawEmptyState(), yaze::gui::EmptyNoRom(), gfx_group_editor_, yaze::Rom::is_loaded(), is_lyra_preview(), rom_, and yaze::editor::GfxGroupEditor::Update().
|
inline |
Definition at line 482 of file overworld_editor.h.
References canvas_renderer_, is_lyra_preview(), and NormalizeCurrentSelectionState().

|
inline |
Access usage statistics card for panel.
Definition at line 493 of file overworld_editor.h.
References usage_stats_card_.
|
inline |
Access debug window card for panel.
Definition at line 496 of file overworld_editor.h.
References debug_window_card_.
|
inline |
Access the Tile16 Editor for panel integration.
Definition at line 499 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Definition at line 500 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Read-only access for integration tests that verify refresh output.
Definition at line 503 of file overworld_editor.h.
References tile16_blockset_.
|
inline |
Definition at line 504 of file overworld_editor.h.
References current_gfx_bmp_.
| OverworldEntityWorkbench * yaze::editor::OverworldEditor::GetWorkbench | ( | ) |
Resolve the entity workbench window content (may be null).
Definition at line 1013 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetWindowContent(), is_lyra_preview(), and yaze::editor::EditorDependencies::window_manager.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), and Update().

| void yaze::editor::OverworldEditor::DrawOverworldCanvas | ( | ) |
Draw the main overworld canvas.
Definition at line 850 of file overworld_editor.cc.
References canvas_renderer_, and NormalizeCurrentSelectionState().

|
private |
Handle overworld keyboard shortcuts and edit-mode hotkeys.
Clamp and synchronize stale map/world selection before panels draw.
Definition at line 858 of file overworld_editor.cc.
References current_map_, current_parent_, current_world_, yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_lyra_preview(), LOG_WARN, NormalizeMapSelection(), overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::Overworld::set_current_map(), and yaze::zelda3::Overworld::set_current_world().
Referenced by DrawAreaGraphics(), DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawOverworldCanvas(), DrawV3Settings(), SwitchToWorld(), and Update().
|
private |
Initialize the map refresh coordinator (called during Initialize)
Definition at line 1832 of file overworld_editor.cc.
References yaze::editor::MapRefreshContext::current_blockset, current_blockset_, yaze::editor::MapRefreshContext::current_gfx_bmp, current_gfx_bmp_, yaze::editor::MapRefreshContext::current_graphics_set, current_graphics_set_, yaze::editor::MapRefreshContext::current_map, current_map_, yaze::editor::MapRefreshContext::current_world, current_world_, yaze::editor::MapRefreshContext::ensure_map_texture, EnsureMapTexture(), yaze::editor::MapRefreshContext::game_state, game_state_, yaze::editor::MapRefreshContext::map_blockset_loaded, map_blockset_loaded_, map_refresh_, yaze::editor::MapRefreshContext::maps_bmp, maps_bmp_, yaze::editor::MapRefreshContext::overworld, overworld_, yaze::editor::MapRefreshContext::palette, palette_, yaze::editor::MapRefreshContext::renderer, renderer_, yaze::editor::MapRefreshContext::rom, rom_, yaze::editor::MapRefreshContext::status, status_, yaze::editor::MapRefreshContext::tile16_blockset, tile16_blockset_, yaze::editor::MapRefreshContext::tile16_editor, and tile16_editor_.
Referenced by Initialize().

|
private |
Definition at line 1819 of file overworld_editor.cc.
References yaze::editor::MapTextureContext::current_map, current_map_, yaze::editor::MapTextureContext::current_world, current_world_, map_texture_, yaze::editor::MapTextureContext::maps_bmp, maps_bmp_, yaze::editor::MapTextureContext::overworld, overworld_, yaze::editor::MapTextureContext::refresh_map_on_demand, RefreshOverworldMapOnDemand(), yaze::editor::MapTextureContext::renderer, and renderer_.
Referenced by Initialize().

|
private |
Definition at line 342 of file overworld_editor.cc.
References yaze::editor::OverworldCommandSink::can_edit_items, current_mode, yaze::editor::Editor::dependencies_, DuplicateSelectedItem(), entity_edit_mode_, GetSelectedItem(), yaze::editor::WorkspaceWindowManager::GetWindowContent(), interaction_coordinator_, yaze::editor::ITEMS, jump_to_tab_, yaze::zelda3::GameEntity::kEntrance, yaze::zelda3::GameEntity::kExit, yaze::editor::MOUSE, yaze::editor::NONE, NudgeSelectedItem(), yaze::editor::OverworldCommandSink::on_duplicate_selected, yaze::editor::OverworldCommandSink::on_entity_context_menu, yaze::editor::OverworldCommandSink::on_entity_double_click, yaze::editor::OverworldCommandSink::on_nudge_selected, yaze::editor::OverworldCommandSink::on_pick_tile_from_hover, yaze::editor::OverworldCommandSink::on_redo, yaze::editor::OverworldCommandSink::on_set_editor_mode, yaze::editor::OverworldCommandSink::on_set_entity_mode, yaze::editor::OverworldCommandSink::on_undo, yaze::editor::OverworldEntityWorkbench::OpenContextMenuFor(), PickTile16FromHoveredCanvas(), Redo(), SetEditingMode(), SetEntityEditMode(), status_, Undo(), and yaze::editor::EditorDependencies::window_manager.
Referenced by Initialize().
|
inlineprivate |
Definition at line 541 of file overworld_editor.h.
References map_refresh_.
|
inlineprivate |
Definition at line 545 of file overworld_editor.h.
References map_refresh_.
Referenced by InitCanvasNavigationManager(), Initialize(), Load(), RestoreItemUndoSnapshot(), and SetPreviewStoryState().
|
inlineprivate |
Definition at line 549 of file overworld_editor.h.
References map_refresh_.
Referenced by InitMapTextureCoordinator(), InitTilePaintingManager(), RefreshMapsForSheetEdits(), and SwitchToWorld().
|
inlineprivate |
Definition at line 553 of file overworld_editor.h.
References map_refresh_.
|
inlineprivate |
Definition at line 557 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize().
|
inlineprivate |
Definition at line 563 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize(), and SelectMapForEditing().
|
inlineprivate |
Definition at line 567 of file overworld_editor.h.
References map_refresh_.
Referenced by InitCanvasNavigationManager(), Initialize(), Load(), RefreshMapsForSheetEdits(), SelectMapForEditing(), SetPreviewStoryState(), SwitchToWorld(), and SyncProjectGraphicsPreview().
|
inlineprivate |
Definition at line 573 of file overworld_editor.h.
References map_refresh_.
|
inlineprivate |
Definition at line 577 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize(), RefreshMapsForSheetEdits(), SetPreviewStoryState(), and SwitchToWorld().
|
inlineprivate |
Definition at line 581 of file overworld_editor.h.
References map_refresh_.
|
private |
Initialize the tile painting manager (called after graphics load)
Definition at line 408 of file overworld_editor.cc.
References yaze::editor::TilePaintingCallbacks::create_undo_point, CreateUndoPoint(), yaze::editor::TilePaintingDependencies::current_map, current_map_, current_mode, yaze::editor::TilePaintingDependencies::current_mode, yaze::editor::TilePaintingDependencies::current_tile16, current_tile16_, yaze::editor::TilePaintingDependencies::current_world, current_world_, yaze::editor::TilePaintingCallbacks::finalize_paint_operation, FinalizePaintOperation(), yaze::editor::TilePaintingDependencies::maps_bmp, maps_bmp_, yaze::editor::TilePaintingDependencies::overworld, overworld_, yaze::editor::TilePaintingDependencies::ow_map_canvas, ow_map_canvas_, yaze::editor::TilePaintingCallbacks::refresh_overworld_map_on_demand, RefreshOverworldMapOnDemand(), yaze::editor::TilePaintingCallbacks::request_tile16_selection, RequestTile16Selection(), yaze::editor::TilePaintingDependencies::rom, rom_, yaze::editor::TilePaintingCallbacks::scroll_blockset_to_current_tile, ScrollBlocksetCanvasToCurrentTile(), yaze::editor::TilePaintingCallbacks::select_map_for_editing, yaze::editor::TilePaintingDependencies::selected_tile16_ids, selected_tile16_ids_, SelectMapForEditing(), yaze::editor::TilePaintingDependencies::tile16_blockset, tile16_blockset_, yaze::editor::TilePaintingDependencies::tile16_editor, tile16_editor_, and tile_painting_.
Referenced by Initialize().
|
private |
Check for tile edits - delegates to TilePaintingManager.
Definition at line 1247 of file overworld_editor.cc.
References tile_painting_.
|
private |
Check for map changes and refresh if needed.
Definition at line 1294 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Definition at line 1855 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Definition at line 2040 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Scroll the blockset canvas to show the current selected tile16.
Definition at line 1860 of file overworld_editor.cc.
References canvas_nav_.
Referenced by InitTilePaintingManager(), and SampleContextTile16().
|
private |
Initialize the canvas navigation manager (called during Initialize)
Definition at line 451 of file overworld_editor.cc.
References yaze::editor::CanvasNavigationContext::blockset_selector, blockset_selector_, canvas_nav_, yaze::editor::CanvasNavigationContext::current_map, current_map_, yaze::editor::CanvasNavigationContext::current_map_lock, current_map_lock_, yaze::editor::CanvasNavigationContext::current_mode, current_mode, yaze::editor::CanvasNavigationContext::current_parent, current_parent_, yaze::editor::CanvasNavigationContext::current_tile16, current_tile16_, yaze::editor::CanvasNavigationContext::current_world, current_world_, yaze::editor::CanvasNavigationCallbacks::ensure_map_texture, EnsureMapTexture(), entity_renderer_, yaze::editor::CanvasNavigationContext::hovered_map, hovered_map_, yaze::editor::CanvasNavigationContext::is_dragging_entity, is_dragging_entity_, yaze::editor::CanvasNavigationCallbacks::is_entity_hovered, yaze::editor::CanvasNavigationContext::maps_bmp, maps_bmp_, yaze::editor::CanvasNavigationCallbacks::open_map_properties, OpenMapPropertiesWindow(), yaze::editor::CanvasNavigationContext::overworld, overworld_, yaze::editor::CanvasNavigationContext::ow_map_canvas, ow_map_canvas_, yaze::editor::CanvasNavigationCallbacks::pick_tile16_from_hovered_canvas, PickTile16FromHoveredCanvas(), yaze::editor::CanvasNavigationCallbacks::refresh_overworld_map, yaze::editor::CanvasNavigationCallbacks::refresh_tile16_blockset, RefreshOverworldMap(), RefreshTile16Blockset(), yaze::editor::CanvasNavigationContext::rom, rom_, yaze::editor::CanvasNavigationCallbacks::select_map_for_editing, SelectMapForEditing(), yaze::editor::CanvasNavigationContext::tile16_blockset, and tile16_blockset_.
Referenced by Initialize().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 1777 of file overworld_editor.cc.
References yaze::gfx::Arena::CREATE, yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::mutable_sprites(), overworld_, palette_, yaze::gfx::Arena::QueueTextureCommand(), and sprite_previews_.
Referenced by LoadGraphics().

|
private |
Create textures for deferred map bitmaps on demand.
Definition at line 1800 of file overworld_editor.cc.
References map_texture_.
Referenced by Update().
|
private |
Mark maps for a graphics rebuild when a sheet they use changed in the session's sheet store (an unsaved Graphics editor edit).
Definition at line 676 of file overworld_editor.cc.
References current_map_, ForceRefreshGraphics(), game_state_, yaze::zelda3::kNumOverworldMaps, maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), yaze::zelda3::Overworld::set_game_state(), and status_.
Referenced by OpenGraphicsForTile16Quadrant(), SelectMapForEditing(), and Update().
|
private |
Ensure a specific map has its texture created.
Definition at line 1814 of file overworld_editor.cc.
References map_texture_.
Referenced by AreaScreenBitmap(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), SelectMapForEditing(), and SwitchToWorld().
|
private |
Definition at line 942 of file overworld_editor.cc.
References map_texture_.
Referenced by SwitchToWorld().
|
private |
Definition at line 12 of file automation.cc.
References AutomationGetTile(), AutomationSetTile(), yaze::gui::Canvas::GetAutomationAPI(), ow_map_canvas_, and yaze::gui::CanvasAutomationAPI::SetTilePaintCallback().
Referenced by Initialize().

|
inlineprivate |
Definition at line 641 of file overworld_editor.h.
References ow_map_canvas_.
|
private |
Definition at line 25 of file automation.cc.
References current_map_, current_world_, yaze::gfx::GetTilemapData(), yaze::zelda3::Overworld::is_loaded(), overworld_, yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), yaze::zelda3::Overworld::SetTile(), tile16_blockset_, and tile_painting_.
Referenced by yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and SetupCanvasAutomation().
|
private |
Definition at line 54 of file automation.cc.
References current_map_, current_world_, yaze::zelda3::Overworld::GetTile(), yaze::zelda3::Overworld::is_loaded(), overworld_, yaze::zelda3::Overworld::set_current_map(), and yaze::zelda3::Overworld::set_current_world().
Referenced by yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and SetupCanvasAutomation().

|
private |
Definition at line 378 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_map_, FlushScratchPadIfDirty(), yaze::gfx::Arena::Get(), yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, MarkScratchSpaceDirty(), yaze::editor::OverworldEditor::ScratchSpace::name, overworld_, palette_, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_space_, yaze::gfx::Bitmap::SetPalette(), yaze::editor::OverworldEditor::ScratchSpace::tile_data, tile_painting_, UpdateScratchBitmapTile(), and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by DrawScratchSpace().
|
private |
Definition at line 421 of file scratch_space.cc.
References yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::util::logf(), yaze::editor::OverworldEditor::ScratchSpace::name, and scratch_space_.

|
private |
Definition at line 431 of file scratch_space.cc.
References FlushScratchPadIfDirty(), yaze::gfx::Arena::Get(), yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::gfx::Bitmap::is_active(), MarkScratchSpaceDirty(), yaze::gfx::Bitmap::mutable_data(), yaze::editor::OverworldEditor::ScratchSpace::name, yaze::gfx::Arena::QueueTextureCommand(), yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_space_, yaze::gfx::Bitmap::set_modified(), yaze::editor::OverworldEditor::ScratchSpace::tile_data, and yaze::gfx::Arena::UPDATE.
Referenced by DrawScratchSpace().
|
private |
Definition at line 256 of file scratch_space.cc.
References current_tile16_, yaze::gui::Canvas::drawn_tile_position(), yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, MarkScratchSpaceDirty(), yaze::editor::OverworldEditor::ScratchSpace::name, scratch_canvas_, scratch_space_, yaze::editor::OverworldEditor::ScratchSpace::tile_data, UpdateScratchBitmapTile(), and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by DrawScratchSpace().

|
private |
Definition at line 289 of file scratch_space.cc.
References yaze::editor::Editor::dependencies_, yaze::gui::Canvas::drawn_tile_position(), yaze::editor::SharedClipboard::has_overworld_tile16, yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, MarkScratchSpaceDirty(), yaze::editor::OverworldEditor::ScratchSpace::name, yaze::editor::SharedClipboard::overworld_height, yaze::editor::SharedClipboard::overworld_tile16_ids, yaze::editor::SharedClipboard::overworld_width, scratch_canvas_, scratch_space_, yaze::editor::EditorDependencies::shared_clipboard, yaze::editor::OverworldEditor::ScratchSpace::tile_data, UpdateScratchBitmapTile(), and yaze::editor::OverworldEditor::ScratchSpace::width.

|
private |
|
private |
Definition at line 338 of file scratch_space.cc.
References yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::gfx::Bitmap::height(), yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::gfx::Arena::QueueTextureCommand(), yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_space_, yaze::gfx::Bitmap::set_modified(), tile16_blockset_, yaze::gfx::Arena::UPDATE, yaze::gfx::Bitmap::width(), and yaze::gfx::Bitmap::WriteToPixel().
Referenced by DrawScratchSpaceEdits(), DrawScratchSpacePattern(), RebuildScratchBitmapFromTileData(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 46 of file scratch_space.cc.
References ASSIGN_OR_RETURN, yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::editor::OverworldEditor::ScratchSpace::name, RebuildScratchBitmapFromTileData(), scratch_space_, scratch_space_dirty_, yaze::editor::OverworldEditor::ScratchSpace::tile_data, and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by Load().

|
private |
Definition at line 90 of file scratch_space.cc.
References ASSIGN_OR_RETURN, yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::editor::OverworldEditor::ScratchSpace::name, scratch_space_, yaze::editor::OverworldEditor::ScratchSpace::tile_data, and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by FlushScratchPadIfDirty().
|
private |
Definition at line 118 of file scratch_space.cc.
References RETURN_IF_ERROR, SaveScratchPad(), and scratch_space_dirty_.
Referenced by ClearScratchSpace(), DrawScratchSpace(), and SaveCurrentSelectionToScratch().

|
private |
Definition at line 131 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), yaze::gfx::Arena::Get(), yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, map_blockset_loaded_, overworld_, palette_, yaze::gfx::Arena::QueueTextureCommand(), yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_space_, yaze::gfx::Bitmap::SetPalette(), yaze::editor::OverworldEditor::ScratchSpace::tile_data, UpdateScratchBitmapTile(), and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by LoadScratchPad().
|
private |
Definition at line 127 of file scratch_space.cc.
References scratch_space_dirty_.
Referenced by ClearScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 1430 of file overworld_editor.cc.
References current_paint_operation_, FinalizePaintOperation(), and yaze::editor::OverworldEditor::OverworldUndoPoint::map_id.
Referenced by InitTilePaintingManager().

|
private |
Definition at line 1454 of file overworld_editor.cc.
References current_paint_operation_, GetWorldTiles(), overworld_, yaze::editor::UndoManager::Push(), and yaze::editor::Editor::undo_manager_.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), CreateUndoPoint(), InitTilePaintingManager(), OpenGraphicsForTile16Quadrant(), Redo(), RenameProjectResourceLabelWithUndo(), SelectMapForEditing(), set_current_map(), SwitchToWorld(), and Undo().

|
private |
Definition at line 1419 of file overworld_editor.cc.
References yaze::zelda3::Overworld::mutable_map_tiles(), and overworld_.
Referenced by FinalizePaintOperation().

|
private |
Definition at line 1046 of file overworld_editor.cc.
References yaze::zelda3::Overworld::all_items(), yaze::editor::OverworldItemsSnapshot::items, overworld_, yaze::editor::OverworldItemsSnapshot::selected_item_identity, and selected_item_identity_.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), NudgeSelectedItem(), and PushItemUndoAction().

|
private |
Definition at line 1053 of file overworld_editor.cc.
References ClearSelectedItem(), current_entity_, yaze::editor::FindItemByIdentity(), GetWorkbench(), yaze::editor::OverworldItemsSnapshot::items, yaze::zelda3::Overworld::mutable_all_items(), overworld_, RefreshOverworldMap(), rom_, yaze::editor::OverworldItemsSnapshot::selected_item_identity, selected_item_identity_, and yaze::Rom::set_dirty().
Referenced by PushItemUndoAction().
|
private |
Definition at line 1083 of file overworld_editor.cc.
References CaptureItemUndoSnapshot(), yaze::editor::UndoManager::Push(), RestoreItemUndoSnapshot(), and yaze::editor::Editor::undo_manager_.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), and NudgeSelectedItem().

|
private |
Definition at line 1482 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), ASSIGN_OR_RETURN, yaze::editor::DescribeOverworldPropertyEdit(), FinalizePaintOperation(), is_lyra_preview(), map_properties_system_, yaze::editor::UndoManager::Push(), RETURN_IF_ERROR, yaze::editor::Editor::undo_manager_, and yaze::editor::OverworldPropertyEdit::value.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), and Initialize().
|
private |
Definition at line 1520 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), FinalizePaintOperation(), is_lyra_preview(), map_properties_system_, yaze::editor::UndoManager::Push(), RETURN_IF_ERROR, yaze::editor::Editor::undo_manager_, and yaze::editor::OverworldPropertyEdit::value.
Referenced by Initialize().

|
private |
Definition at line 1607 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, FinalizePaintOperation(), yaze::editor::GetProjectResourceLabel(), is_lyra_preview(), yaze::editor::EditorDependencies::project, yaze::editor::UndoManager::Push(), yaze::editor::RenameProjectResourceLabel(), RETURN_IF_ERROR, yaze::editor::Editor::type(), and yaze::editor::Editor::undo_manager_.
Referenced by Initialize().
|
friend |
Definition at line 135 of file overworld_editor.h.
|
friend |
Definition at line 515 of file overworld_editor.h.
| int yaze::editor::OverworldEditor::jump_to_tab_ = -1 |
Definition at line 208 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), jump_to_tab(), RequestJumpToEntrance(), RequestJumpToRoom(), and yaze::editor::SessionCoordinator::UpdateSessions().
|
private |
Definition at line 519 of file overworld_editor.h.
Referenced by CheckRomReplacement(), Clear(), and Load().
|
private |
Definition at line 520 of file overworld_editor.h.
Referenced by SyncProjectGraphicsPreview().
|
private |
Definition at line 697 of file overworld_editor.h.
Referenced by ContributeStatus(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawScratchSpace(), InitCanvasNavigationManager(), InitInteractionCoordinator(), InitTilePaintingManager(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SelectMapForEditing(), SetEditingMode(), and SetEntityEditMode().
|
private |
Definition at line 698 of file overworld_editor.h.
|
private |
Definition at line 699 of file overworld_editor.h.
Referenced by ContributeStatus(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitInteractionCoordinator(), SetEditingMode(), SetEntityEditMode(), and TryPlaceArmedItem().
|
private |
Definition at line 720 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), current_world_id(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), JumpToMap(), LoadGraphics(), NormalizeCurrentSelectionState(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SelectAdjacentMap(), SelectMapForEditing(), set_current_map(), SwitchToWorld(), and TryPlaceArmedItem().
|
private |
Definition at line 721 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), BuildContextSnapshot(), ContributeStatus(), current_map_id(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), LoadGraphics(), NormalizeCurrentSelectionState(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), RefreshMapsForSheetEdits(), SaveCurrentSelectionToScratch(), SelectAdjacentMap(), SelectMapForEditing(), set_current_map(), SwitchToWorld(), and Update().
|
private |
Definition at line 722 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), InitCanvasNavigationManager(), LoadGraphics(), NormalizeCurrentSelectionState(), SelectMapForEditing(), and set_current_map().
|
private |
Definition at line 723 of file overworld_editor.h.
Referenced by ContributeStatus(), hovered_map_id(), InitCanvasNavigationManager(), and SwitchToWorld().
|
private |
Definition at line 724 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator().
|
private |
Definition at line 725 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), game_state(), Initialize(), InitMapRefreshCoordinator(), LoadGraphics(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), RefreshMapsForSheetEdits(), SetPreviewStoryState(), and TryPlaceArmedItem().
|
private |
Definition at line 726 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), ContributeStatus(), Copy(), current_tile16_id(), CycleTileSelection(), DrawScratchSpaceEdits(), InitCanvasNavigationManager(), InitTilePaintingManager(), Load(), RequestTile16Selection(), and set_current_tile16().
|
private |
Definition at line 727 of file overworld_editor.h.
|
private |
Definition at line 728 of file overworld_editor.h.
|
private |
Definition at line 731 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), and InitTilePaintingManager().
|
private |
Definition at line 737 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), Load(), RebuildScratchBitmapFromTileData(), RequestTile16Selection(), SaveCurrentSelectionToScratch(), SelectMapForEditing(), SetPreviewStoryState(), and Update().
|
private |
Definition at line 738 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), InitMapRefreshCoordinator(), LoadGraphics(), RebuildScratchBitmapFromTileData(), RequestTile16Selection(), and SampleContextTile16().
|
private |
Selection requested before overworld gfx/blockset init; applied in Load() after Tile16Editor::Initialize.
Definition at line 742 of file overworld_editor.h.
Referenced by Clear(), Load(), and RequestTile16Selection().
|
private |
Definition at line 748 of file overworld_editor.h.
Referenced by ToggleCanvasFullscreen(), and Update().
|
private |
Definition at line 749 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager().
|
private |
Item state before an in-progress canvas drag (drag undo).
Definition at line 751 of file overworld_editor.h.
|
private |
Definition at line 752 of file overworld_editor.h.
|
private |
Definition at line 753 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), map_pinned(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SelectMapForEditing(), and ToggleMapLock().
|
private |
Definition at line 759 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 760 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 763 of file overworld_editor.h.
Referenced by Clear(), Initialize(), LoadGraphics(), and overlay_preview_enabled().
|
private |
Definition at line 764 of file overworld_editor.h.
Referenced by entities_visible(), and ToggleEntityVisibility().
|
private |
Definition at line 770 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), DrawMapProperties(), DrawOverworldCanvas(), DrawTile16Selector(), DrawTile8Selector(), DrawV3Settings(), and Initialize().
|
private |
Definition at line 771 of file overworld_editor.h.
Referenced by CenterOverworldView(), CheckForCurrentMap(), HandleMapInteraction(), InitCanvasNavigationManager(), JumpToMap(), LocateOverworldTile(), ResetOverworldView(), ScrollBlocksetCanvasToCurrentTile(), SelectAdjacentMap(), UpdateBlocksetSelectorState(), ZoomIn(), ZoomOut(), and ZoomToFit().
|
private |
Definition at line 772 of file overworld_editor.h.
Referenced by ActivateFillTool(), AutomationSetTile(), CheckForOverworldEdits(), Copy(), InitTilePaintingManager(), Paste(), PickTile16FromHoveredCanvas(), SaveCurrentSelectionToScratch(), tile_painting(), and ToggleBrushTool().
|
private |
Definition at line 773 of file overworld_editor.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 774 of file overworld_editor.h.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), entity_mutation_service(), Initialize(), and Update().
|
private |
Definition at line 775 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), and Update().
|
private |
Definition at line 776 of file overworld_editor.h.
Referenced by ForceRefreshGraphics(), InitMapRefreshCoordinator(), InvalidateGraphicsCache(), Load(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshOverworldMapOnDemand(), RefreshSiblingMapGraphics(), RefreshTile16Blockset(), and UpdateBlocksetWithPendingTileChanges().
|
private |
Definition at line 777 of file overworld_editor.h.
Referenced by EnsureMapTexture(), InitMapTextureCoordinator(), LoadGraphics(), PrimeWorldMaps(), and ProcessDeferredTextures().
|
private |
Definition at line 778 of file overworld_editor.h.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), Initialize(), Load(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), Update(), and ~OverworldEditor().
|
private |
Definition at line 779 of file overworld_editor.h.
Referenced by Initialize(), and ~OverworldEditor().
|
private |
Definition at line 780 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager(), Initialize(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), TryPlaceArmedItem(), and Update().
|
private |
Definition at line 781 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and Initialize().
|
private |
Definition at line 798 of file overworld_editor.h.
Referenced by ClearScratchSpace(), DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), LoadScratchPad(), LoadScratchToSelection(), RebuildScratchBitmapFromTileData(), SaveCurrentSelectionToScratch(), SaveScratchPad(), and UpdateScratchBitmapTile().
|
private |
Definition at line 799 of file overworld_editor.h.
Referenced by FlushScratchPadIfDirty(), LoadScratchPad(), and MarkScratchSpaceDirty().
|
private |
Definition at line 805 of file overworld_editor.h.
Referenced by AutomationSetTile(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), InitTilePaintingManager(), LoadGraphics(), tile16_blockset(), and UpdateScratchBitmapTile().
|
private |
Definition at line 807 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), DeleteSelectedItem(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DuplicateSelectedItem(), GetRomStatus(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitTilePaintingManager(), IsRomLoaded(), Load(), LoadGraphics(), NotifyEntityModified(), NudgeSelectedItem(), OpenGraphicsForTile16Quadrant(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), RequestTile16Selection(), RestoreItemUndoSnapshot(), rom(), Save(), Update(), and UpdateGfxGroupEditor().
|
private |
Definition at line 808 of file overworld_editor.h.
Referenced by Load(), OpenGraphicsForTile16Quadrant(), and SetGameData().
|
private |
Definition at line 809 of file overworld_editor.h.
Referenced by Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), and LoadGraphics().
|
private |
Definition at line 812 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator(), InitTilePaintingManager(), Load(), RequestTile16Selection(), SetGameData(), tile16_editor(), and tile16_editor().
|
private |
Definition at line 813 of file overworld_editor.h.
Referenced by Initialize(), OverworldEditor(), PrepareForSessionTeardown(), SetDependencies(), SetGameData(), SetMainGraphicsUsageCallback(), SetRoomsetGraphicsUsageCallback(), and UpdateGfxGroupEditor().
|
private |
Definition at line 814 of file overworld_editor.h.
|
private |
Definition at line 820 of file overworld_editor.h.
Referenced by DrawScratchSpace(), InitMapRefreshCoordinator(), Load(), LoadGraphics(), LoadSpriteGraphics(), RebuildScratchBitmapFromTileData(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 821 of file overworld_editor.h.
|
private |
Definition at line 822 of file overworld_editor.h.
Referenced by Load(), and LoadGraphics().
|
private |
Definition at line 823 of file overworld_editor.h.
Referenced by current_gfx_bmp_for_testing(), InitMapRefreshCoordinator(), Load(), and LoadGraphics().
|
private |
Definition at line 824 of file overworld_editor.h.
|
private |
Definition at line 825 of file overworld_editor.h.
Referenced by AreaScreenBitmap(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), map_bitmap(), RefreshMapsForSheetEdits(), and SyncProjectGraphicsPreview().
|
private |
Definition at line 826 of file overworld_editor.h.
Referenced by Clear(), and InitMapRefreshCoordinator().
|
private |
Definition at line 827 of file overworld_editor.h.
Referenced by Initialize(), and LoadSpriteGraphics().
|
private |
Definition at line 833 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), BeginSaveTransaction(), BuildContextSnapshot(), CaptureItemUndoSnapshot(), CheckRomReplacement(), Clear(), CommitSaveTransaction(), DeleteSelectedItem(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawScratchSpace(), DuplicateSelectedItem(), FinalizePaintOperation(), GetSelectedItem(), GetWorldTiles(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), is_lyra_preview(), JumpToMap(), Load(), LoadGraphics(), LoadSpriteGraphics(), NormalizeCurrentSelectionState(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), overworld(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), RebuildScratchBitmapFromTileData(), RefreshMapsForSheetEdits(), RestoreItemUndoSnapshot(), RollbackSaveTransaction(), SampleContextTile16(), Save(), SaveCurrentSelectionToScratch(), SelectAdjacentMap(), SelectItemByIdentity(), SelectMapForEditing(), set_current_map(), SetGameData(), SetPreviewStoryState(), SwitchToWorld(), SyncProjectGraphicsPreview(), TryPlaceArmedItem(), and Update().
|
private |
Definition at line 834 of file overworld_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), and RollbackSaveTransaction().
|
private |
Definition at line 835 of file overworld_editor.h.
|
private |
Definition at line 841 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 843 of file overworld_editor.h.
Referenced by ClearSelectedItem(), current_entity(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), SelectItemByIdentity(), SetCurrentEntity(), and SetPreviewStoryState().
|
private |
Definition at line 844 of file overworld_editor.h.
|
private |
Definition at line 845 of file overworld_editor.h.
Referenced by CaptureItemUndoSnapshot(), ClearSelectedItem(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), selected_item_identity(), SelectItemByIdentity(), and SetCurrentEntity().
|
private |
Definition at line 846 of file overworld_editor.h.
|
private |
Definition at line 849 of file overworld_editor.h.
Referenced by edit_entrance().
|
private |
Definition at line 850 of file overworld_editor.h.
Referenced by edit_exit().
|
private |
Definition at line 851 of file overworld_editor.h.
Referenced by edit_item().
|
private |
Definition at line 852 of file overworld_editor.h.
Referenced by edit_sprite().
|
private |
Definition at line 855 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), HandleEntityInsertion(), Load(), TakePendingEntityInsertion(), and TryPlaceArmedItem().
|
private |
Definition at line 856 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and RequestItemInsertPopup().
|
private |
Definition at line 857 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and RequestItemInsertPopup().
|
private |
Definition at line 858 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and TryPlaceArmedItem().
|
private |
Definition at line 859 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and TryPlaceArmedItem().
|
private |
Definition at line 860 of file overworld_editor.h.
Referenced by insert_error().
|
private |
Definition at line 866 of file overworld_editor.h.
Referenced by ContributeStatus(), DrawScratchSpace(), GetOverworldCanvas(), grid_visible(), InitCanvasNavigationManager(), Initialize(), InitTilePaintingManager(), Load(), yaze::editor::OverworldCanvasRenderer::OverworldCanvasRenderer(), ow_map_canvas(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SetEditingMode(), SetEntityEditMode(), SetupCanvasAutomation(), ToggleGrid(), TryPlaceArmedItem(), and ~OverworldEditor().
|
private |
Definition at line 868 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 870 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 872 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager().
|
private |
Definition at line 873 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 875 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 876 of file overworld_editor.h.
Referenced by DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), and ~OverworldEditor().
|
private |
Definition at line 883 of file overworld_editor.h.
Referenced by Initialize(), and usage_stats_card().
|
private |
Definition at line 884 of file overworld_editor.h.
Referenced by debug_window_card(), and Initialize().
|
private |
Definition at line 886 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), InitMapRefreshCoordinator(), Load(), OpenGraphicsForContextTile16(), RefreshMapsForSheetEdits(), SelectMapForEditing(), SetPreviewStoryState(), SwitchToWorld(), and Update().
|
private |
Definition at line 892 of file overworld_editor.h.
Referenced by CreateUndoPoint(), FinalizePaintOperation(), and Load().
|
private |
Definition at line 898 of file overworld_editor.h.
Referenced by Clear(), Load(), and ~OverworldEditor().