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

Classes | |
| struct | OverworldUndoPoint |
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::StatusOr< int > | ApplyTile16Stencil (int map_id, const std::vector< GuardedTileCell > &cells) |
Select map_id and apply a guarded stencil as one undoable paint. | |
| absl::Status | Find () override |
| absl::Status | Save () override |
| absl::Status | BeginSaveTransaction () override |
| void | RollbackSaveTransaction () override |
| void | CommitSaveTransaction () override |
| absl::Status | Clear () override |
| bool | HasPendingProjectDraftChanges () const |
| bool | HasUnpublishedProjectGraphics () const |
| absl::Status | OpenProjectGraphicsSource () |
| absl::StatusOr< ProjectGraphicsImportPlan > | PreviewProjectGraphicsImport (const std::string &pack, const ProjectGraphicsImportBindings &bindings) |
| absl::Status | ApplyProjectGraphicsImport (const std::string &pack, const ProjectGraphicsImportBindings &bindings) |
| absl::Status | PlaceProjectGraphicsImport (int world_x, int world_y) |
| absl::Status | PublishProjectGraphicsSource () |
| void | SetProjectContextProvider (std::function< project::YazeProject *()> provider) |
| absl::Status | PrepareProjectSave () |
| void | ProjectSaveCommitted () |
| void | ContributeStatus (StatusBar *status_bar) override |
| void | DrawEditorMenu () override |
| void | DrawEditMenuItems () 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 |
| absl::Status | EditProjectMapAuthoring (core::LyraAuthoringState after) |
| absl::Status | CreateLyraTerrain () |
| absl::Status | OpenLyraTerrain (const std::string &path) |
| absl::Status | SaveProjectTerrainAs (project::YazeProject *project, const std::string &project_path) |
| int | DisplayedMapCount () const |
| bool | IsProjectTerrainMap (int map_id) const |
| bool | is_lyra_preview () const |
| bool | lyra_a0_terrain_writable () const |
| absl::Status | PaintLyraA0Terrain (int map_id, int x, int y, uint16_t tile) |
| absl::Status | SaveLyraA0TerrainAs (const std::string &filename) |
| 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. | |
| absl::Status | ApplyEntranceEdit (zelda3::OverworldEntrance *target, const zelda3::OverworldEntrance &draft) |
| absl::Status | ApplyExitEdit (zelda3::OverworldExit *target, const zelda3::OverworldExit &draft) |
| 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 | SetSelectionBrush (TileBrush brush) |
| void | ClearSelectionBrush () |
| const TileBrush * | selection_brush () const |
| int | GetTile16UsageCount (int tile_id) const |
| std::string | GetTile16ScopeLabel () const |
| 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 () |
| bool | Tile16MenuEnabled () const |
| 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, int map_count=zelda3::kNumOverworldMaps) |
| Clamp a possibly stale world/map selection back into a valid overworld range. | |
Public Attributes | |
| int | jump_to_tab_ = -1 |
| int | jump_to_entrance_ = -1 |
| LyraTerrainCanvas | lyra_canvas_ |
| absl::Status | lyra_canvas_status_ |
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 | |
| void | FocusLyraTerrain () |
| project::YazeProject * | TerrainProject () const |
| void | DrawProjectGraphicsSource () |
| void | DrawProjectGraphicsImport () |
| std::string | ProjectGraphicsPath () const |
| absl::Status | ReloadProjectGraphics () |
| absl::Status | RefreshPendingProjectGraphics () |
| absl::StatusOr< ProjectGraphicsImportContext > | GraphicsImportContext () |
| 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 () |
| void | BeginScratchEdit () |
| void | FinishScratchEdit (const std::string &description) |
| absl::Status | RestoreScratchState (const ScratchWorkspaceState &state) |
| 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 | OverworldScratchTestPeer |
| class | AuthoringSaveWorkflowTestPeer |
| class | ProjectGraphicsImportSaveTestPeer |
| class | ProjectGraphicsImportWorkflowTestPeer |
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 139 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 813 of file overworld_editor.h.
|
inlineexplicit |
Definition at line 148 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 156 of file overworld_editor.h.
References yaze::editor::Editor::dependencies_.
|
override |
Definition at line 152 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 161 of file overworld_editor.h.
References gfx_group_editor_, and yaze::editor::GfxGroupEditor::SetMainUsageCallback().

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

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

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 173 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 178 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 198 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), canvas_renderer_, CenterOverworldView(), current_map_, debug_window_card_, yaze::editor::Editor::dependencies_, yaze::editor::LyraTerrainCanvas::DrawProperties(), entities_visible(), entity_mutation_service_, yaze::editor::LyraTerrainCanvas::entity_placement_active(), 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(), yaze::editor::LyraTerrainCanvas::loaded(), lyra_canvas_, 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_entities_, show_overlay_preview_, sidebar_, sprite_previews_, SwitchToWorld(), ToggleEntityVisibility(), ToggleGrid(), toolbar_, yaze::editor::Editor::type(), yaze::editor::Editor::undo_manager_, 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 592 of file overworld_editor.cc.
References all_gfx_loaded_, ASSIGN_OR_RETURN, yaze::editor::Tile16Editor::BindDocument(), canvas_nav_, yaze::editor::UndoManager::Clear(), yaze::editor::Tile16Editor::ClearCollisionTypes(), yaze::gui::Canvas::ClearContextMenuItems(), yaze::util::ComputeSha1Hex(), current_gfx_bmp_, current_map_, current_paint_operation_, current_tile16_, yaze::Rom::data(), yaze::editor::Editor::dependencies_, yaze::editor::LyraTerrainCanvas::dirty(), entrance_tiletypes_, game_data_, yaze::gfx::Arena::Get(), yaze::gfx::PaletteManager::Get(), GetTile16ScopeLabel(), GetTile16UsageCount(), yaze::zelda3::Overworld::GetTile8CollisionTypes(), graphics_import_applied_, graphics_import_asset_, graphics_import_plan_, graphics_source_, graphics_source_open_, graphics_source_project_, HandleEntityInsertion(), HandleTile16Edit(), hovered_map_, yaze::editor::Tile16Editor::Initialize(), yaze::Rom::InspectLyraLayout(), yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::Overworld::is_lyra_preview(), IsProjectTerrainMap(), yaze::rom::kInvalid, yaze::rom::kValid, yaze::editor::LyraTerrainCanvas::Load(), yaze::zelda3::LoadEntranceTileTypes(), LoadGraphics(), LoadScratchPad(), LOG_DEBUG, LOG_WARN, lyra_canvas_, lyra_canvas_status_, 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(), SelectMapForEditing(), yaze::editor::Tile16Editor::set_on_current_tile_changed(), yaze::editor::Tile16Editor::set_on_document_changed(), yaze::editor::Tile16Editor::set_palette(), yaze::editor::Tile16Editor::SetCollisionTypes(), yaze::editor::Tile16Editor::SetHoverDetailProvider(), yaze::editor::Tile16Editor::SetOpenGraphicsForQuadrant(), yaze::editor::Tile16Editor::SetRom(), yaze::Rom::size(), status_, TerrainProject(), 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 809 of file overworld_editor.cc.
References all_gfx_loaded_, Clear(), current_map_, yaze::editor::Editor::dependencies_, yaze::gui::DrawEmptyState(), DrawProjectGraphicsSource(), 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(), IsProjectTerrainMap(), 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 1901 of file overworld_editor.cc.
References FinalizePaintOperation(), FinishScratchEdit(), yaze::editor::LyraTerrainCanvas::FinishStroke(), is_lyra_preview(), lyra_a0_terrain_writable(), lyra_canvas_, yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.
Referenced by InitInteractionCoordinator().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1912 of file overworld_editor.cc.
References FinalizePaintOperation(), FinishScratchEdit(), yaze::editor::LyraTerrainCanvas::FinishStroke(), is_lyra_preview(), lyra_a0_terrain_writable(), lyra_canvas_, yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.
Referenced by InitInteractionCoordinator().
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 194 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1431 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 1455 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_.

| absl::StatusOr< int > yaze::editor::OverworldEditor::ApplyTile16Stencil | ( | int | map_id, |
| const std::vector< GuardedTileCell > & | cells ) |
Select map_id and apply a guarded stencil as one undoable paint.
Definition at line 1474 of file overworld_editor.cc.
References current_map_, yaze::zelda3::Overworld::is_loaded(), is_lyra_preview(), IsProjectTerrainMap(), yaze::zelda3::kNumOverworldMaps, overworld_, SelectMapForEditing(), and tile_painting_.

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 200 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1543 of file overworld_editor.cc.
References yaze::zelda3::ApplyOverworldSpriteSave(), ASSIGN_OR_RETURN, yaze::Rom::AttachLyraPrivateReservation(), yaze::Rom::CheckLayoutWritable(), yaze::ScopedRomTransaction::Commit(), yaze::zelda3::Overworld::CreateTile32Tilemap(), yaze::editor::Editor::dependencies_, yaze::zelda3::DetectOverworldRomProfile(), FinishScratchEdit(), FlushScratchPadIfDirty(), yaze::core::FeatureFlags::get(), yaze::zelda3::Overworld::GetProjectedWriteRanges(), graphics_source_, yaze::project::YazeProject::hack_manifest, yaze::core::FeatureFlags::Flags::Overworld::kSaveOverworldMaps, yaze::core::FeatureFlags::Flags::Overworld::kSaveOverworldSprites, 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(), yaze::zelda3::Overworld::ValidatePrivateNativeTerrainSave(), and yaze::project::RomMetadata::write_policy.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1517 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 1527 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 1535 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 2306 of file overworld_editor.cc.
References all_gfx_loaded_, current_graphics_set_, yaze::zelda3::Overworld::Destroy(), yaze::gfx::Arena::Get(), graphics_import_applied_, graphics_import_asset_, graphics_import_pack_, graphics_import_plan_, graphics_preview_baseline_, graphics_preview_config_path_, graphics_source_, graphics_source_open_, graphics_source_project_, is_lyra_preview(), lyra_canvas_, lyra_loaded_rom_sha1_, map_blockset_loaded_, overworld_, palette_listener_id_, pending_tile16_selection_after_gfx_, yaze::editor::LyraTerrainCanvas::Reset(), show_overlay_preview_, and yaze::gfx::Arena::UnregisterPaletteListener().
Referenced by Update().
|
inline |
Definition at line 206 of file overworld_editor.h.
References yaze::editor::LyraTerrainCanvas::dirty(), graphics_source_, lyra_canvas_, and scratch_space_dirty_.

|
inline |
Definition at line 210 of file overworld_editor.h.
References graphics_source_.
| absl::Status yaze::editor::OverworldEditor::OpenProjectGraphicsSource | ( | ) |
Definition at line 14 of file project_graphics_source_ui.cc.
References current_map_, graphics_import_applied_, graphics_source_, graphics_source_open_, graphics_source_project_, graphics_source_tile_, is_lyra_preview(), IsProjectTerrainMap(), overworld_, yaze::zelda3::Overworld::overworld_map(), ProjectGraphicsPath(), and TerrainProject().
Referenced by DrawAreaGraphics().
| absl::StatusOr< ProjectGraphicsImportPlan > yaze::editor::OverworldEditor::PreviewProjectGraphicsImport | ( | const std::string & | pack, |
| const ProjectGraphicsImportBindings & | bindings ) |
Definition at line 143 of file project_graphics_import_controller.cc.
References yaze::editor::ProjectGraphicsImportBindings::anchor_x, yaze::editor::ProjectGraphicsImportBindings::anchor_y, ASSIGN_OR_RETURN, yaze::editor::Editor::context(), yaze::zelda3::Overworld::GetMapTiles(), graphics_source_, GraphicsImportContext(), yaze::zelda3::kNumOverworldMaps, yaze::editor::LoadProjectGraphicsImport(), yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, yaze::zelda3::PaletteAddressGroupName(), yaze::editor::PlanProjectGraphicsImport(), RETURN_IF_ERROR, yaze::zelda3::Overworld::SyncAreaProperties(), yaze::editor::ProjectGraphicsImportBindings::target_resource, and yaze::zelda3::Overworld::tiles16().
Referenced by ApplyProjectGraphicsImport(), DrawProjectGraphicsImport(), and PlaceProjectGraphicsImport().
| absl::Status yaze::editor::OverworldEditor::ApplyProjectGraphicsImport | ( | const std::string & | pack, |
| const ProjectGraphicsImportBindings & | bindings ) |
Definition at line 222 of file project_graphics_import_controller.cc.
References ASSIGN_OR_RETURN, yaze::editor::CreateProjectGraphicsImportAction(), yaze::Rom::dirty(), FinalizePaintOperation(), game_data_, graphics_import_applied_, graphics_import_applied_bindings_, graphics_import_bindings_, graphics_import_pack_, graphics_import_plan_, graphics_import_ranges_reviewed_, graphics_source_, yaze::editor::Tile16Editor::PrepareDefinitionImport(), PreviewProjectGraphicsImport(), yaze::editor::UndoManager::Push(), RefreshPendingProjectGraphics(), rom_, yaze::Rom::set_dirty(), TerrainProject(), tile16_editor_, and yaze::editor::Editor::undo_manager_.
Referenced by DrawProjectGraphicsImport().
| absl::Status yaze::editor::OverworldEditor::PlaceProjectGraphicsImport | ( | int | world_x, |
| int | world_y ) |
Definition at line 292 of file project_graphics_import_controller.cc.
References ASSIGN_OR_RETURN, graphics_import_applied_, graphics_import_applied_bindings_, graphics_import_pack_, graphics_source_, overworld_, PreviewProjectGraphicsImport(), yaze::editor::ProjectGraphicsImportBindings::target_resource, tile_painting_, and yaze::zelda3::Overworld::tiles16().
Referenced by DrawProjectGraphicsImport().

| absl::Status yaze::editor::OverworldEditor::PublishProjectGraphicsSource | ( | ) |
Definition at line 104 of file project_graphics_import_controller.cc.
References ASSIGN_OR_RETURN, graphics_source_, and ReloadProjectGraphics().

|
inline |
Definition at line 220 of file overworld_editor.h.
References project_context_provider_.
| absl::Status yaze::editor::OverworldEditor::PrepareProjectSave | ( | ) |
Definition at line 968 of file overworld_editor.cc.
References FinishScratchEdit(), yaze::editor::LyraTerrainCanvas::FinishStroke(), FlushScratchPadIfDirty(), graphics_source_, lyra_canvas_, overworld_, RETURN_IF_ERROR, yaze::editor::LyraTerrainCanvas::Save(), TerrainProject(), and yaze::editor::Editor::undo_manager_.
|
inline |
Definition at line 225 of file overworld_editor.h.
References lyra_canvas_, and yaze::editor::LyraTerrainCanvas::ProjectSaveCommitted().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2635 of file overworld_editor.cc.
References yaze::editor::StatusBar::ClearCustomSegment(), 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(), yaze::gui::Canvas::global_scale(), yaze::gui::Canvas::hover_mouse_pos(), 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 2480 of file overworld_editor.cc.
References yaze::editor::ScratchWorkspace::AddPage(), BeginScratchEdit(), ClearScratchSpace(), yaze::editor::ScratchWorkspace::current(), yaze::editor::ScratchWorkspace::DeletePage(), yaze::editor::Editor::dependencies_, yaze::editor::Tile16Editor::DrawOverworldMenuItems(), entity_edit_mode_, yaze::editor::ENTRANCES, yaze::editor::EXITS, FinishScratchEdit(), yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::ITEMS, yaze::editor::OverworldPanelIds::kDebugWindow, yaze::editor::OverworldPanelIds::kMapProperties, yaze::editor::ScratchWorkspace::kMaxPages, yaze::editor::OverworldPanelIds::kUsageStats, LoadScratchToSelection(), MarkScratchSpaceDirty(), yaze::editor::NONE, OpenMapPropertiesWindow(), yaze::editor::ScratchWorkspaceState::pages, RebuildScratchBitmapFromTileData(), SaveCurrentSelectionToScratch(), scratch_workspace_, yaze::editor::ScratchWorkspace::Select(), yaze::editor::ScratchWorkspaceState::selected_id, selection_brush(), SetEntityEditMode(), show_entities_, yaze::editor::SPRITES, yaze::editor::ScratchWorkspace::state(), tile16_editor_, Tile16MenuEnabled(), ToggleItemListWindow(), ToggleTile16EditorWindow(), and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2619 of file overworld_editor.cc.
References yaze::editor::Tile16Editor::DrawEditMenuItems(), tile16_editor_, and Tile16MenuEnabled().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2700 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 232 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 2064 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 238 of file overworld_editor.h.
References jump_to_tab_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 248 of file overworld_editor.h.
References yaze::Rom::is_loaded(), and rom_.

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

|
inline |
Definition at line 257 of file overworld_editor.h.
References rom_.
Referenced by OverworldEditor().
|
inline |
Definition at line 258 of file overworld_editor.h.
References yaze::editor::LyraTerrainCanvas::EditAuthoring(), lyra_canvas_, overworld_, and yaze::editor::Editor::undo_manager_.

| absl::Status yaze::editor::OverworldEditor::CreateLyraTerrain | ( | ) |
Definition at line 978 of file overworld_editor.cc.
References yaze::editor::UndoManager::Clear(), yaze::editor::LyraTerrainCanvas::Create(), yaze::editor::LyraTerrainCanvas::document(), FocusLyraTerrain(), lyra_canvas_, lyra_canvas_status_, overworld_, RETURN_IF_ERROR, TerrainProject(), and yaze::editor::Editor::undo_manager_.
| absl::Status yaze::editor::OverworldEditor::OpenLyraTerrain | ( | const std::string & | path | ) |
Definition at line 988 of file overworld_editor.cc.
References yaze::editor::UndoManager::Clear(), yaze::editor::LyraTerrainCanvas::document(), FocusLyraTerrain(), lyra_canvas_, lyra_canvas_status_, yaze::editor::LyraTerrainCanvas::Open(), overworld_, RETURN_IF_ERROR, TerrainProject(), and yaze::editor::Editor::undo_manager_.
| absl::Status yaze::editor::OverworldEditor::SaveProjectTerrainAs | ( | project::YazeProject * | project, |
| const std::string & | project_path ) |
Definition at line 998 of file overworld_editor.cc.
References yaze::editor::LyraTerrainCanvas::FinishStroke(), graphics_source_, lyra_canvas_, overworld_, yaze::editor::Editor::project(), yaze::editor::LyraTerrainCanvas::SaveAs(), and yaze::editor::Editor::undo_manager_.
Referenced by yaze::editor::EditorManager::SaveProjectAs().

| int yaze::editor::OverworldEditor::DisplayedMapCount | ( | ) | const |
Definition at line 171 of file overworld_editor.cc.
References yaze::zelda3::Overworld::inspected_map_count(), IsProjectTerrainMap(), yaze::zelda3::kExpandedMapCount, and overworld_.
Referenced by InitCanvasNavigationManager(), JumpToMap(), NormalizeCurrentSelectionState(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SelectAdjacentMap(), SelectMapForEditing(), set_current_map(), and SwitchToWorld().

| bool yaze::editor::OverworldEditor::IsProjectTerrainMap | ( | int | map_id | ) | const |
Definition at line 176 of file overworld_editor.cc.
References yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::Overworld::is_lyra_preview(), yaze::editor::LyraTerrainCanvas::loaded(), lyra_canvas_, and overworld_.
Referenced by ApplyTile16Stencil(), DisplayedMapCount(), EnsureMapTexture(), ForceRefreshGraphics(), GraphicsImportContext(), InitCanvasNavigationManager(), Load(), NormalizeCurrentSelectionState(), OpenProjectGraphicsSource(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshOverworldMapOnDemand(), RefreshSiblingMapGraphics(), RefreshTile16Blockset(), SelectMapForEditing(), set_current_map(), SetEntityEditMode(), SwitchToWorld(), Update(), and UpdateBlocksetWithPendingTileChanges().

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

|
inline |
Definition at line 275 of file overworld_editor.h.
References yaze::zelda3::Overworld::lyra_a0_terrain_writable(), and overworld_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), PaintLyraA0Terrain(), Redo(), SaveLyraA0TerrainAs(), and Undo().

| absl::Status yaze::editor::OverworldEditor::PaintLyraA0Terrain | ( | int | map_id, |
| int | x, | ||
| int | y, | ||
| uint16_t | tile ) |
Definition at line 1632 of file overworld_editor.cc.
References EnsureMapTexture(), lyra_a0_terrain_writable(), yaze::zelda3::Overworld::lyra_a0_tiles(), maps_bmp_, overworld_, yaze::editor::UndoManager::Push(), RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), yaze::zelda3::Overworld::SetLyraA0Tile32(), and yaze::editor::Editor::undo_manager_.
| absl::Status yaze::editor::OverworldEditor::SaveLyraA0TerrainAs | ( | const std::string & | filename | ) |
Definition at line 1657 of file overworld_editor.cc.
References yaze::util::ComputeSha1Hex(), yaze::Rom::data(), yaze::editor::Editor::dependencies_, yaze::project::YazeProject::hack_manifest, yaze::rom::kLyraA0HighStreamPc, yaze::rom::kLyraA0LowStreamPc, yaze::core::HackManifest::loaded(), lyra_a0_terrain_writable(), yaze::zelda3::Overworld::lyra_a0_tiles(), lyra_loaded_rom_sha1_, overworld_, yaze::editor::EditorDependencies::project, RETURN_IF_ERROR, rom_, yaze::project::YazeProject::rom_metadata, yaze::Rom::SaveLyraA0TerrainAs(), yaze::Rom::size(), yaze::editor::EditorDependencies::toast_manager, yaze::editor::ValidateHackManifestSaveConflicts(), and yaze::project::RomMetadata::write_policy.
| absl::Status yaze::editor::OverworldEditor::CheckRomReplacement | ( | const Rom & | replacement | ) | const |
Definition at line 578 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 283 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 181 of file overworld_editor.cc.
References yaze::zelda3::kExpandedMapCount.
Referenced by NormalizeCurrentSelectionState().
|
inline |
Set the current map for editing (also updates world)
Definition at line 291 of file overworld_editor.h.
References current_map_, current_parent_, current_world_, DisplayedMapCount(), FinalizePaintOperation(), yaze::editor::LyraTerrainCanvas::FinishStroke(), IsProjectTerrainMap(), lyra_canvas_, overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), and yaze::editor::Editor::undo_manager_.
Referenced by JumpToMap(), yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and SetCurrentMap().
|
inline |
Definition at line 310 of file overworld_editor.h.
References set_current_map().

| void yaze::editor::OverworldEditor::SelectMapForEditing | ( | int | map_id, |
| bool | respect_pin = true ) |
Definition at line 1048 of file overworld_editor.cc.
References all_gfx_loaded_, current_map_, current_map_lock_, current_mode, current_parent_, current_world_, DisplayedMapCount(), yaze::editor::DRAW_TILE, yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), entity_edit_mode_, yaze::editor::FILL_TILE, FinalizePaintOperation(), yaze::editor::LyraTerrainCanvas::FinishStroke(), yaze::zelda3::Overworld::is_lyra_preview(), IsProjectTerrainMap(), lyra_canvas_, yaze::editor::NONE, overworld_, yaze::zelda3::Overworld::overworld_map(), PRINT_IF_ERROR, RefreshMapProperties(), RefreshMapsForSheetEdits(), RefreshTile16Blockset(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), SetCurrentEntity(), status_, and yaze::editor::Editor::undo_manager_.
Referenced by ApplyTile16Stencil(), FocusLyraTerrain(), InitCanvasNavigationManager(), Initialize(), InitTilePaintingManager(), JumpToMap(), Load(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), SelectAdjacentMap(), and SwitchToWorld().
|
inline |
Definition at line 313 of file overworld_editor.h.
References current_tile16_.
|
inline |
Definition at line 314 of file overworld_editor.h.
References current_tile16_.
| absl::Status yaze::editor::OverworldEditor::OpenGraphicsForTile16Quadrant | ( | int | tile16_id, |
| int | quadrant ) |
Definition at line 2124 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::gfx::TileInfoToWord(), yaze::zelda3::Overworld::tiles16(), yaze::editor::UpdateGraphicsContextPalettes(), yaze::editor::usage_preview::PreviewImage::width, yaze::editor::EditorDependencies::window_manager, and yaze::zelda3::WorldForOverworldMap().
Referenced by Load(), and OpenGraphicsForContextTile16().
| absl::Status yaze::editor::OverworldEditor::OpenGraphicsForContextTile16 | ( | const OverworldContextTarget & | target | ) |
Definition at line 100 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 322 of file overworld_editor.h.
References tile_painting_.
|
inline |
Definition at line 325 of file overworld_editor.h.
References yaze::gfx::Bitmap::at(), and maps_bmp_.

|
inline |
Definition at line 328 of file overworld_editor.h.
References current_map_lock_.
|
inline |
Definition at line 329 of file overworld_editor.h.
References current_map_.
|
inline |
Definition at line 330 of file overworld_editor.h.
References current_world_.
|
inline |
Definition at line 331 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 1938 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 1924 of file overworld_editor.cc.
References ASSIGN_OR_RETURN, graphics_preview_baseline_, graphics_preview_config_path_, yaze::core::LoadOverworldGraphicsPreview(), overworld_, ProjectGraphicsPath(), RefreshPendingProjectGraphics(), and yaze::zelda3::Overworld::SetGraphicsPreview().
Referenced by LoadGraphics(), OpenGraphicsForTile16Quadrant(), ReloadProjectGraphics(), and Update().

| void yaze::editor::OverworldEditor::SetCurrentEntity | ( | zelda3::GameEntity * | entity | ) |
Set the currently active entity for editing.
Definition at line 559 of file overworld_editor.cc.
References current_entity_, yaze::zelda3::GameEntity::entity_type_, yaze::zelda3::GameEntity::kItem, and selected_item_identity_.
Referenced by SelectMapForEditing(), and SetPreviewStoryState().
|
inline |
Definition at line 353 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 572 of file overworld_editor.cc.
References rom_, and yaze::Rom::set_dirty().
Referenced by ApplyEntranceEdit(), and ApplyExitEdit().

| absl::Status yaze::editor::OverworldEditor::ApplyEntranceEdit | ( | zelda3::OverworldEntrance * | target, |
| const zelda3::OverworldEntrance & | draft ) |
Definition at line 107 of file entity_workbench.cc.
References ASSIGN_OR_RETURN, yaze::editor::BuildOverworldEntranceEdit(), current_entity_, yaze::zelda3::DetectOverworldRomProfile(), edit_entrance_, yaze::zelda3::OverworldRomProfile::has_expanded_entrances, yaze::zelda3::Overworld::is_lyra_preview(), yaze::zelda3::Overworld::mutable_entrances(), yaze::zelda3::Overworld::mutable_holes(), NotifyEntityModified(), overworld_, rom_, and yaze::editor::Editor::undo_manager_.
| absl::Status yaze::editor::OverworldEditor::ApplyExitEdit | ( | zelda3::OverworldExit * | target, |
| const zelda3::OverworldExit & | draft ) |
Definition at line 139 of file entity_workbench.cc.
References ASSIGN_OR_RETURN, yaze::editor::BuildOverworldExitEdit(), current_entity_, edit_exit_, yaze::zelda3::Overworld::is_lyra_preview(), yaze::zelda3::Overworld::mutable_exits(), NotifyEntityModified(), overworld_, and yaze::editor::Editor::undo_manager_.

| void yaze::editor::OverworldEditor::OpenEntityEditor | ( | zelda3::GameEntity * | entity | ) |
|
inline |
Trigger a jump to a dungeon room.
Definition at line 364 of file overworld_editor.h.
References jump_to_tab_.
|
inline |
Trigger a jump to a dungeon entrance.
Definition at line 367 of file overworld_editor.h.
References jump_to_entrance_.
Referenced by InitInteractionCoordinator().
|
inline |
Access the entity mutation service.
Definition at line 372 of file overworld_editor.h.
References entity_mutation_service_.
|
inline |
Definition at line 376 of file overworld_editor.h.
References edit_entrance_.
|
inline |
Definition at line 377 of file overworld_editor.h.
References edit_exit_.
|
inline |
Definition at line 378 of file overworld_editor.h.
References edit_item_.
|
inline |
Definition at line 379 of file overworld_editor.h.
References edit_sprite_.
|
inline |
Definition at line 381 of file overworld_editor.h.
References pending_entity_insertion_.
|
inline |
Definition at line 386 of file overworld_editor.h.
References insert_error_.
|
inline |
Definition at line 388 of file overworld_editor.h.
References ow_map_canvas_.
|
inline |
Definition at line 389 of file overworld_editor.h.
References game_state_.
| void yaze::editor::OverworldEditor::SetPreviewStoryState | ( | int | state | ) |
Definition at line 762 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::SetSelectionBrush | ( | TileBrush | brush | ) |
Definition at line 2803 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::SharedClipboard::has_overworld_tile16, yaze::editor::TileBrush::height, yaze::editor::SharedClipboard::overworld_height, yaze::editor::SharedClipboard::overworld_tile16_ids, yaze::editor::SharedClipboard::overworld_width, yaze::editor::EditorDependencies::shared_clipboard, yaze::editor::TileBrush::tile_ids, tile_painting_, yaze::editor::TileBrush::valid(), and yaze::editor::TileBrush::width.
Referenced by DrawScratchSpace().

| void yaze::editor::OverworldEditor::ClearSelectionBrush | ( | ) |
Definition at line 2815 of file overworld_editor.cc.
References tile_painting_.
Referenced by DrawScratchSpace().
| const TileBrush * yaze::editor::OverworldEditor::selection_brush | ( | ) | const |
Definition at line 2821 of file overworld_editor.cc.
References tile_painting_.
Referenced by DrawEditorMenu(), and DrawScratchSpace().
| int yaze::editor::OverworldEditor::GetTile16UsageCount | ( | int | tile_id | ) | const |
Definition at line 2825 of file overworld_editor.cc.
References canvas_renderer_.
Referenced by DrawScratchSpace(), and Load().
| std::string yaze::editor::OverworldEditor::GetTile16ScopeLabel | ( | ) | const |
Definition at line 2829 of file overworld_editor.cc.
References canvas_renderer_.
Referenced by DrawScratchSpace(), and Load().
| 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 74 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 127 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 133 of file overworld_context_actions.cc.
References armed_item_id_, current_map_, 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 179 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 212 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 87 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 1154 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 1174 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 429 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 1198 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 1216 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 1272 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 1332 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 1361 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 451 of file overworld_editor.h.
References tile_painting_.
|
inline |
Definition at line 455 of file overworld_editor.h.
References tile_painting_.
| void yaze::editor::OverworldEditor::CycleTileSelection | ( | int | delta | ) |
Definition at line 2341 of file overworld_editor.cc.
References current_tile16_, yaze::zelda3::kNumTile16Individual, and RequestTile16Selection().

| void yaze::editor::OverworldEditor::ToggleMapLock | ( | ) |
Definition at line 2347 of file overworld_editor.cc.
References current_map_lock_.
| void yaze::editor::OverworldEditor::ToggleCanvasFullscreen | ( | ) |
Definition at line 2351 of file overworld_editor.cc.
References overworld_canvas_fullscreen_.
| void yaze::editor::OverworldEditor::ToggleTile16EditorWindow | ( | ) |
Definition at line 2355 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.
Referenced by DrawEditorMenu().

| bool yaze::editor::OverworldEditor::Tile16MenuEnabled | ( | ) | const |
Definition at line 2628 of file overworld_editor.cc.
References yaze::editor::Tile16Editor::blockset_loaded(), yaze::editor::Editor::dependencies_, yaze::editor::OverworldPanelIds::kTile16Editor, tile16_editor_, and yaze::editor::EditorDependencies::window_manager.
Referenced by DrawEditMenuItems(), and DrawEditorMenu().

| void yaze::editor::OverworldEditor::ToggleItemListWindow | ( | ) |
Definition at line 2364 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.
Referenced by DrawEditorMenu().

| void yaze::editor::OverworldEditor::SetEditingMode | ( | EditingMode | mode | ) |
Tool change from the toolbar or keys 1/2: also leaves entity modes.
Definition at line 2423 of file overworld_editor.cc.
References current_mode, entity_edit_mode_, yaze::editor::LyraTerrainCanvas::FinishStroke(), is_lyra_preview(), yaze::gui::kEntityManipulation, yaze::gui::kTilePainting, lyra_canvas_, yaze::editor::MOUSE, yaze::editor::NONE, ow_map_canvas_, yaze::gui::Canvas::SetUsageMode(), and yaze::editor::Editor::undo_manager_.
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 2373 of file overworld_editor.cc.
References canvas_nav_, current_map_, current_world_, DisplayedMapCount(), 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 2395 of file overworld_editor.cc.
References canvas_nav_, current_world_, DisplayedMapCount(), 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 2415 of file overworld_editor.cc.
References canvas_nav_, and JumpToMap().

| void yaze::editor::OverworldEditor::SwitchToWorld | ( | int | world | ) |
Definition at line 1117 of file overworld_editor.cc.
References current_map_, current_world_, DisplayedMapCount(), yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), FinalizePaintOperation(), yaze::editor::LyraTerrainCanvas::FinishStroke(), ForceRefreshGraphics(), hovered_map_, yaze::zelda3::Overworld::is_lyra_preview(), IsProjectTerrainMap(), lyra_canvas_, NormalizeCurrentSelectionState(), overworld_, PrimeWorldMaps(), PRINT_IF_ERROR, RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), SelectMapForEditing(), status_, and yaze::editor::Editor::undo_manager_.
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 2437 of file overworld_editor.cc.
References current_map_, current_mode, entity_edit_mode_, is_lyra_preview(), IsProjectTerrainMap(), yaze::gui::kEntityManipulation, yaze::editor::MOUSE, yaze::editor::NONE, ow_map_canvas_, and yaze::gui::Canvas::SetUsageMode().
Referenced by DrawEditorMenu(), DrawItemInsertPopup(), Initialize(), and InitInteractionCoordinator().

|
inline |
Definition at line 485 of file overworld_editor.h.
References show_entities_.
Referenced by Initialize().
|
inline |
Definition at line 486 of file overworld_editor.h.
References show_entities_.
Referenced by Initialize().
| void yaze::editor::OverworldEditor::ToggleGrid | ( | ) |
Definition at line 2449 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 2455 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 2459 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 DrawEditorMenu(), 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 2278 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(), DrawScratchSpace(), InitTilePaintingManager(), Load(), OpenGraphicsForTile16Quadrant(), and SampleContextTile16().

| bool yaze::editor::OverworldEditor::PickTile16FromHoveredCanvas | ( | ) |
Definition at line 1427 of file overworld_editor.cc.
References tile_painting_.
Referenced by InitCanvasNavigationManager(), and InitInteractionCoordinator().
|
inline |
Definition at line 506 of file overworld_editor.h.
References canvas_renderer_, is_lyra_preview(), NormalizeCurrentSelectionState(), OpenProjectGraphicsSource(), and status_.

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

|
inline |
Definition at line 527 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 540 of file overworld_editor.h.
References map_refresh_.
| absl::Status yaze::editor::OverworldEditor::DrawScratchSpace | ( | ) |
Definition at line 207 of file scratch_space.cc.
References yaze::editor::ScratchWorkspace::AddPage(), yaze::gfx::Tilemap::atlas, yaze::gui::BeginCanvas(), yaze::gui::BeginChildWithScrollbar(), BeginScratchEdit(), yaze::gui::CanvasFrameOptions::canvas_size, ClearScratchSpace(), ClearSelectionBrush(), yaze::editor::ScratchWorkspace::current(), current_map_, yaze::editor::ScratchWorkspace::DeletePage(), yaze::gui::AdaptiveSheetLayout::display_scale, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::gui::Canvas::DrawBitmap(), DrawScratchSpaceEdits(), yaze::editor::DrawSheetScaleControl(), yaze::gui::EndCanvas(), FinishScratchEdit(), FlushScratchPadIfDirty(), GetTile16ScopeLabel(), GetTile16UsageCount(), yaze::editor::TileBrush::height, yaze::gfx::Bitmap::height(), ICON_MD_ADD, ICON_MD_CHEVRON_LEFT, ICON_MD_CHEVRON_RIGHT, ICON_MD_FILE_DOWNLOAD, ICON_MD_MORE_VERT, yaze::gfx::Bitmap::is_active(), is_lyra_preview(), yaze::editor::ScratchWorkspace::kMaxPages, LoadScratchPad(), LoadScratchToSelection(), map_blockset_loaded_, MarkScratchSpaceDirty(), yaze::editor::ScratchWorkspaceState::pages, RebuildScratchBitmapFromTileData(), yaze::editor::ScratchWorkspace::Rename(), yaze::gui::CanvasFrameOptions::render_popups, RequestTile16Selection(), yaze::editor::ScratchWorkspace::Resize(), yaze::gui::ResolveAdaptiveSheetLayout(), SaveCurrentSelectionToScratch(), scratch_action_status_, scratch_bitmap_, scratch_canvas_, scratch_drag_start_, scratch_load_status_, scratch_name_buffer_, scratch_name_id_, scratch_paint_gesture_owned_, scratch_preview_map_, scratch_preview_revision_, scratch_resize_dimensions_, scratch_resize_id_, scratch_save_status_, scratch_scale_mode_, scratch_select_active_, scratch_select_max_, scratch_select_min_, scratch_selecting_, scratch_workspace_, yaze::gui::Canvas::scrolling(), yaze::editor::ScratchWorkspace::Select(), yaze::editor::ScratchWorkspaceState::selected_id, selection_brush(), yaze::gui::Canvas::SetGlobalScale(), SetSelectionBrush(), yaze::editor::ScratchWorkspace::Stamp(), yaze::editor::ScratchWorkspace::state(), yaze::gfx::Bitmap::texture(), tile16_blockset_, yaze::editor::TileBrush::tile_ids, yaze::gui::CanvasFrameOptions::use_child_window, yaze::editor::TileBrush::width, yaze::gfx::Bitmap::width(), and yaze::gui::Canvas::zero_point().
|
inline |
Definition at line 545 of file overworld_editor.h.
References canvas_renderer_, and is_lyra_preview().

| absl::Status yaze::editor::OverworldEditor::UpdateGfxGroupEditor | ( | ) |
Definition at line 1499 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 554 of file overworld_editor.h.
References canvas_renderer_, is_lyra_preview(), and NormalizeCurrentSelectionState().

|
inline |
Access usage statistics card for panel.
Definition at line 565 of file overworld_editor.h.
References usage_stats_card_.
|
inline |
Access debug window card for panel.
Definition at line 568 of file overworld_editor.h.
References debug_window_card_.
|
inline |
Access the Tile16 Editor for panel integration.
Definition at line 571 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Definition at line 572 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Read-only access for integration tests that verify refresh output.
Definition at line 575 of file overworld_editor.h.
References tile16_blockset_.
|
inline |
Definition at line 576 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 1187 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 960 of file overworld_editor.cc.
References canvas_renderer_, and NormalizeCurrentSelectionState().

|
private |
Definition at line 1007 of file overworld_editor.cc.
References canvas_nav_, hovered_map_, yaze::core::LyraTerrainDocument::kFirstMap, and SelectMapForEditing().
Referenced by CreateLyraTerrain(), and OpenLyraTerrain().

|
inlineprivate |
Definition at line 588 of file overworld_editor.h.
References yaze::editor::Editor::dependencies_, yaze::editor::EditorDependencies::project, and project_context_provider_.
Referenced by ApplyProjectGraphicsImport(), CreateLyraTerrain(), DrawProjectGraphicsSource(), Load(), OpenLyraTerrain(), OpenProjectGraphicsSource(), PrepareProjectSave(), ProjectGraphicsPath(), and RefreshPendingProjectGraphics().
|
private |
Definition at line 52 of file project_graphics_source_ui.cc.
References DrawProjectGraphicsImport(), yaze::project::YazeProject::GetAbsolutePath(), graphics_import_applied_, graphics_source_, graphics_source_index_, graphics_source_message_, graphics_source_open_, graphics_source_palette_, graphics_source_project_, graphics_source_status_, graphics_source_tile_, overworld_, yaze::zelda3::Overworld::overworld_map(), ProjectGraphicsPath(), RefreshPendingProjectGraphics(), ReloadProjectGraphics(), yaze::gfx::SnesTo8bppColor(), and TerrainProject().
Referenced by Update().
|
private |
Definition at line 10 of file project_graphics_import_ui.cc.
References ApplyProjectGraphicsImport(), yaze::editor::ProjectGraphicsImportBindings::first_tile16, graphics_import_applied_, graphics_import_asset_, graphics_import_bindings_, graphics_import_path_, graphics_import_plan_, graphics_import_ranges_reviewed_, graphics_source_, graphics_source_status_, yaze::editor::LoadProjectGraphicsImport(), yaze::editor::ProjectGraphicsImportBindings::owned_tile16_count, yaze::editor::ProjectGraphicsImportBindings::palettes, PlaceProjectGraphicsImport(), PreviewProjectGraphicsImport(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), and yaze::editor::ProjectGraphicsImportBindings::target_resource.
Referenced by DrawProjectGraphicsSource().
|
private |
Definition at line 63 of file project_graphics_import_controller.cc.
References TerrainProject().
Referenced by DrawProjectGraphicsSource(), OpenProjectGraphicsSource(), RefreshPendingProjectGraphics(), and SyncProjectGraphicsPreview().

|
private |
Definition at line 100 of file project_graphics_import_controller.cc.
References SyncProjectGraphicsPreview().
Referenced by DrawProjectGraphicsSource(), and PublishProjectGraphicsSource().

|
private |
Definition at line 70 of file project_graphics_import_controller.cc.
References ASSIGN_OR_RETURN, current_graphics_set_, current_map_, ForceRefreshGraphics(), yaze::project::YazeProject::GetAbsolutePath(), graphics_preview_baseline_, graphics_source_, graphics_source_project_, yaze::zelda3::Overworld::is_loaded(), yaze::zelda3::kNumOverworldMaps, maps_bmp_, overworld_, ProjectGraphicsPath(), RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), RETURN_IF_ERROR, yaze::zelda3::Overworld::SetGraphicsPreview(), and TerrainProject().
Referenced by ApplyProjectGraphicsImport(), DrawProjectGraphicsSource(), and SyncProjectGraphicsPreview().
|
private |
Definition at line 113 of file project_graphics_import_controller.cc.
References yaze::editor::CaptureProjectGraphicsImportContext(), current_map_, yaze::zelda3::Overworld::EnsureMapBuilt(), yaze::zelda3::Overworld::GetMapTiles(), graphics_source_, is_lyra_preview(), IsProjectTerrainMap(), overworld_, yaze::zelda3::Overworld::overworld_map(), RETURN_IF_ERROR, and yaze::zelda3::Overworld::tiles16().
Referenced by PreviewProjectGraphicsImport().
|
private |
Handle overworld keyboard shortcuts and edit-mode hotkeys.
Clamp and synchronize stale map/world selection before panels draw.
Definition at line 1016 of file overworld_editor.cc.
References current_map_, current_parent_, current_world_, DisplayedMapCount(), yaze::zelda3::Overworld::inspected_map_count(), yaze::zelda3::Overworld::is_lyra_preview(), IsProjectTerrainMap(), 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 2091 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 2078 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 374 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(), RequestJumpToEntrance(), SetEditingMode(), SetEntityEditMode(), status_, Undo(), and yaze::editor::EditorDependencies::window_manager.
Referenced by Initialize().
|
inlineprivate |
Definition at line 645 of file overworld_editor.h.
References IsProjectTerrainMap(), and map_refresh_.

|
inlineprivate |
Definition at line 649 of file overworld_editor.h.
References current_map_, IsProjectTerrainMap(), and map_refresh_.
Referenced by InitCanvasNavigationManager(), Initialize(), Load(), RestoreItemUndoSnapshot(), and SetPreviewStoryState().

|
inlineprivate |
Definition at line 653 of file overworld_editor.h.
References IsProjectTerrainMap(), and map_refresh_.
Referenced by InitMapTextureCoordinator(), InitTilePaintingManager(), RefreshMapsForSheetEdits(), RefreshPendingProjectGraphics(), and SwitchToWorld().

|
inlineprivate |
Definition at line 657 of file overworld_editor.h.
References IsProjectTerrainMap(), and map_refresh_.

|
inlineprivate |
Definition at line 661 of file overworld_editor.h.
References current_map_, IsProjectTerrainMap(), and map_refresh_.
Referenced by Initialize().

|
inlineprivate |
Definition at line 669 of file overworld_editor.h.
References current_map_, IsProjectTerrainMap(), and map_refresh_.
Referenced by Initialize(), and SelectMapForEditing().

|
inlineprivate |
Definition at line 674 of file overworld_editor.h.
References current_map_, IsProjectTerrainMap(), and map_refresh_.
Referenced by InitCanvasNavigationManager(), Initialize(), Load(), RefreshMapsForSheetEdits(), RefreshPendingProjectGraphics(), SelectMapForEditing(), SetPreviewStoryState(), and SwitchToWorld().

|
inlineprivate |
Definition at line 682 of file overworld_editor.h.
References current_map_, IsProjectTerrainMap(), and map_refresh_.

|
inlineprivate |
Definition at line 686 of file overworld_editor.h.
References IsProjectTerrainMap(), and map_refresh_.
Referenced by Initialize(), RefreshMapsForSheetEdits(), RefreshPendingProjectGraphics(), SetPreviewStoryState(), and SwitchToWorld().

|
inlineprivate |
Definition at line 690 of file overworld_editor.h.
References IsProjectTerrainMap(), and map_refresh_.

|
private |
Initialize the tile painting manager (called after graphics load)
Definition at line 440 of file overworld_editor.cc.
References yaze::editor::TilePaintingCallbacks::allocated_rows, 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::LyraTerrainCanvas::document(), yaze::editor::TilePaintingCallbacks::finalize_paint_operation, yaze::editor::TilePaintingCallbacks::finalize_project_paint, FinalizePaintOperation(), yaze::editor::LyraTerrainCanvas::FinishStroke(), yaze::editor::TilePaintingCallbacks::is_project_tile, yaze::editor::LyraTerrainCanvas::loaded(), lyra_canvas_, yaze::editor::LyraTerrainCanvas::MapAtlas(), yaze::editor::TilePaintingDependencies::maps_bmp, maps_bmp_, yaze::editor::TilePaintingDependencies::overworld, overworld_, yaze::editor::TilePaintingDependencies::ow_map_canvas, ow_map_canvas_, yaze::editor::TilePaintingCallbacks::paint_project_pattern, yaze::editor::LyraTerrainCanvas::PaintPattern(), yaze::editor::TilePaintingCallbacks::project_tile_atlas, yaze::editor::TilePaintingCallbacks::read_project_tile, 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(), status_, yaze::core::LyraTerrainDocument::tile(), yaze::editor::TilePaintingDependencies::tile16_blockset, tile16_blockset_, yaze::editor::TilePaintingDependencies::tile16_editor, tile16_editor_, tile_painting_, and yaze::editor::Editor::undo_manager_.
Referenced by Initialize().
|
private |
Check for tile edits - delegates to TilePaintingManager.
Definition at line 1421 of file overworld_editor.cc.
References tile_painting_.
|
private |
Check for map changes and refresh if needed.
Definition at line 1493 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Definition at line 2114 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Definition at line 2336 of file overworld_editor.cc.
References canvas_nav_.
|
private |
Scroll the blockset canvas to show the current selected tile16.
Definition at line 2119 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 509 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::displayed_map_count, DisplayedMapCount(), 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::CanvasNavigationCallbacks::is_project_terrain_map, IsProjectTerrainMap(), 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 2036 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 2059 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 784 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 2073 of file overworld_editor.cc.
References IsProjectTerrainMap(), and map_texture_.
Referenced by AreaScreenBitmap(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), PaintLyraA0Terrain(), SelectMapForEditing(), and SwitchToWorld().

|
private |
Definition at line 1112 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 750 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 717 of file scratch_space.cc.
References RETURN_IF_ERROR.
Referenced by DrawEditorMenu(), and DrawScratchSpace().
|
private |
Definition at line 730 of file scratch_space.cc.
Referenced by DrawEditorMenu(), and DrawScratchSpace().
|
private |
Definition at line 745 of file scratch_space.cc.
References RETURN_IF_ERROR.
Referenced by DrawEditorMenu(), and DrawScratchSpace().
|
private |
Definition at line 667 of file scratch_space.cc.
References yaze::editor::ScratchWorkspace::current(), current_tile16_, scratch_canvas_, scratch_workspace_, and yaze::editor::ScratchWorkspace::Stamp().
Referenced by DrawScratchSpace().

|
private |
Definition at line 683 of file scratch_space.cc.
|
private |
|
private |
Definition at line 702 of file scratch_space.cc.
References yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::gfx::Arena::QueueTextureCommand(), and yaze::gfx::Arena::UPDATE.

|
private |
Definition at line 101 of file scratch_space.cc.
References yaze::editor::ScratchWorkspace::Load(), RebuildScratchBitmapFromTileData(), scratch_edit_before_, scratch_initialized_, scratch_load_status_, scratch_path_, scratch_save_status_, scratch_space_dirty_, and scratch_workspace_.
Referenced by DrawScratchSpace(), and Load().

|
private |
Definition at line 120 of file scratch_space.cc.
References yaze::editor::ScratchWorkspace::Save(), scratch_path_, and scratch_workspace_.
Referenced by FlushScratchPadIfDirty().

|
private |
Definition at line 140 of file scratch_space.cc.
References FinalizePaintOperation(), scratch_edit_before_, scratch_workspace_, and yaze::editor::ScratchWorkspace::state().
Referenced by DrawEditorMenu(), and DrawScratchSpace().

|
private |
Definition at line 147 of file scratch_space.cc.
References MarkScratchSpaceDirty(), yaze::editor::UndoManager::Push(), scratch_edit_before_, scratch_paint_gesture_owned_, scratch_workspace_, yaze::editor::ScratchWorkspace::state(), and yaze::editor::Editor::undo_manager_.
Referenced by DrawEditorMenu(), DrawScratchSpace(), PrepareProjectSave(), Redo(), Save(), and Undo().

|
private |
Definition at line 163 of file scratch_space.cc.
References FlushScratchPadIfDirty(), MarkScratchSpaceDirty(), RebuildScratchBitmapFromTileData(), yaze::editor::ScratchWorkspace::Restore(), RETURN_IF_ERROR, and scratch_workspace_.

|
private |
Definition at line 126 of file scratch_space.cc.
References RETURN_IF_ERROR, SaveScratchPad(), scratch_save_status_, and scratch_space_dirty_.
Referenced by DrawScratchSpace(), PrepareProjectSave(), RestoreScratchState(), and Save().

|
private |
Definition at line 174 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gfx::Tilemap::atlas, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::editor::ScratchWorkspace::current(), current_map_, yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), map_blockset_loaded_, yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), scratch_bitmap_, scratch_preview_map_, scratch_preview_revision_, scratch_workspace_, yaze::gfx::Bitmap::SetPalette(), tile16_blockset_, and yaze::editor::ScratchPage::width.
Referenced by DrawEditorMenu(), DrawScratchSpace(), LoadScratchPad(), and RestoreScratchState().
|
private |
Definition at line 135 of file scratch_space.cc.
References scratch_save_status_, and scratch_space_dirty_.
Referenced by DrawEditorMenu(), DrawScratchSpace(), FinishScratchEdit(), and RestoreScratchState().
|
private |
Definition at line 1694 of file overworld_editor.cc.
References current_paint_operation_, FinalizePaintOperation(), and yaze::editor::OverworldEditor::OverworldUndoPoint::map_id.
Referenced by InitTilePaintingManager().

|
private |
Definition at line 1718 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(), ApplyProjectGraphicsImport(), BeginScratchEdit(), CreateUndoPoint(), InitTilePaintingManager(), OpenGraphicsForTile16Quadrant(), Redo(), RenameProjectResourceLabelWithUndo(), SelectMapForEditing(), set_current_map(), SwitchToWorld(), and Undo().

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

|
private |
Definition at line 1220 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 1227 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 1257 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 1746 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 1784 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 1871 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 140 of file overworld_editor.h.
|
friend |
Definition at line 141 of file overworld_editor.h.
|
friend |
Definition at line 593 of file overworld_editor.h.
|
friend |
Definition at line 594 of file overworld_editor.h.
|
friend |
Definition at line 595 of file overworld_editor.h.
| int yaze::editor::OverworldEditor::jump_to_tab_ = -1 |
Definition at line 239 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), jump_to_tab(), RequestJumpToRoom(), and yaze::editor::SessionCoordinator::UpdateSessions().
| int yaze::editor::OverworldEditor::jump_to_entrance_ = -1 |
Definition at line 242 of file overworld_editor.h.
Referenced by RequestJumpToEntrance().
| LyraTerrainCanvas yaze::editor::OverworldEditor::lyra_canvas_ |
Definition at line 268 of file overworld_editor.h.
Referenced by Clear(), CreateLyraTerrain(), EditProjectMapAuthoring(), HasPendingProjectDraftChanges(), Initialize(), InitTilePaintingManager(), IsProjectTerrainMap(), Load(), OpenLyraTerrain(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), PrepareProjectSave(), ProjectSaveCommitted(), Redo(), yaze::editor::EditorManager::SaveProjectAs(), SaveProjectTerrainAs(), SelectMapForEditing(), set_current_map(), SetEditingMode(), SwitchToWorld(), and Undo().
| absl::Status yaze::editor::OverworldEditor::lyra_canvas_status_ |
Definition at line 269 of file overworld_editor.h.
Referenced by CreateLyraTerrain(), Load(), OpenLyraTerrain(), and yaze::editor::EditorManager::SaveProjectAs().
|
private |
Definition at line 592 of file overworld_editor.h.
Referenced by SetProjectContextProvider(), and TerrainProject().
|
private |
Definition at line 602 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), Clear(), DrawProjectGraphicsImport(), DrawProjectGraphicsSource(), GraphicsImportContext(), HasPendingProjectDraftChanges(), HasUnpublishedProjectGraphics(), Load(), OpenProjectGraphicsSource(), PlaceProjectGraphicsImport(), PrepareProjectSave(), PreviewProjectGraphicsImport(), PublishProjectGraphicsSource(), RefreshPendingProjectGraphics(), Save(), and SaveProjectTerrainAs().
|
private |
Definition at line 603 of file overworld_editor.h.
Referenced by Clear(), DrawProjectGraphicsSource(), Load(), OpenProjectGraphicsSource(), and RefreshPendingProjectGraphics().
|
private |
Definition at line 604 of file overworld_editor.h.
Referenced by Clear(), DrawProjectGraphicsSource(), Load(), and OpenProjectGraphicsSource().
|
private |
Definition at line 605 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), Clear(), DrawProjectGraphicsImport(), DrawProjectGraphicsSource(), Load(), OpenProjectGraphicsSource(), and PlaceProjectGraphicsImport().
|
private |
Definition at line 606 of file overworld_editor.h.
Referenced by DrawProjectGraphicsSource(), and OpenProjectGraphicsSource().
|
private |
Definition at line 607 of file overworld_editor.h.
Referenced by DrawProjectGraphicsSource().
|
private |
Definition at line 608 of file overworld_editor.h.
Referenced by DrawProjectGraphicsSource().
|
private |
Definition at line 609 of file overworld_editor.h.
Referenced by DrawProjectGraphicsImport(), and DrawProjectGraphicsSource().
|
private |
Definition at line 610 of file overworld_editor.h.
Referenced by DrawProjectGraphicsSource().
|
private |
Definition at line 611 of file overworld_editor.h.
Referenced by Clear(), RefreshPendingProjectGraphics(), and SyncProjectGraphicsPreview().
|
private |
Definition at line 612 of file overworld_editor.h.
Referenced by DrawProjectGraphicsImport().
|
private |
Definition at line 613 of file overworld_editor.h.
Referenced by Clear(), DrawProjectGraphicsImport(), and Load().
|
private |
Definition at line 614 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), Clear(), DrawProjectGraphicsImport(), and Load().
|
private |
Definition at line 615 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), and DrawProjectGraphicsImport().
|
private |
Definition at line 616 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), and PlaceProjectGraphicsImport().
|
private |
Definition at line 617 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), Clear(), and PlaceProjectGraphicsImport().
|
private |
Definition at line 618 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), and DrawProjectGraphicsImport().
|
private |
Definition at line 622 of file overworld_editor.h.
Referenced by CheckRomReplacement(), Clear(), Load(), and SaveLyraA0TerrainAs().
|
private |
Definition at line 623 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 624 of file overworld_editor.h.
Referenced by Clear(), and SyncProjectGraphicsPreview().
|
private |
Definition at line 809 of file overworld_editor.h.
Referenced by ContributeStatus(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), InitInteractionCoordinator(), InitTilePaintingManager(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), SelectMapForEditing(), SetEditingMode(), and SetEntityEditMode().
|
private |
Definition at line 810 of file overworld_editor.h.
|
private |
Definition at line 811 of file overworld_editor.h.
Referenced by ContributeStatus(), DrawEditorMenu(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitInteractionCoordinator(), SelectMapForEditing(), SetEditingMode(), SetEntityEditMode(), and TryPlaceArmedItem().
|
private |
Definition at line 832 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 833 of file overworld_editor.h.
Referenced by ApplyTile16Stencil(), AutomationGetTile(), AutomationSetTile(), BuildContextSnapshot(), ContributeStatus(), current_map_id(), DrawItemInsertPopup(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawScratchSpace(), GraphicsImportContext(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), Load(), LoadGraphics(), NormalizeCurrentSelectionState(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), OpenProjectGraphicsSource(), RebuildScratchBitmapFromTileData(), RefreshMapPalette(), RefreshMapProperties(), RefreshMapsForSheetEdits(), RefreshOverworldMap(), RefreshPendingProjectGraphics(), RefreshTile16Blockset(), SelectAdjacentMap(), SelectMapForEditing(), set_current_map(), SetEntityEditMode(), SwitchToWorld(), Update(), and UpdateBlocksetWithPendingTileChanges().
|
private |
Definition at line 834 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), InitCanvasNavigationManager(), LoadGraphics(), NormalizeCurrentSelectionState(), SelectMapForEditing(), and set_current_map().
|
private |
Definition at line 835 of file overworld_editor.h.
Referenced by ContributeStatus(), FocusLyraTerrain(), hovered_map_id(), InitCanvasNavigationManager(), Load(), and SwitchToWorld().
|
private |
Definition at line 836 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator().
|
private |
Definition at line 837 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 838 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 839 of file overworld_editor.h.
|
private |
Definition at line 840 of file overworld_editor.h.
|
private |
Definition at line 843 of file overworld_editor.h.
Referenced by BuildContextSnapshot(), and InitTilePaintingManager().
|
private |
Definition at line 849 of file overworld_editor.h.
Referenced by Clear(), Load(), RebuildScratchBitmapFromTileData(), RequestTile16Selection(), SelectMapForEditing(), SetPreviewStoryState(), and Update().
|
private |
Definition at line 850 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 854 of file overworld_editor.h.
Referenced by Clear(), Load(), and RequestTile16Selection().
|
private |
Definition at line 860 of file overworld_editor.h.
Referenced by ToggleCanvasFullscreen(), and Update().
|
private |
Definition at line 861 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager().
|
private |
Item state before an in-progress canvas drag (drag undo).
Definition at line 863 of file overworld_editor.h.
|
private |
Definition at line 864 of file overworld_editor.h.
|
private |
Definition at line 865 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 871 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 872 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 875 of file overworld_editor.h.
Referenced by Clear(), Initialize(), LoadGraphics(), and overlay_preview_enabled().
|
private |
Definition at line 876 of file overworld_editor.h.
Referenced by DrawEditorMenu(), entities_visible(), Initialize(), and ToggleEntityVisibility().
|
private |
Definition at line 882 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), DrawMapProperties(), DrawOverworldCanvas(), DrawTile16Selector(), DrawTile8Selector(), DrawV3Settings(), GetTile16ScopeLabel(), GetTile16UsageCount(), and Initialize().
|
private |
Definition at line 883 of file overworld_editor.h.
Referenced by CenterOverworldView(), CheckForCurrentMap(), FocusLyraTerrain(), HandleMapInteraction(), InitCanvasNavigationManager(), JumpToMap(), Load(), LocateOverworldTile(), ResetOverworldView(), ScrollBlocksetCanvasToCurrentTile(), SelectAdjacentMap(), UpdateBlocksetSelectorState(), ZoomIn(), ZoomOut(), and ZoomToFit().
|
private |
Definition at line 884 of file overworld_editor.h.
Referenced by ActivateFillTool(), ApplyTile16Stencil(), AutomationSetTile(), CheckForOverworldEdits(), ClearSelectionBrush(), Copy(), InitTilePaintingManager(), Paste(), PickTile16FromHoveredCanvas(), PlaceProjectGraphicsImport(), selection_brush(), SetSelectionBrush(), tile_painting(), and ToggleBrushTool().
|
private |
Definition at line 885 of file overworld_editor.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 886 of file overworld_editor.h.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), entity_mutation_service(), Initialize(), and Update().
|
private |
Definition at line 887 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), and Update().
|
private |
Definition at line 888 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 889 of file overworld_editor.h.
Referenced by EnsureMapTexture(), InitMapTextureCoordinator(), LoadGraphics(), PrimeWorldMaps(), and ProcessDeferredTextures().
|
private |
Definition at line 890 of file overworld_editor.h.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), Initialize(), Load(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), Update(), and ~OverworldEditor().
|
private |
Definition at line 891 of file overworld_editor.h.
Referenced by Initialize(), and ~OverworldEditor().
|
private |
Definition at line 892 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager(), Initialize(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), TryPlaceArmedItem(), and Update().
|
private |
Definition at line 893 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and Initialize().
|
private |
Definition at line 899 of file overworld_editor.h.
Referenced by BeginScratchEdit(), DrawEditorMenu(), DrawScratchSpace(), DrawScratchSpaceEdits(), FinishScratchEdit(), LoadScratchPad(), RebuildScratchBitmapFromTileData(), RestoreScratchState(), and SaveScratchPad().
|
private |
Definition at line 900 of file overworld_editor.h.
Referenced by DrawScratchSpace(), and RebuildScratchBitmapFromTileData().
|
private |
Definition at line 901 of file overworld_editor.h.
Referenced by BeginScratchEdit(), FinishScratchEdit(), and LoadScratchPad().
|
private |
Definition at line 902 of file overworld_editor.h.
Referenced by FlushScratchPadIfDirty(), HasPendingProjectDraftChanges(), LoadScratchPad(), and MarkScratchSpaceDirty().
|
private |
Definition at line 903 of file overworld_editor.h.
Referenced by DrawScratchSpace(), and LoadScratchPad().
|
private |
Definition at line 904 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 905 of file overworld_editor.h.
Referenced by DrawScratchSpace(), FlushScratchPadIfDirty(), LoadScratchPad(), and MarkScratchSpaceDirty().
|
private |
Definition at line 906 of file overworld_editor.h.
Referenced by LoadScratchPad().
|
private |
Definition at line 907 of file overworld_editor.h.
Referenced by LoadScratchPad(), and SaveScratchPad().
|
private |
Definition at line 908 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 909 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 910 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 911 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 912 of file overworld_editor.h.
Referenced by DrawScratchSpace(), and RebuildScratchBitmapFromTileData().
|
private |
Definition at line 913 of file overworld_editor.h.
Referenced by DrawScratchSpace(), and RebuildScratchBitmapFromTileData().
|
private |
Definition at line 914 of file overworld_editor.h.
Referenced by DrawScratchSpace(), and FinishScratchEdit().
|
private |
Definition at line 915 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 916 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 917 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 918 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 919 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 920 of file overworld_editor.h.
Referenced by DrawScratchSpace().
|
private |
Definition at line 927 of file overworld_editor.h.
Referenced by AutomationSetTile(), DrawScratchSpace(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), InitTilePaintingManager(), LoadGraphics(), RebuildScratchBitmapFromTileData(), and tile16_blockset().
|
private |
Definition at line 929 of file overworld_editor.h.
Referenced by ApplyEntranceEdit(), ApplyProjectGraphicsImport(), BuildContextSnapshot(), DeleteSelectedItem(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DuplicateSelectedItem(), GetRomStatus(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitTilePaintingManager(), IsRomLoaded(), Load(), LoadGraphics(), NotifyEntityModified(), NudgeSelectedItem(), OpenGraphicsForTile16Quadrant(), PaintLyraA0Terrain(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), RequestTile16Selection(), RestoreItemUndoSnapshot(), rom(), Save(), SaveLyraA0TerrainAs(), Update(), and UpdateGfxGroupEditor().
|
private |
Definition at line 930 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), Load(), OpenGraphicsForTile16Quadrant(), and SetGameData().
|
private |
Definition at line 931 of file overworld_editor.h.
Referenced by Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), and LoadGraphics().
|
private |
Definition at line 934 of file overworld_editor.h.
Referenced by ApplyProjectGraphicsImport(), DrawEditMenuItems(), DrawEditorMenu(), InitMapRefreshCoordinator(), InitTilePaintingManager(), Load(), RequestTile16Selection(), SetGameData(), tile16_editor(), tile16_editor(), and Tile16MenuEnabled().
|
private |
Definition at line 935 of file overworld_editor.h.
Referenced by Initialize(), OverworldEditor(), PrepareForSessionTeardown(), SetDependencies(), SetGameData(), SetMainGraphicsUsageCallback(), SetRoomsetGraphicsUsageCallback(), and UpdateGfxGroupEditor().
|
private |
Definition at line 936 of file overworld_editor.h.
|
private |
Definition at line 942 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator(), Load(), LoadGraphics(), and LoadSpriteGraphics().
|
private |
Definition at line 943 of file overworld_editor.h.
|
private |
Definition at line 944 of file overworld_editor.h.
Referenced by Load(), and LoadGraphics().
|
private |
Definition at line 945 of file overworld_editor.h.
Referenced by current_gfx_bmp_for_testing(), InitMapRefreshCoordinator(), Load(), and LoadGraphics().
|
private |
Definition at line 946 of file overworld_editor.h.
|
private |
Definition at line 947 of file overworld_editor.h.
Referenced by AreaScreenBitmap(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), map_bitmap(), PaintLyraA0Terrain(), RefreshMapsForSheetEdits(), and RefreshPendingProjectGraphics().
|
private |
Definition at line 948 of file overworld_editor.h.
Referenced by Clear(), InitMapRefreshCoordinator(), and RefreshPendingProjectGraphics().
|
private |
Definition at line 949 of file overworld_editor.h.
Referenced by Initialize(), and LoadSpriteGraphics().
|
private |
Definition at line 955 of file overworld_editor.h.
Referenced by ApplyEntranceEdit(), ApplyExitEdit(), ApplyTile16Stencil(), AutomationGetTile(), AutomationSetTile(), BeginSaveTransaction(), BuildContextSnapshot(), CaptureItemUndoSnapshot(), CheckRomReplacement(), Clear(), CommitSaveTransaction(), CreateLyraTerrain(), DeleteSelectedItem(), DisplayedMapCount(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawProjectGraphicsSource(), DuplicateSelectedItem(), EditProjectMapAuthoring(), FinalizePaintOperation(), GetSelectedItem(), GetWorldTiles(), GraphicsImportContext(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), is_lyra_preview(), IsProjectTerrainMap(), JumpToMap(), Load(), LoadGraphics(), LoadSpriteGraphics(), lyra_a0_terrain_writable(), NormalizeCurrentSelectionState(), OpenGraphicsForContextTile16(), OpenGraphicsForTile16Quadrant(), OpenLyraTerrain(), OpenProjectGraphicsSource(), overworld(), PaintLyraA0Terrain(), PlaceProjectGraphicsImport(), yaze::editor::OverworldCanvasRenderer::PrepareContextMenu(), PrepareProjectSave(), PreviewProjectGraphicsImport(), RefreshMapsForSheetEdits(), RefreshPendingProjectGraphics(), RestoreItemUndoSnapshot(), RollbackSaveTransaction(), SampleContextTile16(), Save(), SaveLyraA0TerrainAs(), SaveProjectTerrainAs(), SelectItemByIdentity(), SelectMapForEditing(), set_current_map(), SetGameData(), SetPreviewStoryState(), SwitchToWorld(), SyncProjectGraphicsPreview(), TryPlaceArmedItem(), and Update().
|
private |
Definition at line 956 of file overworld_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), and RollbackSaveTransaction().
|
private |
Definition at line 957 of file overworld_editor.h.
|
private |
Definition at line 963 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 965 of file overworld_editor.h.
Referenced by ApplyEntranceEdit(), ApplyExitEdit(), ClearSelectedItem(), current_entity(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), SelectItemByIdentity(), SetCurrentEntity(), and SetPreviewStoryState().
|
private |
Definition at line 966 of file overworld_editor.h.
|
private |
Definition at line 967 of file overworld_editor.h.
Referenced by CaptureItemUndoSnapshot(), ClearSelectedItem(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), selected_item_identity(), SelectItemByIdentity(), and SetCurrentEntity().
|
private |
Definition at line 968 of file overworld_editor.h.
|
private |
Definition at line 971 of file overworld_editor.h.
Referenced by ApplyEntranceEdit(), and edit_entrance().
|
private |
Definition at line 972 of file overworld_editor.h.
Referenced by ApplyExitEdit(), and edit_exit().
|
private |
Definition at line 973 of file overworld_editor.h.
Referenced by edit_item().
|
private |
Definition at line 974 of file overworld_editor.h.
Referenced by edit_sprite().
|
private |
Definition at line 977 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), HandleEntityInsertion(), Load(), TakePendingEntityInsertion(), and TryPlaceArmedItem().
|
private |
Definition at line 978 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and RequestItemInsertPopup().
|
private |
Definition at line 979 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and RequestItemInsertPopup().
|
private |
Definition at line 980 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and TryPlaceArmedItem().
|
private |
Definition at line 981 of file overworld_editor.h.
Referenced by DrawItemInsertPopup(), and TryPlaceArmedItem().
|
private |
Definition at line 982 of file overworld_editor.h.
Referenced by insert_error().
|
private |
Definition at line 988 of file overworld_editor.h.
Referenced by ContributeStatus(), 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 990 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 992 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 994 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager().
|
private |
Definition at line 995 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 997 of file overworld_editor.h.
Referenced by ~OverworldEditor().
|
private |
Definition at line 998 of file overworld_editor.h.
Referenced by DrawScratchSpace(), DrawScratchSpaceEdits(), and ~OverworldEditor().
|
private |
Definition at line 1005 of file overworld_editor.h.
Referenced by Initialize(), and usage_stats_card().
|
private |
Definition at line 1006 of file overworld_editor.h.
Referenced by debug_window_card(), and Initialize().
|
private |
Definition at line 1008 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), InitInteractionCoordinator(), InitMapRefreshCoordinator(), InitTilePaintingManager(), Load(), OpenGraphicsForContextTile16(), RefreshMapsForSheetEdits(), SelectMapForEditing(), SetPreviewStoryState(), SwitchToWorld(), and Update().
|
private |
Definition at line 1014 of file overworld_editor.h.
Referenced by CreateUndoPoint(), FinalizePaintOperation(), and Load().
|
private |
Definition at line 1020 of file overworld_editor.h.
Referenced by Clear(), Load(), and ~OverworldEditor().