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

Classes | |
| struct | OverworldUndoPoint |
| struct | ScratchSpace |
Public Member Functions | |
| OverworldEditor (Rom *rom) | |
| OverworldEditor (Rom *rom, const EditorDependencies &deps) | |
| ~OverworldEditor () override | |
| void | SetDependencies (const EditorDependencies &deps) override |
| void | SetGameData (zelda3::GameData *game_data) override |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Update () final |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| absl::Status | Cut () override |
| absl::Status | Copy () override |
| absl::Status | Paste () override |
| absl::Status | Find () override |
| absl::Status | Save () override |
| absl::Status | Clear () override |
| void | ContributeStatus (StatusBar *status_bar) override |
| zelda3::Overworld & | overworld () |
| Access the underlying Overworld data. | |
| int | jump_to_tab () |
| bool | IsRomLoaded () const override |
| std::string | GetRomStatus () const override |
| Rom * | rom () 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_map_id () const |
| int | current_world_id () const |
| int | hovered_map_id () const |
| absl::Status | LoadGraphics () |
| Load the Bitmap objects for each OverworldMap. | |
| void | SetCurrentEntity (zelda3::GameEntity *entity) |
| Set the currently active entity for editing. | |
| zelda3::GameEntity * | current_entity () const |
| void | NotifyEntityModified (zelda3::GameEntity *entity) |
| Notify that an entity has been modified, marking ROM as dirty. | |
| void | OpenEntityEditor (zelda3::GameEntity *entity) |
| void | RequestJumpToRoom (int room_id) |
| Trigger a jump to a dungeon room. | |
| void | RequestJumpToEntrance (int entrance_id) |
| Trigger a jump to a dungeon entrance. | |
| EntityMutationService * | entity_mutation_service () |
| Access the entity mutation service. | |
| zelda3::OverworldEntrance & | edit_entrance () |
| zelda3::OverworldExit & | edit_exit () |
| zelda3::OverworldItem & | edit_item () |
| zelda3::Sprite & | edit_sprite () |
| std::string & | pending_insert_type () |
| ImVec2 & | pending_insert_pos () |
| std::string & | insert_error () |
| gui::Canvas & | ow_map_canvas () |
| int | game_state () const |
| void | HandleEntityInsertion (const std::string &entity_type) |
| Handle entity insertion from context menu. | |
| void | ProcessPendingEntityInsertion () |
| Process any pending entity insertion request Called from Update() - needed because ImGui::OpenPopup() doesn't work correctly when called from within another popup's callback. | |
| void | HandleTile16Edit () |
| Handle tile16 editing from context menu (MOUSE mode) Gets the tile16 under the cursor and opens the Tile16Editor focused on it. | |
| 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 | 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 absl::Status | BeginSaveTransaction () |
| virtual void | RollbackSaveTransaction () |
| virtual void | CommitSaveTransaction () |
| virtual std::string | GetUndoDescription () const |
| virtual std::string | GetRedoDescription () const |
| const UndoManager & | undo_manager () const |
| EditorType | type () const |
| bool * | active () |
| void | set_active (bool active) |
| void | toggle_active () |
| Rom * | rom () const |
| zelda3::GameData * | game_data () const |
| project::YazeProject * | project () const |
| core::VersionManager * | version_manager () const |
| EditorContext | context () const |
| bool | HasContext () const |
Static Public Member Functions | |
| static bool | NormalizeMapSelection (int ¤t_world, int ¤t_map) |
| Clamp a possibly stale world/map selection back into a valid overworld range. | |
Public Attributes | |
| int | jump_to_tab_ = -1 |
Private Types | |
| enum | OverworldProperty { LW_AREA_GFX , DW_AREA_GFX , LW_AREA_PAL , DW_AREA_PAL , LW_SPR_GFX_PART1 , LW_SPR_GFX_PART2 , DW_SPR_GFX_PART1 , DW_SPR_GFX_PART2 , LW_SPR_PAL_PART1 , LW_SPR_PAL_PART2 , DW_SPR_PAL_PART1 , DW_SPR_PAL_PART2 } |
Private Member Functions | |
| void | HandleKeyboardShortcuts () |
| Handle overworld keyboard shortcuts and edit-mode hotkeys. | |
| bool | NormalizeCurrentSelectionState () |
| Clamp and synchronize stale map/world selection before panels draw. | |
| 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 () |
| void | RefreshMapProperties () |
| 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 () |
| void | HandleOverworldPan () |
| void | HandleOverworldZoom () |
| void | ZoomIn () |
| void | ZoomOut () |
| void | ClampOverworldScroll () |
| void | ResetOverworldView () |
| void | CenterOverworldView () |
| absl::Status | LoadSpriteGraphics () |
| void | ProcessDeferredTextures () |
| Create textures for deferred map bitmaps on demand. | |
| void | EnsureMapTexture (int map_index) |
| Ensure a specific map has its texture created. | |
| void | PrimeWorldMaps (int world, bool process_texture_queue=false) |
| void | SwitchToWorld (int world) |
| void | SetupCanvasAutomation () |
| gui::Canvas * | GetOverworldCanvas () |
| bool | AutomationSetTile (int x, int y, int tile_id) |
| int | AutomationGetTile (int x, int y) |
| absl::Status | SaveCurrentSelectionToScratch () |
| absl::Status | LoadScratchToSelection () |
| absl::Status | ClearScratchSpace () |
| void | DrawScratchSpaceEdits () |
| void | DrawScratchSpacePattern () |
| void | DrawScratchSpaceSelection () |
| void | UpdateScratchBitmapTile (int tile_x, int tile_y, int tile_id) |
| absl::Status | LoadScratchPad () |
| absl::Status | SaveScratchPad () const |
| absl::Status | FlushScratchPadIfDirty () |
| absl::Status | RebuildScratchBitmapFromTileData () |
| void | MarkScratchSpaceDirty () |
| void | CreateUndoPoint (int map_id, int world, int x, int y, int old_tile_id) |
| void | FinalizePaintOperation () |
| auto & | GetWorldTiles (int world) |
| OverworldItemsSnapshot | CaptureItemUndoSnapshot () const |
| void | RestoreItemUndoSnapshot (const OverworldItemsSnapshot &snapshot) |
| void | PushItemUndoAction (OverworldItemsSnapshot before, std::string description) |
| absl::Status | ApplyOverworldPropertyEdit (const OverworldPropertyEdit &edit, bool record_undo=true) |
| absl::Status | ApplyOverworldPropertyEdits (const std::vector< OverworldPropertyEdit > &edits, const std::string &description, bool record_undo=true) |
| absl::Status | RenameProjectResourceLabelWithUndo (const std::string &type, int id, const std::string &label) |
Static Private Attributes | |
| static constexpr auto | kPaintBatchTimeout = std::chrono::milliseconds(500) |
Friends | |
| class | OverworldCanvasRenderer |
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 132 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 599 of file overworld_editor.h.
|
inlineexplicit |
Definition at line 140 of file overworld_editor.h.
References gfx_group_editor_, yaze::editor::kOverworld, rom(), yaze::editor::GfxGroupEditor::SetRom(), and yaze::editor::Editor::type_.

|
inlineexplicit |
Definition at line 147 of file overworld_editor.h.
References yaze::editor::Editor::dependencies_.
|
override |
Definition at line 125 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().

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 153 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 158 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 161 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), canvas_renderer_, current_map_, debug_window_card_, yaze::editor::Editor::dependencies_, entity_mutation_service_, entity_renderer_, ForceRefreshGraphics(), game_state_, gfx_group_editor_, InitCanvasNavigationManager(), InitInteractionCoordinator(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), InvalidateGraphicsCache(), LoadScratchToSelection(), map_properties_system_, maps_bmp_, overworld_, ow_map_canvas_, RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshSiblingMapGraphics(), RefreshTile16Blockset(), RenameProjectResourceLabelWithUndo(), yaze::editor::EditorDependencies::renderer, renderer_, rom_, SaveCurrentSelectionToScratch(), SelectMapForEditing(), yaze::editor::GfxGroupEditor::SetHostSurfaceHint(), SetupCanvasAutomation(), sidebar_, sprite_previews_, SwitchToWorld(), toolbar_, yaze::editor::Editor::type(), upgrade_system_, and usage_stats_card_.
Referenced by yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), and yaze::test::OverworldEditorTestSuite::RunTilePlacementTest().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 465 of file overworld_editor.cc.
References all_gfx_loaded_, ASSIGN_OR_RETURN, yaze::editor::UndoManager::Clear(), current_gfx_bmp_, current_map_, current_paint_operation_, current_tile16_, yaze::editor::Editor::dependencies_, entrance_tiletypes_, yaze::gfx::Arena::Get(), HandleEntityInsertion(), HandleTile16Edit(), yaze::editor::Tile16Editor::Initialize(), yaze::Rom::is_loaded(), yaze::zelda3::LoadEntranceTileTypes(), LoadGraphics(), LoadScratchPad(), LOG_DEBUG, LOG_WARN, map_properties_system_, yaze::zelda3::Overworld::mutable_all_tiles_types(), yaze::zelda3::Overworld::mutable_tiles16(), overworld_, palette_, palette_listener_id_, pending_tile16_selection_after_gfx_, PickTile16FromHoveredCanvas(), RefreshOverworldMap(), RefreshTile16Blockset(), yaze::gfx::Arena::RegisterPaletteListener(), yaze::editor::WorkspaceWindowManager::RegisterPanelAlias(), RequestTile16Selection(), RETURN_IF_ERROR, rom_, yaze::editor::Tile16Editor::set_on_changes_committed(), yaze::editor::Tile16Editor::set_on_current_tile_changed(), yaze::editor::Tile16Editor::set_palette(), yaze::editor::Tile16Editor::SetRom(), 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 568 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::gui::CenterText(), Clear(), current_map_, yaze::editor::Editor::dependencies_, entity_mutation_service_, entity_renderer_, game_state_, GetWorkbench(), yaze::editor::Tile16Editor::has_pending_changes(), 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(), Load(), LOG_ERROR, map_blockset_loaded_, map_properties_system_, NormalizeCurrentSelectionState(), overworld_, overworld_canvas_fullscreen_, yaze::zelda3::OverworldCustomASMHasBeenApplied, ProcessDeferredTextures(), rom_, show_custom_bg_color_editor_, show_overlay_editor_, status_, tile16_editor_, UpdateBlocksetWithPendingTileChanges(), upgrade_system_, and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1486 of file overworld_editor.cc.
References FinalizePaintOperation(), yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.
Referenced by InitInteractionCoordinator().

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

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 174 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1081 of file overworld_editor.cc.
References current_map_, current_tile16_, current_world_, yaze::editor::Editor::dependencies_, yaze::zelda3::Overworld::GetTile(), yaze::editor::SharedClipboard::has_overworld_tile16, overworld_, yaze::editor::SharedClipboard::overworld_height, yaze::editor::SharedClipboard::overworld_tile16_ids, yaze::editor::SharedClipboard::overworld_width, ow_map_canvas_, yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_points(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), and yaze::editor::EditorDependencies::shared_clipboard.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1128 of file overworld_editor.cc.
References CreateUndoPoint(), current_map_, current_world_, yaze::editor::Editor::dependencies_, yaze::gui::Canvas::drawn_tile_position(), FinalizePaintOperation(), yaze::gui::Canvas::global_scale(), yaze::editor::SharedClipboard::has_overworld_tile16, yaze::editor::kOverworldMapSize, yaze::editor::kTile16Size, yaze::zelda3::Overworld::mutable_map_tiles(), overworld_, yaze::editor::SharedClipboard::overworld_height, yaze::editor::SharedClipboard::overworld_tile16_ids, yaze::editor::SharedClipboard::overworld_width, ow_map_canvas_, yaze::gui::Canvas::points(), RefreshOverworldMap(), rom_, yaze::gui::Canvas::selected_tile_pos(), yaze::Rom::set_dirty(), and yaze::editor::EditorDependencies::shared_clipboard.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 177 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1224 of file overworld_editor.cc.
References yaze::zelda3::Overworld::CreateTile32Tilemap(), yaze::editor::Editor::dependencies_, yaze::zelda3::DetectOverworldRomProfile(), yaze::core::FeatureFlags::get(), yaze::zelda3::Overworld::GetProjectedWriteRanges(), yaze::project::YazeProject::hack_manifest, yaze::core::FeatureFlags::Flags::Overworld::kSaveOverworldMaps, yaze::core::HackManifest::loaded(), overworld(), yaze::core::FeatureFlags::Flags::overworld, overworld_, yaze::editor::EditorDependencies::project, RETURN_IF_ERROR, rom_, yaze::project::YazeProject::rom_metadata, yaze::zelda3::Overworld::SaveCustomOverworldData(), yaze::zelda3::Overworld::SaveEntrances(), yaze::zelda3::Overworld::SaveExits(), yaze::zelda3::Overworld::SaveItems(), yaze::zelda3::Overworld::SaveMap16Expanded(), yaze::zelda3::Overworld::SaveMap16Tiles(), yaze::zelda3::Overworld::SaveMap32Expanded(), yaze::zelda3::Overworld::SaveMap32Tiles(), yaze::zelda3::Overworld::SaveMapProperties(), yaze::zelda3::Overworld::SaveMusic(), yaze::zelda3::Overworld::SaveOverworldMaps(), yaze::editor::EditorDependencies::toast_manager, yaze::editor::ValidateHackManifestSaveConflicts(), and yaze::project::RomMetadata::write_policy.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1694 of file overworld_editor.cc.
References all_gfx_loaded_, current_graphics_set_, yaze::zelda3::Overworld::Destroy(), yaze::gfx::Arena::Get(), map_blockset_loaded_, overworld_, palette_listener_id_, pending_tile16_selection_after_gfx_, and yaze::gfx::Arena::UnregisterPaletteListener().
Referenced by Update().

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 1721 of file overworld_editor.cc.
References current_map_, current_mode, current_tile16_, current_world_, yaze::editor::DRAW_TILE, entity_edit_mode_, yaze::editor::ENTRANCES, yaze::editor::EXITS, yaze::editor::FILL_TILE, yaze::editor::ITEMS, yaze::editor::MOUSE, yaze::editor::MUSIC, yaze::editor::NONE, yaze::editor::StatusBar::SetCustomSegment(), yaze::editor::StatusBar::SetEditorMode(), yaze::editor::SPRITES, and yaze::editor::TRANSPORTS.

|
inline |
Access the underlying Overworld data.
Definition at line 183 of file overworld_editor.h.
References overworld_.
Referenced by LoadGraphics(), yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), and Save().
|
inline |
Definition at line 185 of file overworld_editor.h.
References jump_to_tab_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 192 of file overworld_editor.h.
References yaze::Rom::is_loaded(), and rom_.

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

|
inline |
Definition at line 201 of file overworld_editor.h.
References rom_.
Referenced by OverworldEditor().
|
static |
Clamp a possibly stale world/map selection back into a valid overworld range.
Definition at line 144 of file overworld_editor.cc.
References yaze::zelda3::kNumOverworldMaps.
Referenced by NormalizeCurrentSelectionState().
|
inline |
Set the current map for editing (also updates world)
Definition at line 208 of file overworld_editor.h.
References current_map_, current_parent_, current_world_, FinalizePaintOperation(), yaze::zelda3::kNumOverworldMaps, overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::Overworld::set_current_map(), and yaze::zelda3::Overworld::set_current_world().
Referenced by yaze::test::OverworldEditorTestSuite::RunEntityManipulationTest(), yaze::test::OverworldEditorTestSuite::RunTilePlacementTest(), and SetCurrentMap().

|
inline |
Definition at line 224 of file overworld_editor.h.
References set_current_map().

| void yaze::editor::OverworldEditor::SelectMapForEditing | ( | int | map_id, |
| bool | respect_pin = true ) |
Definition at line 741 of file overworld_editor.cc.
References all_gfx_loaded_, current_map_, current_map_lock_, current_parent_, current_world_, yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), FinalizePaintOperation(), yaze::zelda3::kNumOverworldMaps, overworld_, yaze::zelda3::Overworld::overworld_map(), PRINT_IF_ERROR, RefreshMapProperties(), RefreshTile16Blockset(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), and status_.
Referenced by InitCanvasNavigationManager(), Initialize(), and SwitchToWorld().
|
inline |
Definition at line 227 of file overworld_editor.h.
References current_tile16_.
|
inline |
Definition at line 228 of file overworld_editor.h.
References current_map_.
|
inline |
Definition at line 229 of file overworld_editor.h.
References current_world_.
|
inline |
Definition at line 230 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 1498 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(), yaze::gfx::Arena::Get(), yaze::core::FeatureFlags::get(), yaze::gfx::Bitmap::is_active(), yaze::zelda3::kNumTile16Individual, yaze::editor::kOverworldMapSize, yaze::editor::kTile16Size, yaze::zelda3::Overworld::Load(), LoadSpriteGraphics(), LOG_DEBUG, map_blockset_loaded_, map_texture_, overworld(), overworld_, palette_, yaze::gfx::Arena::QueueTextureCommand(), renderer_, RETURN_IF_ERROR, rom_, yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), yaze::gfx::Bitmap::surface(), tile16_blockset_, tile16_blockset_bmp_, and yaze::zelda3::Overworld::tile16_blockset_data().
Referenced by Load().
| void yaze::editor::OverworldEditor::SetCurrentEntity | ( | zelda3::GameEntity * | entity | ) |
Set the currently active entity for editing.
Definition at line 446 of file overworld_editor.cc.
References current_entity_, yaze::zelda3::GameEntity::entity_type_, yaze::zelda3::GameEntity::kItem, and selected_item_identity_.
|
inline |
Definition at line 251 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 459 of file overworld_editor.cc.
References rom_, and yaze::Rom::set_dirty().

| void yaze::editor::OverworldEditor::OpenEntityEditor | ( | zelda3::GameEntity * | entity | ) |
|
inline |
Trigger a jump to a dungeon room.
Definition at line 258 of file overworld_editor.h.
References jump_to_tab_.
|
inline |
Trigger a jump to a dungeon entrance.
Definition at line 261 of file overworld_editor.h.
References jump_to_tab_.
|
inline |
Access the entity mutation service.
Definition at line 264 of file overworld_editor.h.
References entity_mutation_service_.
|
inline |
Definition at line 268 of file overworld_editor.h.
References edit_entrance_.
|
inline |
Definition at line 269 of file overworld_editor.h.
References edit_exit_.
|
inline |
Definition at line 270 of file overworld_editor.h.
References edit_item_.
|
inline |
Definition at line 271 of file overworld_editor.h.
References edit_sprite_.
|
inline |
Definition at line 273 of file overworld_editor.h.
References pending_insert_type_.
|
inline |
Definition at line 274 of file overworld_editor.h.
References pending_insert_pos_.
|
inline |
Definition at line 275 of file overworld_editor.h.
References insert_error_.
|
inline |
Definition at line 277 of file overworld_editor.h.
References ow_map_canvas_.
|
inline |
Definition at line 278 of file overworld_editor.h.
References game_state_.
| void yaze::editor::OverworldEditor::HandleEntityInsertion | ( | const std::string & | entity_type | ) |
Handle entity insertion from context menu.
| entity_type | Type: "entrance", "hole", "exit", "item", "sprite" |
Definition at line 75 of file automation.cc.
References yaze::gui::Canvas::hover_mouse_pos(), LOG_DEBUG, ow_map_canvas_, pending_insert_pos_, and pending_insert_type_.
Referenced by Load().

| void yaze::editor::OverworldEditor::ProcessPendingEntityInsertion | ( | ) |
Process any pending entity insertion request Called from Update() - needed because ImGui::OpenPopup() doesn't work correctly when called from within another popup's callback.
Definition at line 87 of file automation.cc.
References current_entity_, current_map_, edit_entrance_, edit_exit_, edit_sprite_, game_state_, insert_error_, yaze::editor::InsertEntrance(), yaze::editor::InsertExit(), yaze::editor::InsertItem(), yaze::editor::InsertSprite(), yaze::zelda3::Overworld::is_loaded(), yaze::gui::PopupNames::kEntranceEditor, yaze::gui::PopupNames::kExitEditor, yaze::gui::PopupNames::kItemEditor, yaze::gui::EditorNames::kOverworld, yaze::gui::PopupNames::kSpriteEditor, LOG_DEBUG, LOG_ERROR, LOG_WARN, yaze::gui::MakePopupId(), overworld_, pending_insert_pos_, pending_insert_type_, rom_, SelectItemByIdentity(), and yaze::Rom::set_dirty().
| void yaze::editor::OverworldEditor::HandleTile16Edit | ( | ) |
Handle tile16 editing from context menu (MOUSE mode) Gets the tile16 under the cursor and opens the Tile16Editor focused on it.
Definition at line 214 of file automation.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::zelda3::Overworld::is_loaded(), yaze::editor::OverworldPanelIds::kTile16Editor, LOG_ERROR, map_blockset_loaded_, yaze::editor::WorkspaceWindowManager::MarkWindowRecentlyUsed(), yaze::editor::WorkspaceWindowManager::OpenWindow(), overworld_, tile_painting_, and yaze::editor::EditorDependencies::window_manager.
Referenced by Load().

| bool yaze::editor::OverworldEditor::SelectItemByIdentity | ( | const zelda3::OverworldItem & | item_identity | ) |
Select an overworld item using value identity matching.
Definition at line 813 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.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and ProcessPendingEntityInsertion().

| void yaze::editor::OverworldEditor::ClearSelectedItem | ( | ) |
Clear active item selection.
Definition at line 833 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 307 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 854 of file overworld_editor.cc.
References ClearSelectedItem(), current_entity_, yaze::editor::FindItemByIdentity(), GetWorkbench(), overworld_, and selected_item_identity_.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), and NudgeSelectedItem().

| const zelda3::OverworldItem * yaze::editor::OverworldEditor::GetSelectedItem | ( | ) | const |
Definition at line 872 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 928 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 988 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 1017 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 329 of file overworld_editor.h.
References tile_painting_.
Referenced by InitInteractionCoordinator().
|
inline |
Definition at line 333 of file overworld_editor.h.
References tile_painting_.
Referenced by InitInteractionCoordinator().
| void yaze::editor::OverworldEditor::CycleTileSelection | ( | int | delta | ) |
Definition at line 1715 of file overworld_editor.cc.
References current_tile16_, yaze::zelda3::kNumTile16Individual, and RequestTile16Selection().

| 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 1655 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::editor::Tile16Editor::current_tile16(), current_tile16_, yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::Rom::is_loaded(), yaze::editor::Tile16Editor::is_tile_modified(), yaze::zelda3::kNumTile16Individual, yaze::editor::OverworldPanelIds::kTile16Editor, LOG_WARN, map_blockset_loaded_, yaze::editor::WorkspaceWindowManager::MarkWindowRecentlyUsed(), yaze::editor::WorkspaceWindowManager::OpenWindow(), pending_tile16_selection_after_gfx_, yaze::editor::Tile16Editor::RequestTileSwitch(), rom_, yaze::editor::Tile16Editor::SetCurrentTile(), tile16_editor_, and yaze::editor::EditorDependencies::window_manager.
Referenced by CycleTileSelection(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawTile16Selector(), InitTilePaintingManager(), and Load().
|
inline |
Definition at line 344 of file overworld_editor.h.
References tile_painting_.
Referenced by InitCanvasNavigationManager(), InitInteractionCoordinator(), and Load().
|
inline |
Definition at line 354 of file overworld_editor.h.
References canvas_renderer_, and NormalizeCurrentSelectionState().

|
inline |
Definition at line 360 of file overworld_editor.h.
References canvas_renderer_.
|
inline |
Definition at line 365 of file overworld_editor.h.
References canvas_renderer_, 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 374 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize().
| absl::Status yaze::editor::OverworldEditor::DrawScratchSpace | ( | ) |
Definition at line 157 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gui::BeginCanvas(), yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), yaze::gui::CanvasFrameOptions::canvas_size, ClearScratchSpace(), yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_mode, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::editor::DRAW_TILE, yaze::gui::Canvas::DrawBitmap(), DrawScratchSpaceEdits(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::EndCanvas(), yaze::gui::EndPadding(), FlushScratchPadIfDirty(), yaze::gfx::Arena::Get(), yaze::gui::CanvasFrameOptions::grid_step, yaze::editor::OverworldEditor::ScratchSpace::height, HOVER_HINT, ICON_MD_BRUSH, ICON_MD_CONTENT_PASTE, yaze::gfx::Bitmap::is_active(), map_blockset_loaded_, yaze::editor::OverworldEditor::ScratchSpace::name, overworld_, ow_map_canvas_, palette_, yaze::gfx::Arena::QueueTextureCommand(), yaze::gui::CanvasFrameOptions::render_popups, RETURN_IF_ERROR, SaveCurrentSelectionToScratch(), yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_canvas_, scratch_space_, yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_tiles(), yaze::gfx::Bitmap::SetPalette(), yaze::gui::CanvasFrameOptions::use_child_window, and yaze::editor::OverworldEditor::ScratchSpace::width.
|
inline |
Definition at line 379 of file overworld_editor.h.
References canvas_renderer_.
| absl::Status yaze::editor::OverworldEditor::UpdateGfxGroupEditor | ( | ) |
Definition at line 1210 of file overworld_editor.cc.
References yaze::gui::CenterText(), gfx_group_editor_, yaze::Rom::is_loaded(), rom_, and yaze::editor::GfxGroupEditor::Update().

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

|
inline |
Access usage statistics card for panel.
Definition at line 391 of file overworld_editor.h.
References usage_stats_card_.
|
inline |
Access debug window card for panel.
Definition at line 394 of file overworld_editor.h.
References debug_window_card_.
|
inline |
Access the Tile16 Editor for panel integration.
Definition at line 397 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Definition at line 398 of file overworld_editor.h.
References tile16_editor_.
|
inline |
Read-only access for integration tests that verify refresh output.
Definition at line 401 of file overworld_editor.h.
References tile16_blockset_.
|
inline |
Definition at line 402 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 846 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetWindowContent(), 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 714 of file overworld_editor.cc.
References canvas_renderer_, and NormalizeCurrentSelectionState().

|
private |
Handle overworld keyboard shortcuts and edit-mode hotkeys.
Definition at line 807 of file overworld_editor.cc.
References interaction_coordinator_.
|
private |
Clamp and synchronize stale map/world selection before panels draw.
Definition at line 722 of file overworld_editor.cc.
References current_map_, current_parent_, current_world_, 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 1622 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 1609 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 269 of file overworld_editor.cc.
References ActivateFillTool(), yaze::editor::OverworldCommandSink::can_edit_items, current_map_lock_, current_mode, yaze::editor::Editor::dependencies_, DuplicateSelectedItem(), entity_edit_mode_, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::WorkspaceWindowManager::GetWindowContent(), interaction_coordinator_, yaze::editor::ITEMS, jump_to_tab_, yaze::gui::kEntityManipulation, yaze::zelda3::GameEntity::kEntrance, yaze::zelda3::GameEntity::kExit, yaze::editor::OverworldPanelIds::kItemList, yaze::editor::OverworldPanelIds::kTile16Editor, yaze::gui::kTilePainting, yaze::editor::MOUSE, NudgeSelectedItem(), yaze::editor::OverworldCommandSink::on_activate_fill, 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_toggle_brush, yaze::editor::OverworldCommandSink::on_toggle_fullscreen, yaze::editor::OverworldCommandSink::on_toggle_item_list, yaze::editor::OverworldCommandSink::on_toggle_lock, yaze::editor::OverworldCommandSink::on_toggle_tile16_editor, yaze::editor::OverworldCommandSink::on_undo, yaze::editor::OverworldEntityWorkbench::OpenContextMenuFor(), overworld_canvas_fullscreen_, ow_map_canvas_, PickTile16FromHoveredCanvas(), Redo(), yaze::gui::Canvas::SetUsageMode(), status_, ToggleBrushTool(), yaze::editor::WorkspaceWindowManager::ToggleWindow(), Undo(), and yaze::editor::EditorDependencies::window_manager.
Referenced by Initialize().
|
inlineprivate |
Definition at line 434 of file overworld_editor.h.
References map_refresh_.
|
inlineprivate |
Definition at line 438 of file overworld_editor.h.
References map_refresh_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawV3Settings(), InitCanvasNavigationManager(), Initialize(), InitTilePaintingManager(), Load(), Paste(), and RestoreItemUndoSnapshot().
|
inlineprivate |
Definition at line 442 of file overworld_editor.h.
References map_refresh_.
Referenced by InitMapTextureCoordinator(), InitTilePaintingManager(), and SwitchToWorld().
|
inlineprivate |
Definition at line 446 of file overworld_editor.h.
References map_refresh_.
|
inlineprivate |
Definition at line 450 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize().
|
inlineprivate |
Definition at line 456 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize(), and SelectMapForEditing().
|
inlineprivate |
Definition at line 460 of file overworld_editor.h.
References map_refresh_.
Referenced by InitCanvasNavigationManager(), Initialize(), Load(), SelectMapForEditing(), and SwitchToWorld().
|
inlineprivate |
|
inlineprivate |
Definition at line 470 of file overworld_editor.h.
References map_refresh_.
Referenced by Initialize(), and SwitchToWorld().
|
inlineprivate |
Definition at line 474 of file overworld_editor.h.
References map_refresh_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawV3Settings(), and Initialize().
|
private |
Initialize the tile painting manager (called after graphics load)
Definition at line 364 of file overworld_editor.cc.
References yaze::editor::TilePaintingCallbacks::create_undo_point, CreateUndoPoint(), yaze::editor::TilePaintingDependencies::current_map, current_map_, current_mode, yaze::editor::TilePaintingDependencies::current_mode, yaze::editor::TilePaintingDependencies::current_parent, current_parent_, yaze::editor::TilePaintingDependencies::current_tile16, current_tile16_, yaze::editor::TilePaintingDependencies::current_world, current_world_, yaze::editor::TilePaintingCallbacks::finalize_paint_operation, FinalizePaintOperation(), yaze::editor::TilePaintingDependencies::game_state, game_state_, yaze::editor::TilePaintingDependencies::maps_bmp, maps_bmp_, yaze::editor::TilePaintingDependencies::overworld, overworld_, yaze::editor::TilePaintingDependencies::ow_map_canvas, ow_map_canvas_, yaze::editor::TilePaintingCallbacks::refresh_overworld_map, yaze::editor::TilePaintingCallbacks::refresh_overworld_map_on_demand, RefreshOverworldMap(), RefreshOverworldMapOnDemand(), yaze::editor::TilePaintingCallbacks::request_tile16_selection, RequestTile16Selection(), yaze::editor::TilePaintingDependencies::rom, rom_, yaze::editor::TilePaintingCallbacks::scroll_blockset_to_current_tile, ScrollBlocksetCanvasToCurrentTile(), yaze::editor::TilePaintingDependencies::selected_tile16_ids, selected_tile16_ids_, yaze::editor::TilePaintingDependencies::tile16_blockset, tile16_blockset_, yaze::editor::TilePaintingDependencies::tile16_editor, tile16_editor_, and tile_painting_.
Referenced by Initialize().
|
private |
Check for tile edits - delegates to TilePaintingManager.
Definition at line 1077 of file overworld_editor.cc.
References tile_painting_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Check for map changes and refresh if needed.
Definition at line 1204 of file overworld_editor.cc.
References canvas_nav_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 1645 of file overworld_editor.cc.
References canvas_nav_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 1710 of file overworld_editor.cc.
References canvas_nav_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawTile16Selector().
|
private |
Scroll the blockset canvas to show the current selected tile16.
Definition at line 1650 of file overworld_editor.cc.
References canvas_nav_.
Referenced by InitTilePaintingManager().
|
private |
Initialize the canvas navigation manager (called during Initialize)
Definition at line 404 of file overworld_editor.cc.
References yaze::editor::CanvasNavigationContext::blockset_selector, blockset_selector_, canvas_nav_, yaze::editor::CanvasNavigationContext::current_map, current_map_, yaze::editor::CanvasNavigationContext::current_map_lock, current_map_lock_, yaze::editor::CanvasNavigationContext::current_mode, current_mode, yaze::editor::CanvasNavigationContext::current_parent, current_parent_, yaze::editor::CanvasNavigationContext::current_tile16, current_tile16_, yaze::editor::CanvasNavigationContext::current_world, current_world_, yaze::editor::CanvasNavigationCallbacks::ensure_map_texture, EnsureMapTexture(), entity_renderer_, yaze::editor::CanvasNavigationContext::hovered_map, hovered_map_, yaze::editor::CanvasNavigationContext::is_dragging_entity, is_dragging_entity_, yaze::editor::CanvasNavigationCallbacks::is_entity_hovered, yaze::editor::CanvasNavigationContext::maps_bmp, maps_bmp_, yaze::editor::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::show_map_properties_panel, show_map_properties_panel_, yaze::editor::CanvasNavigationContext::tile16_blockset, and tile16_blockset_.
Referenced by Initialize().
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 7 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 11 of file overworld_navigation.cc.
References canvas_nav_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 15 of file overworld_navigation.cc.
References canvas_nav_.
|
private |
Definition at line 19 of file overworld_navigation.cc.
References canvas_nav_.
|
private |
Definition at line 23 of file overworld_navigation.cc.
References canvas_nav_.
|
private |
Definition at line 27 of file overworld_navigation.cc.
References canvas_nav_.
|
private |
Definition at line 31 of file overworld_navigation.cc.
References canvas_nav_.
|
private |
Definition at line 1576 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 1599 of file overworld_editor.cc.
References map_texture_.
Referenced by Update().
|
private |
Ensure a specific map has its texture created.
Definition at line 1604 of file overworld_editor.cc.
References map_texture_.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldMaps(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), SelectMapForEditing(), and SwitchToWorld().
|
private |
Definition at line 773 of file overworld_editor.cc.
References map_texture_.
Referenced by SwitchToWorld().
|
private |
Definition at line 778 of file overworld_editor.cc.
References current_map_, current_world_, yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), FinalizePaintOperation(), ForceRefreshGraphics(), hovered_map_, yaze::zelda3::kNumOverworldMaps, NormalizeCurrentSelectionState(), overworld_, PrimeWorldMaps(), PRINT_IF_ERROR, RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), SelectMapForEditing(), and status_.
Referenced by Initialize().
|
private |
Definition at line 16 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 539 of file overworld_editor.h.
References ow_map_canvas_.
|
private |
Definition at line 29 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 58 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 374 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_map_, current_world_, FlushScratchPadIfDirty(), yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::GetTileFromPosition(), yaze::editor::OverworldEditor::ScratchSpace::height, yaze::editor::OverworldEditor::ScratchSpace::in_use, MarkScratchSpaceDirty(), yaze::editor::OverworldEditor::ScratchSpace::name, overworld_, ow_map_canvas_, palette_, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, yaze::editor::OverworldEditor::ScratchSpace::scratch_bitmap, scratch_space_, yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_points(), yaze::gui::Canvas::selected_tiles(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), yaze::gfx::Bitmap::SetPalette(), yaze::editor::OverworldEditor::ScratchSpace::tile_data, UpdateScratchBitmapTile(), and yaze::editor::OverworldEditor::ScratchSpace::width.
Referenced by DrawScratchSpace(), and Initialize().
|
private |
Definition at line 445 of file scratch_space.cc.
References yaze::editor::OverworldEditor::ScratchSpace::in_use, yaze::util::logf(), yaze::editor::OverworldEditor::ScratchSpace::name, and scratch_space_.
Referenced by Initialize().

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

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

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

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

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

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

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

|
private |
Definition at line 876 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 883 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 913 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 1340 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), ASSIGN_OR_RETURN, yaze::editor::DescribeOverworldPropertyEdit(), FinalizePaintOperation(), 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 1375 of file overworld_editor.cc.
References ApplyOverworldPropertyEdit(), FinalizePaintOperation(), 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 1459 of file overworld_editor.cc.
References yaze::editor::Editor::dependencies_, FinalizePaintOperation(), yaze::editor::GetProjectResourceLabel(), 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 133 of file overworld_editor.h.
| int yaze::editor::OverworldEditor::jump_to_tab_ = -1 |
Definition at line 186 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), jump_to_tab(), RequestJumpToEntrance(), RequestJumpToRoom(), and yaze::editor::SessionCoordinator::UpdateSessions().
|
private |
Definition at line 595 of file overworld_editor.h.
Referenced by ContributeStatus(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawScratchSpace(), InitCanvasNavigationManager(), InitInteractionCoordinator(), and InitTilePaintingManager().
|
private |
Definition at line 596 of file overworld_editor.h.
|
private |
Definition at line 597 of file overworld_editor.h.
Referenced by ContributeStatus(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and InitInteractionCoordinator().
|
private |
Definition at line 618 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), ContributeStatus(), Copy(), current_world_id(), yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawOverworldMaps(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), NormalizeCurrentSelectionState(), Paste(), SaveCurrentSelectionToScratch(), SelectMapForEditing(), set_current_map(), and SwitchToWorld().
|
private |
Definition at line 619 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), ContributeStatus(), Copy(), current_map_id(), yaze::editor::OverworldCanvasRenderer::DrawAreaGraphics(), yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawV3Settings(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), Load(), NormalizeCurrentSelectionState(), Paste(), ProcessPendingEntityInsertion(), SaveCurrentSelectionToScratch(), SelectMapForEditing(), set_current_map(), SwitchToWorld(), and Update().
|
private |
Definition at line 620 of file overworld_editor.h.
Referenced by InitCanvasNavigationManager(), InitTilePaintingManager(), NormalizeCurrentSelectionState(), SelectMapForEditing(), and set_current_map().
|
private |
Definition at line 621 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), hovered_map_id(), InitCanvasNavigationManager(), and SwitchToWorld().
|
private |
Definition at line 622 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator().
|
private |
Definition at line 623 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), game_state(), Initialize(), InitMapRefreshCoordinator(), InitTilePaintingManager(), ProcessPendingEntityInsertion(), and Update().
|
private |
Definition at line 624 of file overworld_editor.h.
Referenced by ContributeStatus(), Copy(), CycleTileSelection(), DrawScratchSpaceEdits(), InitCanvasNavigationManager(), InitTilePaintingManager(), Load(), RequestTile16Selection(), and set_current_tile16().
|
private |
Definition at line 625 of file overworld_editor.h.
|
private |
Definition at line 626 of file overworld_editor.h.
|
private |
Definition at line 629 of file overworld_editor.h.
Referenced by InitTilePaintingManager().
|
private |
Definition at line 635 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), yaze::editor::OverworldCanvasRenderer::DrawTile8Selector(), Load(), RebuildScratchBitmapFromTileData(), RequestTile16Selection(), SaveCurrentSelectionToScratch(), SelectMapForEditing(), and Update().
|
private |
Definition at line 636 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), yaze::editor::OverworldCanvasRenderer::DrawTile16Selector(), HandleTile16Edit(), InitMapRefreshCoordinator(), LoadGraphics(), RebuildScratchBitmapFromTileData(), RequestTile16Selection(), and Update().
|
private |
Selection requested before overworld gfx/blockset init; applied in Load() after Tile16Editor::Initialize.
Definition at line 640 of file overworld_editor.h.
Referenced by Clear(), Load(), and RequestTile16Selection().
|
private |
Definition at line 646 of file overworld_editor.h.
Referenced by InitInteractionCoordinator(), and Update().
|
private |
Definition at line 647 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and InitCanvasNavigationManager().
|
private |
Definition at line 648 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 649 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), InitInteractionCoordinator(), and SelectMapForEditing().
|
private |
Definition at line 655 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and Update().
|
private |
Definition at line 656 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and Update().
|
private |
Definition at line 657 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and InitCanvasNavigationManager().
|
private |
Definition at line 658 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 664 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), DrawMapProperties(), DrawOverworldCanvas(), DrawTile16Selector(), DrawTile8Selector(), DrawV3Settings(), and Initialize().
|
private |
Definition at line 665 of file overworld_editor.h.
Referenced by CenterOverworldView(), CheckForCurrentMap(), ClampOverworldScroll(), HandleMapInteraction(), HandleOverworldPan(), HandleOverworldZoom(), InitCanvasNavigationManager(), ResetOverworldView(), ScrollBlocksetCanvasToCurrentTile(), UpdateBlocksetSelectorState(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 666 of file overworld_editor.h.
Referenced by ActivateFillTool(), AutomationSetTile(), CheckForOverworldEdits(), HandleTile16Edit(), InitTilePaintingManager(), PickTile16FromHoveredCanvas(), and ToggleBrushTool().
|
private |
Definition at line 667 of file overworld_editor.h.
Referenced by Initialize(), and Update().
|
private |
Definition at line 668 of file overworld_editor.h.
Referenced by DeleteSelectedItem(), DuplicateSelectedItem(), entity_mutation_service(), Initialize(), and Update().
|
private |
Definition at line 669 of file overworld_editor.h.
Referenced by HandleKeyboardShortcuts(), InitInteractionCoordinator(), and Update().
|
private |
Definition at line 670 of file overworld_editor.h.
Referenced by ForceRefreshGraphics(), InitMapRefreshCoordinator(), InvalidateGraphicsCache(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshOverworldMapOnDemand(), RefreshSiblingMapGraphics(), RefreshTile16Blockset(), and UpdateBlocksetWithPendingTileChanges().
|
private |
Definition at line 671 of file overworld_editor.h.
Referenced by EnsureMapTexture(), InitMapTextureCoordinator(), LoadGraphics(), PrimeWorldMaps(), and ProcessDeferredTextures().
|
private |
Definition at line 672 of file overworld_editor.h.
Referenced by ApplyOverworldPropertyEdit(), ApplyOverworldPropertyEdits(), yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), Initialize(), Load(), Update(), and ~OverworldEditor().
|
private |
Definition at line 673 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawMapProperties(), Initialize(), and ~OverworldEditor().
|
private |
Definition at line 674 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), InitCanvasNavigationManager(), Initialize(), and Update().
|
private |
Definition at line 675 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), and Initialize().
|
private |
Definition at line 692 of file overworld_editor.h.
Referenced by ClearScratchSpace(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), LoadScratchPad(), LoadScratchToSelection(), RebuildScratchBitmapFromTileData(), SaveCurrentSelectionToScratch(), SaveScratchPad(), and UpdateScratchBitmapTile().
|
private |
Definition at line 693 of file overworld_editor.h.
Referenced by FlushScratchPadIfDirty(), LoadScratchPad(), and MarkScratchSpaceDirty().
|
private |
Definition at line 699 of file overworld_editor.h.
Referenced by AutomationSetTile(), yaze::editor::OverworldCanvasRenderer::DrawTile16Selector(), InitCanvasNavigationManager(), InitMapRefreshCoordinator(), InitTilePaintingManager(), LoadGraphics(), tile16_blockset(), and UpdateScratchBitmapTile().
|
private |
Definition at line 701 of file overworld_editor.h.
Referenced by DeleteSelectedItem(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawV3Settings(), DuplicateSelectedItem(), GetRomStatus(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitTilePaintingManager(), IsRomLoaded(), Load(), LoadGraphics(), NotifyEntityModified(), NudgeSelectedItem(), Paste(), ProcessPendingEntityInsertion(), RequestTile16Selection(), RestoreItemUndoSnapshot(), rom(), Save(), Update(), and UpdateGfxGroupEditor().
|
private |
Definition at line 702 of file overworld_editor.h.
Referenced by SetGameData().
|
private |
Definition at line 703 of file overworld_editor.h.
Referenced by Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), and LoadGraphics().
|
private |
Definition at line 706 of file overworld_editor.h.
Referenced by InitMapRefreshCoordinator(), InitTilePaintingManager(), Load(), RequestTile16Selection(), SetGameData(), tile16_editor(), tile16_editor(), and Update().
|
private |
Definition at line 707 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldProperties(), Initialize(), OverworldEditor(), SetDependencies(), SetGameData(), and UpdateGfxGroupEditor().
|
private |
Definition at line 708 of file overworld_editor.h.
|
private |
Definition at line 714 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawAreaGraphics(), DrawScratchSpace(), InitMapRefreshCoordinator(), Load(), LoadGraphics(), LoadSpriteGraphics(), RebuildScratchBitmapFromTileData(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 715 of file overworld_editor.h.
|
private |
Definition at line 716 of file overworld_editor.h.
Referenced by Load(), and LoadGraphics().
|
private |
Definition at line 717 of file overworld_editor.h.
Referenced by current_gfx_bmp_for_testing(), InitMapRefreshCoordinator(), Load(), and LoadGraphics().
|
private |
Definition at line 718 of file overworld_editor.h.
|
private |
Definition at line 719 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldMaps(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), and InitTilePaintingManager().
|
private |
Definition at line 720 of file overworld_editor.h.
Referenced by Clear(), yaze::editor::OverworldCanvasRenderer::DrawAreaGraphics(), and InitMapRefreshCoordinator().
|
private |
Definition at line 721 of file overworld_editor.h.
Referenced by Initialize(), and LoadSpriteGraphics().
|
private |
Definition at line 727 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), CaptureItemUndoSnapshot(), Clear(), Copy(), DeleteSelectedItem(), yaze::editor::OverworldCanvasRenderer::DrawAreaGraphics(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawOverworldProperties(), DrawScratchSpace(), yaze::editor::OverworldCanvasRenderer::DrawV3Settings(), DuplicateSelectedItem(), FinalizePaintOperation(), GetSelectedItem(), GetWorldTiles(), HandleTile16Edit(), InitCanvasNavigationManager(), Initialize(), InitMapRefreshCoordinator(), InitMapTextureCoordinator(), InitTilePaintingManager(), Load(), LoadGraphics(), LoadSpriteGraphics(), NormalizeCurrentSelectionState(), overworld(), Paste(), ProcessPendingEntityInsertion(), RebuildScratchBitmapFromTileData(), RestoreItemUndoSnapshot(), Save(), SaveCurrentSelectionToScratch(), SelectItemByIdentity(), SelectMapForEditing(), set_current_map(), SetGameData(), SwitchToWorld(), and Update().
|
private |
Definition at line 728 of file overworld_editor.h.
|
private |
Definition at line 734 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 736 of file overworld_editor.h.
Referenced by ClearSelectedItem(), current_entity(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), ProcessPendingEntityInsertion(), RestoreItemUndoSnapshot(), SelectItemByIdentity(), and SetCurrentEntity().
|
private |
Definition at line 737 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas().
|
private |
Definition at line 738 of file overworld_editor.h.
Referenced by CaptureItemUndoSnapshot(), ClearSelectedItem(), DeleteSelectedItem(), DuplicateSelectedItem(), GetSelectedItem(), NudgeSelectedItem(), RestoreItemUndoSnapshot(), selected_item_identity(), SelectItemByIdentity(), and SetCurrentEntity().
|
private |
Definition at line 739 of file overworld_editor.h.
|
private |
Definition at line 742 of file overworld_editor.h.
Referenced by edit_entrance(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 743 of file overworld_editor.h.
Referenced by edit_exit(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 744 of file overworld_editor.h.
Referenced by edit_item().
|
private |
Definition at line 745 of file overworld_editor.h.
Referenced by edit_sprite(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 748 of file overworld_editor.h.
Referenced by HandleEntityInsertion(), pending_insert_type(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 749 of file overworld_editor.h.
Referenced by HandleEntityInsertion(), pending_insert_pos(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 750 of file overworld_editor.h.
Referenced by insert_error(), and ProcessPendingEntityInsertion().
|
private |
Definition at line 756 of file overworld_editor.h.
Referenced by Copy(), yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawOverworldMaps(), DrawScratchSpace(), GetOverworldCanvas(), HandleEntityInsertion(), InitCanvasNavigationManager(), Initialize(), InitInteractionCoordinator(), InitTilePaintingManager(), ow_map_canvas(), Paste(), SaveCurrentSelectionToScratch(), SetupCanvasAutomation(), and ~OverworldEditor().
|
private |
Definition at line 758 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawAreaGraphics(), and ~OverworldEditor().
|
private |
Definition at line 760 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawTile16Selector(), and ~OverworldEditor().
|
private |
Definition at line 762 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawTile16Selector(), and InitCanvasNavigationManager().
|
private |
Definition at line 763 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawTile8Selector(), and ~OverworldEditor().
|
private |
Definition at line 765 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldProperties(), and ~OverworldEditor().
|
private |
Definition at line 766 of file overworld_editor.h.
Referenced by DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), and ~OverworldEditor().
|
private |
Definition at line 773 of file overworld_editor.h.
Referenced by Initialize(), and usage_stats_card().
|
private |
Definition at line 774 of file overworld_editor.h.
Referenced by debug_window_card(), and Initialize().
|
private |
Definition at line 776 of file overworld_editor.h.
Referenced by yaze::editor::OverworldCanvasRenderer::DrawOverworldCanvas(), yaze::editor::OverworldCanvasRenderer::DrawOverworldProperties(), InitInteractionCoordinator(), InitMapRefreshCoordinator(), SelectMapForEditing(), SwitchToWorld(), and Update().
|
private |
Definition at line 782 of file overworld_editor.h.
Referenced by CreateUndoPoint(), FinalizePaintOperation(), and Load().
|
private |
Definition at line 783 of file overworld_editor.h.
Referenced by CreateUndoPoint().
|
staticconstexprprivate |
Definition at line 784 of file overworld_editor.h.
Referenced by CreateUndoPoint().
|
private |
Definition at line 790 of file overworld_editor.h.
Referenced by Clear(), Load(), and ~OverworldEditor().