Manipulates the Overworld and OverworldMap data in a Rom. More...
#include <overworld_editor.h>
Classes | |
struct | ScratchSpaceSlot |
Public Member Functions | |
OverworldEditor (Rom *rom) | |
void | Initialize (gfx::IRenderer *renderer, Rom *rom) |
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 |
zelda3::Overworld & | overworld () |
absl::Status | ApplyZSCustomOverworldASM (int target_version) |
Apply ZSCustomOverworld ASM patch to upgrade ROM version. | |
absl::Status | UpdateROMVersionMarkers (int target_version) |
Update ROM version markers and feature flags after ASM patching. | |
int | jump_to_tab () |
bool | IsRomLoaded () const override |
std::string | GetRomStatus () const override |
void | set_current_map (int map_id) |
absl::Status | LoadGraphics () |
Load the Bitmap objects for each OverworldMap. | |
![]() | |
Editor ()=default | |
virtual | ~Editor ()=default |
EditorType | type () const |
void | set_context (EditorContext *context) |
bool * | active () |
void | set_active (bool active) |
Public Attributes | |
int | jump_to_tab_ = -1 |
Private Types | |
enum class | EditingMode { MOUSE , DRAW_TILE } |
enum class | EntityEditMode { NONE , ENTRANCES , EXITS , ITEMS , SPRITES , TRANSPORTS , MUSIC } |
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 | DrawFullscreenCanvas () |
void | DrawToolset () |
void | RefreshChildMap (int map_index) |
void | RefreshOverworldMap () |
void | RefreshOverworldMapOnDemand (int map_index) |
On-demand map refresh that only updates what's actually needed. | |
void | RefreshChildMapOnDemand (int map_index) |
On-demand child map refresh with selective updates. | |
void | RefreshMultiAreaMapsSafely (int map_index, zelda3::OverworldMap *map) |
Safely refresh multi-area maps without recursion. | |
absl::Status | RefreshMapPalette () |
void | RefreshMapProperties () |
absl::Status | RefreshTile16Blockset () |
void | ForceRefreshGraphics (int map_index) |
void | RefreshSiblingMapGraphics (int map_index, bool include_self=false) |
void | DrawOverworldMaps () |
void | DrawOverworldEdits () |
void | RenderUpdatedMapBitmap (const ImVec2 &click_position, const std::vector< uint8_t > &tile_data) |
void | CheckForOverworldEdits () |
Check for changes to the overworld map. | |
void | CheckForSelectRectangle () |
Draw and create the tile16 IDs that are currently selected. | |
absl::Status | CheckForCurrentMap () |
Check for changes to the overworld map. Calls RefreshOverworldMap and RefreshTile16Blockset on the current map if it is modified and is actively being edited. | |
void | CheckForMousePan () |
void | DrawOverworldCanvas () |
absl::Status | DrawTile16Selector () |
void | DrawTile8Selector () |
absl::Status | DrawAreaGraphics () |
void | UpdateBlocksetSelectorState () |
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 | DrawOverworldProperties () |
void | HandleMapInteraction () |
void | HandleOverworldPan () |
void | HandleOverworldZoom () |
void | ResetOverworldView () |
void | CenterOverworldView () |
void | SetupCanvasAutomation () |
gui::Canvas * | GetOverworldCanvas () |
bool | AutomationSetTile (int x, int y, int tile_id) |
int | AutomationGetTile (int x, int y) |
void | ScrollBlocksetCanvasToCurrentTile () |
Scroll the blockset canvas to show the current selected tile16. | |
absl::Status | DrawScratchSpace () |
absl::Status | SaveCurrentSelectionToScratch (int slot) |
absl::Status | LoadScratchToSelection (int slot) |
absl::Status | ClearScratchSpace (int slot) |
void | DrawScratchSpaceEdits () |
void | DrawScratchSpacePattern () |
void | DrawScratchSpaceSelection () |
void | UpdateScratchBitmapTile (int tile_x, int tile_y, int tile_id, int slot=-1) |
absl::Status | UpdateUsageStats () |
void | DrawUsageGrid () |
void | DrawDebugWindow () |
Additional Inherited Members | |
![]() | |
std::string | MakeCardTitle (const std::string &base_title) const |
template<typename T > | |
absl::StatusOr< T > | SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const |
![]() | |
bool | active_ = false |
EditorType | type_ |
EditorContext * | context_ = nullptr |
![]() | |
static std::unordered_map< uint8_t, gfx::Paletteset > | palettesets_ |
Manipulates the Overworld and OverworldMap data in a Rom.
The OverworldEditor
class is responsible for managing the editing and manipulation of the overworld in a game. The user can drag and drop tiles, modify OverworldEntrance, OverworldExit, Sprite, and OverworldItem as well as change the gfx and palettes used in each overworld map.
The Overworld itself is a series of bitmap images which exist inside each OverworldMap object. The drawing of the overworld is done using the Canvas class in conjunction with these underlying Bitmap objects.
Provides access to the GfxGroupEditor and Tile16Editor through popup windows.
Definition at line 64 of file overworld_editor.h.
|
strongprivate |
Enumerator | |
---|---|
MOUSE | |
DRAW_TILE |
Definition at line 232 of file overworld_editor.h.
|
strongprivate |
Enumerator | |
---|---|
NONE | |
ENTRANCES | |
EXITS | |
ITEMS | |
SPRITES | |
TRANSPORTS | |
MUSIC |
Definition at line 241 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 253 of file overworld_editor.h.
|
inlineexplicit |
Definition at line 66 of file overworld_editor.h.
References gfx_group_editor_, yaze::editor::kOverworld, yaze::editor::GfxGroupEditor::set_rom(), and yaze::editor::Editor::type_.
void yaze::editor::OverworldEditor::Initialize | ( | gfx::IRenderer * | renderer, |
Rom * | rom | ||
) |
Referenced by yaze::editor::EditorManager::LoadAssets().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 50 of file overworld_editor.cc.
References entity_renderer_, ForceRefreshGraphics(), yaze::gui::EditorCardManager::Get(), ICON_MD_ANALYTICS, ICON_MD_DRAW, ICON_MD_FOLDER, ICON_MD_GRID_3X3, ICON_MD_GRID_ON, ICON_MD_IMAGE, ICON_MD_SETTINGS, map_properties_system_, maps_bmp_, overworld_, ow_map_canvas_, RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshTile16Blockset(), rom_, SetupCanvasAutomation(), show_area_gfx_, show_gfx_groups_, show_scratch_, show_tile16_selector_, show_tile8_selector_, show_usage_stats_, show_v3_settings_, and sprite_previews_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 151 of file overworld_editor.cc.
References all_gfx_loaded_, ASSIGN_OR_RETURN, current_gfx_bmp_, entrance_tiletypes_, yaze::editor::Tile16Editor::Initialize(), yaze::Rom::is_loaded(), yaze::zelda3::LoadEntranceTileTypes(), LoadGraphics(), LOG_DEBUG, yaze::zelda3::Overworld::mutable_all_tiles_types(), overworld_, palette_, RefreshOverworldMap(), RefreshTile16Blockset(), RETURN_IF_ERROR, rom_, yaze::editor::Tile16Editor::set_on_changes_committed(), yaze::editor::Tile16Editor::set_palette(), yaze::editor::Tile16Editor::set_rom(), tile16_blockset_bmp_, and tile16_editor_.
Referenced by DrawToolset(), and yaze::editor::EditorManager::LoadAssets().
|
finalvirtual |
Implements yaze::editor::Editor.
Definition at line 185 of file overworld_editor.cc.
References yaze::gui::EditorCard::Begin(), yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), yaze::gui::CenterText(), current_entity_, current_entrance_, current_exit_, current_item_, current_map_, current_mode, current_sprite_, DrawAreaGraphics(), yaze::editor::DrawExitEditorPopup(), DrawFullscreenCanvas(), yaze::editor::DrawItemEditorPopup(), DrawOverworldCanvas(), yaze::editor::DrawOverworldEntrancePopup(), DrawScratchSpace(), yaze::editor::DrawSpriteEditorPopup(), DrawTile16Selector(), DrawTile8Selector(), DrawToolset(), yaze::gui::EditorCard::End(), yaze::gui::EndNoPadding(), entity_renderer_, yaze::zelda3::GameEntity::entity_type_, yaze::gui::EditorCard::Floating, gfx_group_editor_, ICON_MD_ANALYTICS, ICON_MD_BRUSH, ICON_MD_COLLECTIONS, ICON_MD_FORMAT_COLOR_FILL, ICON_MD_GRID_3X3, ICON_MD_GRID_4X4, ICON_MD_GRID_ON, ICON_MD_IMAGE, ICON_MD_LAYERS, ICON_MD_TUNE, yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), jump_to_tab_, yaze::zelda3::GameEntity::kEntrance, yaze::zelda3::GameEntity::kExit, yaze::zelda3::GameEntity::kItem, yaze::zelda3::GameEntity::kSprite, yaze::editor::Editor::MakeCardTitle(), map_properties_system_, MOUSE, overworld_, overworld_canvas_fullscreen_, ProcessDeferredTextures(), yaze::gui::EditorCard::Right, rom_, yaze::Rom::set_dirty(), yaze::gui::EditorCard::SetDefaultSize(), yaze::gui::EditorCard::SetPosition(), show_area_gfx_, show_custom_bg_color_editor_, show_gfx_groups_, show_map_properties_panel_, show_overlay_editor_, show_scratch_, show_tile16_editor_, show_tile16_selector_, show_tile8_selector_, show_usage_stats_, status_, tile16_editor_, yaze::editor::GfxGroupEditor::Update(), yaze::editor::Tile16Editor::Update(), UpdateUsageStats(), and yaze::gui::VerticalSpacing().
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 76 of file overworld_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 77 of file overworld_editor.h.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 78 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1017 of file overworld_editor.cc.
References yaze::editor::Editor::context_, current_map_, current_tile16_, current_world_, yaze::zelda3::Overworld::GetTile(), yaze::editor::EditorContext::SharedClipboard::has_overworld_tile16, overworld_, yaze::editor::EditorContext::SharedClipboard::overworld_height, yaze::editor::EditorContext::SharedClipboard::overworld_tile16_ids, yaze::editor::EditorContext::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::EditorContext::shared_clipboard.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1062 of file overworld_editor.cc.
References yaze::editor::Editor::context_, current_map_, current_world_, yaze::gui::Canvas::drawn_tile_position(), yaze::editor::EditorContext::SharedClipboard::has_overworld_tile16, yaze::editor::kOverworldMapSize, yaze::editor::kTile16Size, yaze::zelda3::Overworld::mutable_map_tiles(), overworld_, yaze::editor::EditorContext::SharedClipboard::overworld_height, yaze::editor::EditorContext::SharedClipboard::overworld_tile16_ids, yaze::editor::EditorContext::SharedClipboard::overworld_width, ow_map_canvas_, yaze::gui::Canvas::points(), RefreshOverworldMap(), yaze::gui::Canvas::selected_tile_pos(), and yaze::editor::EditorContext::shared_clipboard.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 81 of file overworld_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1646 of file overworld_editor.cc.
References yaze::zelda3::Overworld::CreateTile32Tilemap(), yaze::core::FeatureFlags::get(), overworld(), overworld_, RETURN_IF_ERROR, yaze::zelda3::Overworld::SaveEntrances(), yaze::zelda3::Overworld::SaveExits(), yaze::zelda3::Overworld::SaveItems(), yaze::zelda3::Overworld::SaveMap16Tiles(), yaze::zelda3::Overworld::SaveMap32Tiles(), yaze::zelda3::Overworld::SaveMapProperties(), yaze::zelda3::Overworld::SaveMusic(), and yaze::zelda3::Overworld::SaveOverworldMaps().
Referenced by yaze::editor::EditorManager::SaveRom(), and yaze::editor::EditorManager::SaveRomAs().
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 2716 of file overworld_editor.cc.
References all_gfx_loaded_, current_graphics_set_, yaze::zelda3::Overworld::Destroy(), map_blockset_loaded_, and overworld_.
Referenced by DrawToolset().
|
inline |
Definition at line 84 of file overworld_editor.h.
References overworld_.
Referenced by LoadGraphics(), yaze::editor::EditorManager::overworld(), and Save().
absl::Status yaze::editor::OverworldEditor::ApplyZSCustomOverworldASM | ( | int | target_version | ) |
Apply ZSCustomOverworld ASM patch to upgrade ROM version.
Definition at line 2724 of file overworld_editor.cc.
References yaze::util::GetResourcePath(), yaze::zelda3::Overworld::Load(), yaze::Rom::LoadFromData(), LOG_DEBUG, LOG_ERROR, overworld_, yaze::zelda3::OverworldCustomASMHasBeenApplied, RETURN_IF_ERROR, rom_, UpdateROMVersionMarkers(), and yaze::Rom::vector().
Referenced by DrawToolset().
absl::Status yaze::editor::OverworldEditor::UpdateROMVersionMarkers | ( | int | target_version | ) |
Update ROM version markers and feature flags after ASM patching.
Definition at line 2828 of file overworld_editor.cc.
References yaze::zelda3::kOverworldScreenSize, yaze::zelda3::LargeArea, LOG_DEBUG, yaze::zelda3::OverworldCustomAnimatedGFXEnabled, yaze::zelda3::OverworldCustomAreaSpecificBGEnabled, yaze::zelda3::OverworldCustomASMHasBeenApplied, yaze::zelda3::OverworldCustomMainPaletteEnabled, yaze::zelda3::OverworldCustomMosaicEnabled, yaze::zelda3::OverworldCustomSubscreenOverlayEnabled, yaze::zelda3::OverworldCustomTileGFXGroupEnabled, and yaze::zelda3::SmallArea.
Referenced by ApplyZSCustomOverworldASM().
|
inline |
Definition at line 96 of file overworld_editor.h.
References jump_to_tab_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 100 of file overworld_editor.h.
References yaze::Rom::is_loaded(), and rom_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 101 of file overworld_editor.h.
References yaze::Rom::is_loaded(), rom_, and yaze::Rom::title().
|
inline |
Definition at line 108 of file overworld_editor.h.
References current_map_, current_world_, and yaze::zelda3::kNumOverworldMaps.
Referenced by yaze::editor::EditorManager::JumpToOverworldMap().
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 1669 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::Arena::CREATE, yaze::gfx::CreateTilemap(), yaze::zelda3::Overworld::current_area_palette(), yaze::zelda3::Overworld::current_map_bitmap_data(), current_world_, yaze::core::FeatureFlags::get(), yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), yaze::zelda3::kDarkWorldMapIdStart, yaze::zelda3::kNumOverworldMaps, yaze::zelda3::kNumTile16Individual, yaze::editor::kOverworldMapSize, yaze::zelda3::kSpecialWorldMapIdStart, yaze::editor::kTile16Size, yaze::zelda3::Overworld::Load(), LoadSpriteGraphics(), LOG_DEBUG, map_blockset_loaded_, maps_bmp_, overworld(), overworld_, palette_, yaze::gfx::Arena::QueueTextureCommand(), renderer_, RETURN_IF_ERROR, rom_, yaze::zelda3::Overworld::set_current_map(), yaze::gfx::Bitmap::surface(), tile16_blockset_, and yaze::zelda3::Overworld::tile16_blockset_data().
Referenced by Load().
|
private |
Definition at line 427 of file overworld_editor.cc.
References DrawOverworldCanvas(), DrawToolset(), and overworld_canvas_fullscreen_.
Referenced by Update().
|
private |
Definition at line 444 of file overworld_editor.cc.
References yaze::gui::Toolset::AddAction(), yaze::gui::Toolset::AddProperty(), yaze::gui::Toolset::AddRomBadge(), yaze::gui::Toolset::AddSeparator(), yaze::gui::Toolset::AddToggle(), yaze::gui::Toolset::AddUsageStatsButton(), ApplyZSCustomOverworldASM(), yaze::gui::Toolset::Begin(), yaze::gui::Toolset::BeginModeGroup(), Clear(), current_map_, current_map_lock_, current_mode, DRAW_TILE, yaze::gui::Toolset::End(), yaze::gui::Toolset::EndModeGroup(), entity_edit_mode_, ENTRANCES, EXITS, ICON_MD_ADD_LOCATION, ICON_MD_BRUSH, ICON_MD_CANCEL, ICON_MD_CHECK, ICON_MD_COLLECTIONS, ICON_MD_DOOR_BACK, ICON_MD_DOOR_FRONT, ICON_MD_DRAW, ICON_MD_GRASS, ICON_MD_GRID_3X3, ICON_MD_GRID_4X4, ICON_MD_GRID_VIEW, ICON_MD_IMAGE, ICON_MD_MOUSE, ICON_MD_MUSIC_NOTE, ICON_MD_OPEN_IN_FULL, ICON_MD_PALETTE, ICON_MD_PEST_CONTROL_RODENT, ICON_MD_TUNE, ICON_MD_UPGRADE, ICON_MD_ZOOM_IN, ICON_MD_ZOOM_OUT, ITEMS, Load(), LOG_ERROR, yaze::gui::Toolset::ModeButton(), MOUSE, MUSIC, yaze::zelda3::Overworld::mutable_overworld_map(), NONE, overworld_, overworld_canvas_fullscreen_, yaze::zelda3::OverworldCustomASMHasBeenApplied, ow_map_canvas_, show_area_gfx_, show_gfx_groups_, show_map_properties_panel_, show_scratch_, show_tile16_editor_, show_tile16_selector_, show_tile8_selector_, show_usage_stats_, SPRITES, status_, TRANSPORTS, yaze::gui::Canvas::ZoomIn(), and yaze::gui::Canvas::ZoomOut().
Referenced by DrawFullscreenCanvas(), and Update().
|
private |
Definition at line 1900 of file overworld_editor.cc.
References current_world_, yaze::zelda3::Overworld::GetMapTiles(), maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), yaze::zelda3::Overworld::mutable_tiles16(), overworld_, PRINT_IF_ERROR, status_, and yaze::zelda3::Overworld::tiles16().
|
private |
Definition at line 1915 of file overworld_editor.cc.
References current_map_, and RefreshOverworldMapOnDemand().
Referenced by CheckForCurrentMap(), CheckForOverworldEdits(), Initialize(), Load(), and Paste().
|
private |
On-demand map refresh that only updates what's actually needed.
This method intelligently determines what needs to be refreshed based on the type of change and only updates the necessary components, avoiding expensive full rebuilds when possible.
Definition at line 1927 of file overworld_editor.cc.
References current_map_, current_world_, yaze::zelda3::kNumOverworldMaps, maps_bmp_, and RefreshChildMapOnDemand().
Referenced by ProcessDeferredTextures(), and RefreshOverworldMap().
|
private |
On-demand child map refresh with selective updates.
Definition at line 1950 of file overworld_editor.cc.
References yaze::gfx::Arena::CREATE, current_world_, yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::GetMapTiles(), LOG_ERROR, LOG_WARN, maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), yaze::zelda3::Overworld::mutable_tiles16(), overworld_, yaze::zelda3::OverworldCustomASMHasBeenApplied, yaze::gfx::Arena::QueueTextureCommand(), RefreshMultiAreaMapsSafely(), yaze::zelda3::Overworld::tiles16(), and yaze::gfx::Arena::UPDATE.
Referenced by RefreshOverworldMapOnDemand(), and RefreshSiblingMapGraphics().
|
private |
Safely refresh multi-area maps without recursion.
This function handles the coordination of large, wide, and tall area maps by using a non-recursive approach with explicit map list processing. It respects the ZScream area size logic and prevents infinite recursion.
Definition at line 2029 of file overworld_editor.cc.
References yaze::zelda3::OverworldMap::area_size(), yaze::zelda3::Overworld::current_area_palette(), current_map_, current_world_, EnsureMapTexture(), yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::GetMapTiles(), yaze::zelda3::kNumOverworldMaps, LOG_DEBUG, LOG_ERROR, LOG_WARN, maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), yaze::zelda3::Overworld::mutable_tiles16(), overworld_, yaze::zelda3::OverworldMap::parent(), yaze::gfx::Arena::QueueTextureCommand(), yaze::zelda3::Overworld::tiles16(), and yaze::gfx::Arena::UPDATE.
Referenced by RefreshChildMapOnDemand().
|
private |
Definition at line 2180 of file overworld_editor.cc.
References yaze::zelda3::Overworld::current_area_palette(), current_map_, yaze::zelda3::kNumOverworldMaps, maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::OverworldCustomASMHasBeenApplied, and RETURN_IF_ERROR.
Referenced by Initialize().
|
private |
Definition at line 2319 of file overworld_editor.cc.
References current_map_, game_state_, yaze::zelda3::kNumOverworldMaps, yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, and yaze::zelda3::OverworldCustomASMHasBeenApplied.
Referenced by Initialize().
|
private |
Definition at line 2396 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_blockset_, current_map_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), LOG_DEBUG, overworld_, yaze::zelda3::Overworld::overworld_map(), palette_, yaze::gfx::Arena::QueueTextureCommand(), renderer_, yaze::zelda3::Overworld::set_current_map(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::texture(), tile16_blockset_, yaze::zelda3::Overworld::tile16_blockset_data(), yaze::gfx::Arena::UPDATE, and yaze::gfx::UpdateTilemap().
Referenced by CheckForCurrentMap(), Initialize(), and Load().
|
private |
Definition at line 2258 of file overworld_editor.cc.
References current_blockset_, LOG_DEBUG, and maps_bmp_.
Referenced by Initialize().
|
private |
Definition at line 2270 of file overworld_editor.cc.
References yaze::zelda3::LargeArea, LOG_DEBUG, maps_bmp_, yaze::zelda3::Overworld::mutable_overworld_map(), overworld_, RefreshChildMapOnDemand(), yaze::zelda3::SmallArea, yaze::zelda3::TallArea, and yaze::zelda3::WideArea.
|
private |
Definition at line 677 of file overworld_editor.cc.
References current_map_, current_world_, yaze::gui::Canvas::DrawBitmap(), EnsureMapTexture(), IM_PI, yaze::editor::kOverworldMapSize, maps_bmp_, ow_map_canvas_, and yaze::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 741 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, current_map_, current_tile16_, current_world_, yaze::gui::Canvas::drawn_tile_position(), yaze::gfx::GetTilemapData(), yaze::gfx::Bitmap::is_active(), yaze::editor::kOverworldMapSize, LOG_ERROR, maps_bmp_, yaze::zelda3::Overworld::mutable_map_tiles(), overworld_, ow_map_canvas_, RenderUpdatedMapBitmap(), tile16_blockset_, and yaze::gfx::Bitmap::vector().
Referenced by CheckForOverworldEdits().
|
private |
Definition at line 795 of file overworld_editor.cc.
References current_map_, yaze::gfx::Bitmap::is_active(), yaze::editor::kOverworldMapSize, yaze::editor::kTile16Size, LOG_ERROR, maps_bmp_, yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::size(), and yaze::gfx::Bitmap::WriteToPixel().
Referenced by AutomationSetTile(), CheckForOverworldEdits(), and DrawOverworldEdits().
|
private |
Check for changes to the overworld map.
This function either draws the tile painter with the current tile16 or group of tile16 data with ow_map_canvas_ and DrawOverworldEdits or it checks for left mouse button click/drag to select a tile16 or group of tile16 data from the overworld map canvas. Similar to ZScream selection.
Definition at line 868 of file overworld_editor.cc.
References CheckForSelectRectangle(), current_tile16_, current_world_, DrawOverworldEdits(), yaze::gui::Canvas::DrawTilemapPainter(), yaze::gfx::GetTilemapData(), yaze::editor::kTile16Size, LOG_DEBUG, LOG_ERROR, yaze::zelda3::Overworld::mutable_map_tiles(), overworld_, ow_map_canvas_, RefreshOverworldMap(), RenderUpdatedMapBitmap(), yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_points(), selected_tile16_ids_, and tile16_blockset_.
Referenced by DrawOverworldCanvas().
|
private |
Draw and create the tile16 IDs that are currently selected.
Definition at line 985 of file overworld_editor.cc.
References current_map_, current_tile16_, current_world_, yaze::gui::Canvas::DrawBitmapGroup(), yaze::gui::Canvas::DrawSelectRect(), yaze::zelda3::Overworld::GetTileFromPosition(), yaze::gui::Canvas::global_scale(), overworld_, ow_map_canvas_, ScrollBlocksetCanvasToCurrentTile(), yaze::gui::Canvas::select_rect_active(), selected_tile16_ids_, yaze::gui::Canvas::selected_tile_pos(), yaze::gui::Canvas::selected_tiles(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), yaze::gui::Canvas::set_selected_tile_pos(), and tile16_blockset_.
Referenced by CheckForOverworldEdits().
|
private |
Check for changes to the overworld map. Calls RefreshOverworldMap and RefreshTile16Blockset on the current map if it is modified and is actively being edited.
Definition at line 1118 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, current_map_, current_map_lock_, current_parent_, current_world_, yaze::gui::Canvas::DrawOutline(), yaze::zelda3::Overworld::EnsureMapBuilt(), EnsureMapTexture(), yaze::gui::Canvas::hover_mouse_pos(), yaze::gfx::Bitmap::is_active(), yaze::editor::kOverworldMapSize, maps_bmp_, overworld_, yaze::zelda3::Overworld::overworld_map(), yaze::zelda3::OverworldCustomASMHasBeenApplied, ow_map_canvas_, RefreshOverworldMap(), RefreshTile16Blockset(), RETURN_IF_ERROR, and tile16_blockset_.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 1413 of file overworld_editor.cc.
References HandleOverworldPan().
|
private |
Definition at line 1418 of file overworld_editor.cc.
References yaze::gui::BeginChildBothScrollbars(), yaze::gui::BeginNoPadding(), CheckForCurrentMap(), CheckForOverworldEdits(), current_map_, current_map_lock_, current_mode, current_world_, dragged_entity_, dragged_entity_free_movement_, DRAW_TILE, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), DrawOverworldMaps(), yaze::gui::EndNoPadding(), entity_edit_mode_, entity_renderer_, yaze::zelda3::GameEntity::entity_type_, game_state_, yaze::gui::Canvas::global_scale(), HandleMapInteraction(), HandleOverworldPan(), HandleOverworldZoom(), is_dragging_entity_, yaze::Rom::is_loaded(), yaze::zelda3::Overworld::is_loaded(), yaze::gui::Canvas::IsMouseHovering(), yaze::zelda3::GameEntity::kExit, yaze::zelda3::GameEntity::map_id_, map_properties_system_, MOUSE, yaze::editor::MoveEntityOnGrid(), overworld_, ow_map_canvas_, rom_, yaze::gui::Canvas::scrolling(), yaze::Rom::set_dirty(), show_custom_bg_color_editor_, show_map_properties_panel_, show_overlay_editor_, show_overlay_preview_, status_, yaze::zelda3::GameEntity::UpdateMapProperties(), yaze::zelda3::GameEntity::x_, yaze::zelda3::GameEntity::y_, and yaze::gui::Canvas::zero_point().
Referenced by DrawFullscreenCanvas(), and Update().
|
private |
Definition at line 1533 of file overworld_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), blockset_canvas_, blockset_selector_, current_tile16_, yaze::gui::TileSelectorWidget::Config::display_scale, yaze::gui::TileSelectorWidget::Config::draw_offset, yaze::gui::EndPadding(), yaze::gui::TileSelectorWidget::Config::highlight_color, yaze::gfx::Bitmap::is_active(), yaze::zelda3::kNumTile16Individual, map_blockset_loaded_, yaze::editor::Tile16Editor::SetCurrentTile(), show_tile16_editor_, tile16_blockset_, tile16_editor_, yaze::gui::TileSelectorWidget::Config::tile_size, yaze::gui::TileSelectorWidget::Config::tiles_per_row, yaze::gui::TileSelectorWidget::Config::total_tiles, and UpdateBlocksetSelectorState().
Referenced by Update().
|
private |
Definition at line 1582 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::gui::Canvas::draw_list(), yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gfx::Arena::Get(), yaze::gfx::Arena::gfx_sheets(), graphics_bin_canvas_, and yaze::gui::Canvas::zero_point().
Referenced by Update().
|
private |
Definition at line 1606 of file overworld_editor.cc.
References yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), yaze::zelda3::Overworld::current_area_palette(), current_gfx_canvas_, current_graphics_set_, current_map_, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::EndPadding(), yaze::zelda3::Overworld::is_loaded(), overworld_, palette_, and yaze::zelda3::Overworld::set_current_map().
Referenced by Update().
|
private |
Definition at line 2881 of file overworld_editor.cc.
References blockset_selector_, current_tile16_, and yaze::zelda3::kNumTile16Individual.
Referenced by DrawTile16Selector().
|
private |
Definition at line 1817 of file overworld_editor.cc.
References yaze::zelda3::Overworld::mutable_sprites(), overworld_, palette_, and sprite_previews_.
Referenced by LoadGraphics().
|
private |
Create textures for deferred map bitmaps on demand.
This method should be called periodically to create textures for maps that are needed but haven't had their textures created yet. This allows for smooth loading without blocking the main thread during ROM loading.
Definition at line 1839 of file overworld_editor.cc.
References current_map_, current_world_, yaze::gfx::Arena::Get(), yaze::zelda3::kNumOverworldMaps, maps_bmp_, yaze::gfx::Arena::ProcessTextureQueue(), RefreshOverworldMapOnDemand(), and renderer_.
Referenced by Update().
|
private |
Ensure a specific map has its texture created.
Call this when a map becomes visible or is about to be rendered. It will create the texture if it doesn't exist yet.
Definition at line 1863 of file overworld_editor.cc.
References yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), yaze::zelda3::Overworld::current_map_bitmap_data(), yaze::zelda3::Overworld::EnsureMapBuilt(), yaze::gfx::Arena::Get(), yaze::zelda3::kNumOverworldMaps, yaze::editor::kOverworldMapSize, LOG_ERROR, maps_bmp_, overworld_, yaze::gfx::Arena::QueueTextureCommand(), and yaze::zelda3::Overworld::set_current_map().
Referenced by CheckForCurrentMap(), DrawOverworldMaps(), and RefreshMultiAreaMapsSafely().
|
private |
Definition at line 2482 of file overworld_editor.cc.
References yaze::gui::BeginWindowWithDisplaySettings(), DW_AREA_GFX, DW_AREA_PAL, DW_SPR_GFX_PART1, DW_SPR_GFX_PART2, DW_SPR_PAL_PART1, DW_SPR_PAL_PART2, yaze::gui::EndWindowWithDisplaySettings(), gfx_group_editor_, LW_AREA_GFX, LW_AREA_PAL, LW_SPR_GFX_PART1, LW_SPR_GFX_PART2, LW_SPR_PAL_PART1, LW_SPR_PAL_PART2, yaze::gui::Canvas::mutable_labels(), overworld_, yaze::zelda3::Overworld::overworld_map(), properties_canvas_, status_, yaze::editor::GfxGroupEditor::Update(), and yaze::gui::Canvas::UpdateInfoGrid().
Referenced by UpdateUsageStats().
|
private |
Definition at line 2425 of file overworld_editor.cc.
References current_map_, current_map_lock_, current_world_, yaze::gui::Canvas::drawn_tile_position(), yaze::editor::kOverworldMapSize, ow_map_canvas_, and show_map_properties_panel_.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 1317 of file overworld_editor.cc.
References yaze::gui::Canvas::canvas_size(), yaze::gui::Canvas::global_scale(), middle_mouse_dragging_, ow_map_canvas_, yaze::gui::Canvas::scrolling(), and yaze::gui::Canvas::set_scrolling().
Referenced by CheckForMousePan(), and DrawOverworldCanvas().
|
private |
Definition at line 1345 of file overworld_editor.cc.
References yaze::gui::Canvas::canvas_size(), yaze::gui::Canvas::global_scale(), ow_map_canvas_, yaze::gui::Canvas::scrolling(), yaze::gui::Canvas::set_global_scale(), yaze::gui::Canvas::set_scrolling(), and yaze::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 1394 of file overworld_editor.cc.
References ow_map_canvas_, yaze::gui::Canvas::set_global_scale(), and yaze::gui::Canvas::set_scrolling().
|
private |
Definition at line 1399 of file overworld_editor.cc.
References yaze::gui::Canvas::canvas_size(), yaze::gui::Canvas::global_scale(), ow_map_canvas_, and yaze::gui::Canvas::set_scrolling().
|
private |
Definition at line 2894 of file overworld_editor.cc.
References AutomationGetTile(), AutomationSetTile(), yaze::gui::Canvas::GetAutomationAPI(), ow_map_canvas_, and yaze::gui::CanvasAutomationAPI::SetTilePaintCallback().
Referenced by Initialize().
|
inlineprivate |
Definition at line 207 of file overworld_editor.h.
References ow_map_canvas_.
|
private |
Definition at line 2908 of file overworld_editor.cc.
References current_map_, current_world_, yaze::gfx::GetTilemapData(), yaze::zelda3::Overworld::is_loaded(), overworld_, RenderUpdatedMapBitmap(), yaze::zelda3::Overworld::set_current_map(), yaze::zelda3::Overworld::set_current_world(), yaze::zelda3::Overworld::SetTile(), and tile16_blockset_.
Referenced by SetupCanvasAutomation().
|
private |
Definition at line 2936 of file overworld_editor.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 SetupCanvasAutomation().
|
private |
Scroll the blockset canvas to show the current selected tile16.
Definition at line 2464 of file overworld_editor.cc.
References blockset_selector_, and current_tile16_.
Referenced by CheckForSelectRectangle().
|
private |
Definition at line 44 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), ClearScratchSpace(), yaze::editor::Editor::context_, yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_scratch_slot_, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::Canvas::DrawTileSelector(), yaze::gui::EndPadding(), yaze::gfx::Arena::Get(), yaze::editor::EditorContext::SharedClipboard::has_overworld_tile16, HOVER_HINT, ICON_MD_CONTENT_PASTE, ICON_MD_DOWNLOAD, ICON_MD_UPLOAD, LoadScratchToSelection(), map_blockset_loaded_, overworld_, yaze::editor::EditorContext::SharedClipboard::overworld_height, yaze::editor::EditorContext::SharedClipboard::overworld_tile16_ids, yaze::editor::EditorContext::SharedClipboard::overworld_width, ow_map_canvas_, palette_, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, SaveCurrentSelectionToScratch(), scratch_canvas_, scratch_spaces_, yaze::gui::Canvas::select_rect_active(), yaze::gui::Canvas::selected_points(), yaze::gui::Canvas::selected_tiles(), yaze::gui::Canvas::SetContextMenuEnabled(), and yaze::editor::EditorContext::shared_clipboard.
Referenced by Update().
|
private |
Definition at line 326 of file scratch_space.cc.
References all_gfx_loaded_, yaze::gfx::Arena::CREATE, yaze::zelda3::Overworld::current_area_palette(), current_map_, current_world_, yaze::gfx::Arena::Get(), yaze::zelda3::Overworld::GetTileFromPosition(), overworld_, ow_map_canvas_, palette_, yaze::gfx::Arena::QueueTextureCommand(), scratch_spaces_, 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(), and UpdateScratchBitmapTile().
Referenced by DrawScratchSpace().
|
private |
Definition at line 409 of file scratch_space.cc.
References yaze::util::logf(), and scratch_spaces_.
Referenced by DrawScratchSpace().
|
private |
Definition at line 425 of file scratch_space.cc.
References yaze::gfx::Arena::Get(), yaze::gfx::Arena::QueueTextureCommand(), scratch_spaces_, and yaze::gfx::Arena::UPDATE.
Referenced by DrawScratchSpace().
|
private |
Definition at line 181 of file scratch_space.cc.
References current_scratch_slot_, current_tile16_, yaze::gui::Canvas::drawn_tile_position(), yaze::gui::Canvas::global_scale(), scratch_canvas_, scratch_spaces_, and UpdateScratchBitmapTile().
|
private |
Definition at line 218 of file scratch_space.cc.
References yaze::editor::Editor::context_, current_scratch_slot_, yaze::gui::Canvas::drawn_tile_position(), yaze::editor::EditorContext::SharedClipboard::has_overworld_tile16, yaze::editor::EditorContext::SharedClipboard::overworld_height, yaze::editor::EditorContext::SharedClipboard::overworld_tile16_ids, yaze::editor::EditorContext::SharedClipboard::overworld_width, scratch_canvas_, scratch_spaces_, yaze::editor::EditorContext::shared_clipboard, and UpdateScratchBitmapTile().
|
private |
|
private |
Definition at line 272 of file scratch_space.cc.
References current_scratch_slot_, yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::gfx::Arena::QueueTextureCommand(), scratch_spaces_, tile16_blockset_, and yaze::gfx::Arena::UPDATE.
Referenced by DrawScratchSpaceEdits(), DrawScratchSpacePattern(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 2587 of file overworld_editor.cc.
References yaze::core::ResourceLabelManager::CreateOrGetLabel(), DrawOverworldProperties(), DrawUsageGrid(), yaze::zelda3::Overworld::entrances(), yaze::util::HexByte(), yaze::zelda3::kEntranceNames, overworld_, properties_canvas_, yaze::Rom::resource_label(), rom_, selected_entrance_, selected_usage_map_, and yaze::gui::Canvas::set_highlight_tile_id().
Referenced by Update().
|
private |
Definition at line 2640 of file overworld_editor.cc.
References yaze::gui::GetSelectedColor(), and selected_usage_map_.
Referenced by UpdateUsageStats().
|
private |
Definition at line 2686 of file overworld_editor.cc.
References current_map_, current_tile16_, yaze::gui::Canvas::drawn_tile_position(), yaze::zelda3::Overworld::mutable_map_tiles(), overworld_, and ow_map_canvas_.
int yaze::editor::OverworldEditor::jump_to_tab_ = -1 |
Definition at line 97 of file overworld_editor.h.
Referenced by jump_to_tab(), and Update().
|
private |
Definition at line 160 of file overworld_editor.h.
Referenced by CheckForOverworldEdits(), and CheckForSelectRectangle().
|
private |
Definition at line 237 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), DrawToolset(), and Update().
|
private |
Definition at line 238 of file overworld_editor.h.
|
private |
Definition at line 251 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), and DrawToolset().
|
private |
Definition at line 268 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), CheckForCurrentMap(), CheckForOverworldEdits(), CheckForSelectRectangle(), Copy(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldMaps(), HandleMapInteraction(), LoadGraphics(), Paste(), ProcessDeferredTextures(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMultiAreaMapsSafely(), RefreshOverworldMapOnDemand(), SaveCurrentSelectionToScratch(), and set_current_map().
|
private |
Definition at line 269 of file overworld_editor.h.
Referenced by AutomationGetTile(), AutomationSetTile(), CheckForCurrentMap(), CheckForSelectRectangle(), Copy(), DrawAreaGraphics(), DrawDebugWindow(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldMaps(), DrawToolset(), HandleMapInteraction(), Paste(), ProcessDeferredTextures(), RefreshMapPalette(), RefreshMapProperties(), RefreshMultiAreaMapsSafely(), RefreshOverworldMap(), RefreshOverworldMapOnDemand(), RefreshTile16Blockset(), RenderUpdatedMapBitmap(), SaveCurrentSelectionToScratch(), set_current_map(), and Update().
|
private |
Definition at line 270 of file overworld_editor.h.
Referenced by CheckForCurrentMap().
|
private |
Definition at line 271 of file overworld_editor.h.
|
private |
Definition at line 272 of file overworld_editor.h.
|
private |
Definition at line 273 of file overworld_editor.h.
|
private |
Definition at line 274 of file overworld_editor.h.
|
private |
Definition at line 275 of file overworld_editor.h.
Referenced by ForceRefreshGraphics(), and RefreshTile16Blockset().
|
private |
Definition at line 276 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), and RefreshMapProperties().
|
private |
Definition at line 277 of file overworld_editor.h.
Referenced by CheckForOverworldEdits(), CheckForSelectRectangle(), Copy(), DrawDebugWindow(), DrawOverworldEdits(), DrawScratchSpaceEdits(), DrawTile16Selector(), ScrollBlocksetCanvasToCurrentTile(), and UpdateBlocksetSelectorState().
|
private |
Definition at line 278 of file overworld_editor.h.
Referenced by UpdateUsageStats().
|
private |
Definition at line 279 of file overworld_editor.h.
Referenced by DrawUsageGrid(), and UpdateUsageStats().
|
private |
Definition at line 281 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), DrawTile8Selector(), Load(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 282 of file overworld_editor.h.
Referenced by Clear(), DrawScratchSpace(), DrawTile16Selector(), and LoadGraphics().
|
private |
Definition at line 283 of file overworld_editor.h.
|
private |
Definition at line 284 of file overworld_editor.h.
Referenced by DrawTile16Selector(), DrawToolset(), and Update().
|
private |
Definition at line 285 of file overworld_editor.h.
|
private |
Definition at line 286 of file overworld_editor.h.
|
private |
Definition at line 287 of file overworld_editor.h.
Referenced by DrawFullscreenCanvas(), DrawToolset(), and Update().
|
private |
Definition at line 288 of file overworld_editor.h.
Referenced by HandleOverworldPan().
|
private |
Definition at line 289 of file overworld_editor.h.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 290 of file overworld_editor.h.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 291 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), DrawOverworldCanvas(), DrawToolset(), and HandleMapInteraction().
|
private |
Definition at line 292 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), and Update().
|
private |
Definition at line 293 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), and Update().
|
private |
Definition at line 294 of file overworld_editor.h.
|
private |
Definition at line 295 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), DrawToolset(), HandleMapInteraction(), and Update().
|
private |
Definition at line 296 of file overworld_editor.h.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 299 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 300 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 301 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 302 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 303 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 304 of file overworld_editor.h.
Referenced by DrawToolset(), Initialize(), and Update().
|
private |
Definition at line 305 of file overworld_editor.h.
Referenced by Initialize().
|
private |
Definition at line 308 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), Initialize(), and Update().
|
private |
Definition at line 309 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), Initialize(), and Update().
|
private |
Definition at line 325 of file overworld_editor.h.
Referenced by ClearScratchSpace(), DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), LoadScratchToSelection(), SaveCurrentSelectionToScratch(), and UpdateScratchBitmapTile().
|
private |
Definition at line 326 of file overworld_editor.h.
Referenced by DrawScratchSpace(), DrawScratchSpaceEdits(), DrawScratchSpacePattern(), and UpdateScratchBitmapTile().
|
private |
Definition at line 328 of file overworld_editor.h.
Referenced by AutomationSetTile(), CheckForCurrentMap(), CheckForOverworldEdits(), CheckForSelectRectangle(), DrawOverworldEdits(), DrawTile16Selector(), LoadGraphics(), RefreshTile16Blockset(), and UpdateScratchBitmapTile().
|
private |
Definition at line 330 of file overworld_editor.h.
Referenced by ApplyZSCustomOverworldASM(), DrawOverworldCanvas(), GetRomStatus(), Initialize(), IsRomLoaded(), Load(), LoadGraphics(), Update(), and UpdateUsageStats().
|
private |
Definition at line 332 of file overworld_editor.h.
Referenced by LoadGraphics(), ProcessDeferredTextures(), and RefreshTile16Blockset().
|
private |
Definition at line 333 of file overworld_editor.h.
Referenced by DrawTile16Selector(), Load(), and Update().
|
private |
Definition at line 334 of file overworld_editor.h.
Referenced by DrawOverworldProperties(), OverworldEditor(), and Update().
|
private |
Definition at line 335 of file overworld_editor.h.
|
private |
Definition at line 337 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), DrawScratchSpace(), Load(), LoadGraphics(), LoadSpriteGraphics(), RefreshTile16Blockset(), and SaveCurrentSelectionToScratch().
|
private |
Definition at line 339 of file overworld_editor.h.
|
private |
Definition at line 340 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 341 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 342 of file overworld_editor.h.
|
private |
Definition at line 344 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), DrawOverworldEdits(), DrawOverworldMaps(), EnsureMapTexture(), ForceRefreshGraphics(), Initialize(), LoadGraphics(), ProcessDeferredTextures(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMapPalette(), RefreshMultiAreaMapsSafely(), RefreshOverworldMapOnDemand(), RefreshSiblingMapGraphics(), and RenderUpdatedMapBitmap().
|
private |
Definition at line 345 of file overworld_editor.h.
Referenced by Clear(), and DrawAreaGraphics().
|
private |
Definition at line 346 of file overworld_editor.h.
Referenced by Initialize(), and LoadSpriteGraphics().
|
private |
Definition at line 351 of file overworld_editor.h.
Referenced by ApplyZSCustomOverworldASM(), AutomationGetTile(), AutomationSetTile(), CheckForCurrentMap(), CheckForOverworldEdits(), CheckForSelectRectangle(), Clear(), Copy(), DrawAreaGraphics(), DrawDebugWindow(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldProperties(), DrawScratchSpace(), DrawToolset(), EnsureMapTexture(), Initialize(), Load(), LoadGraphics(), LoadSpriteGraphics(), overworld(), Paste(), RefreshChildMap(), RefreshChildMapOnDemand(), RefreshMapPalette(), RefreshMapProperties(), RefreshMultiAreaMapsSafely(), RefreshSiblingMapGraphics(), RefreshTile16Blockset(), Save(), SaveCurrentSelectionToScratch(), Update(), and UpdateUsageStats().
|
private |
Definition at line 352 of file overworld_editor.h.
|
private |
Definition at line 354 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 356 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 357 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 358 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 359 of file overworld_editor.h.
Referenced by Load().
|
private |
Definition at line 361 of file overworld_editor.h.
Referenced by Update().
|
private |
Definition at line 362 of file overworld_editor.h.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 364 of file overworld_editor.h.
Referenced by CenterOverworldView(), CheckForCurrentMap(), CheckForOverworldEdits(), CheckForSelectRectangle(), Copy(), DrawDebugWindow(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldMaps(), DrawScratchSpace(), DrawToolset(), GetOverworldCanvas(), HandleMapInteraction(), HandleOverworldPan(), HandleOverworldZoom(), Initialize(), Paste(), ResetOverworldView(), SaveCurrentSelectionToScratch(), and SetupCanvasAutomation().
|
private |
Definition at line 366 of file overworld_editor.h.
Referenced by DrawAreaGraphics().
|
private |
Definition at line 368 of file overworld_editor.h.
Referenced by DrawTile16Selector().
|
private |
Definition at line 370 of file overworld_editor.h.
Referenced by DrawTile16Selector(), ScrollBlocksetCanvasToCurrentTile(), and UpdateBlocksetSelectorState().
|
private |
Definition at line 371 of file overworld_editor.h.
Referenced by DrawTile8Selector().
|
private |
Definition at line 373 of file overworld_editor.h.
Referenced by DrawOverworldProperties(), and UpdateUsageStats().
|
private |
Definition at line 374 of file overworld_editor.h.
Referenced by DrawScratchSpace(), DrawScratchSpaceEdits(), and DrawScratchSpacePattern().
|
private |
Definition at line 376 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), DrawOverworldProperties(), DrawToolset(), RefreshChildMap(), and Update().