Manipulates the Overworld and OverworldMap data in a Rom. More...
#include <overworld_editor.h>
Public Member Functions | |
OverworldEditor () | |
void | InitializeZeml () |
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 () |
auto | overworld () |
int | jump_to_tab () |
absl::Status | LoadGraphics () |
Load the Bitmap objects for each OverworldMap. | |
Public Member Functions inherited from yaze::app::editor::Editor | |
Editor ()=default | |
virtual | ~Editor ()=default |
EditorType | type () const |
Public Member Functions inherited from yaze::app::SharedRom | |
SharedRom ()=default | |
virtual | ~SharedRom ()=default |
std::shared_ptr< Rom > | shared_rom () |
auto | rom () |
Public Member Functions inherited from yaze::app::editor::EntranceContext | |
absl::Status | LoadEntranceTileTypes (Rom &rom) |
Public Member Functions inherited from yaze::app::core::ExperimentFlags | |
ExperimentFlags ()=default | |
virtual | ~ExperimentFlags ()=default |
auto | flags () const |
Flags * | mutable_flags () |
std::string | Serialize () const |
Public Attributes | |
int | jump_to_tab_ = -1 |
Private Types | |
enum class | EditingMode { DRAW_TILE , ENTRANCES , EXITS , ITEMS , SPRITES , TRANSPORTS , MUSIC , PAN } |
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 () |
Draws the canvas, tile16 selector, and toolset in fullscreen. | |
void | DrawToolset () |
Toolset for entrances, exits, items, sprites, and transports. | |
void | DrawOverworldMapSettings () |
Draws the overworld map settings. Graphics, palettes, etc. | |
void | DrawCustomOverworldMapSettings () |
void | RefreshChildMap (int i) |
void | RefreshOverworldMap () |
absl::Status | RefreshMapPalette () |
void | RefreshMapProperties () |
absl::Status | RefreshTile16Blockset () |
void | DrawOverworldEntrances (ImVec2 canvas_p, ImVec2 scrolling, bool holes=false) |
void | DrawOverworldExits (ImVec2 zero, ImVec2 scrolling) |
void | DrawOverworldItems () |
void | DrawOverworldSprites () |
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 () |
Allows the user to make changes to the overworld map. | |
absl::Status | DrawTile16Selector () |
void | DrawTile8Selector () |
absl::Status | DrawAreaGraphics () |
absl::Status | DrawTileSelector () |
absl::Status | LoadSpriteGraphics () |
void | DrawOverworldProperties () |
absl::Status | UpdateUsageStats () |
void | DrawUsageGrid () |
void | DrawDebugWindow () |
Additional Inherited Members | |
Static Public Attributes inherited from yaze::app::SharedRom | |
static std::shared_ptr< Rom > | shared_rom_ = nullptr |
Protected Attributes inherited from yaze::app::editor::Editor | |
EditorType | type_ |
Static Protected Attributes inherited from yaze::app::editor::context::GfxContext | |
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 107 of file overworld_editor.h.
|
strongprivate |
Enumerator | |
---|---|
DRAW_TILE | |
ENTRANCES | |
EXITS | |
ITEMS | |
SPRITES | |
TRANSPORTS | |
MUSIC | |
PAN |
Definition at line 220 of file overworld_editor.h.
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 234 of file overworld_editor.h.
|
inline |
Definition at line 113 of file overworld_editor.h.
References yaze::app::editor::kOverworld, and yaze::app::editor::Editor::type_.
void yaze::app::editor::OverworldEditor::InitializeZeml | ( | ) |
Definition at line 1494 of file overworld_editor.cc.
References yaze::app::gui::zeml::Bind(), yaze::app::gui::zeml::Node::GetNode(), layout_node_, yaze::app::gui::zeml::LoadFile(), and yaze::app::gui::zeml::Parse().
Referenced by yaze::app::editor::EditorManager::SetupScreen().
|
finalvirtual |
Implements yaze::app::editor::Editor.
Definition at line 58 of file overworld_editor.cc.
References all_gfx_loaded_, current_gfx_bmp_, DrawFullscreenCanvas(), yaze::app::editor::Tile16Editor::InitBlockset(), layout_node_, yaze::app::editor::EntranceContext::LoadEntranceTileTypes(), yaze::app::zelda3::overworld::Overworld::mutable_all_tiles_types(), overworld_, overworld_canvas_fullscreen_, yaze::app::gui::zeml::Render(), RETURN_IF_ERROR, yaze::app::SharedRom::rom(), status_, tile16_blockset_bmp_, tile16_editor_, and tile16_individual_.
Referenced by yaze::app::editor::EditorManager::ManageActiveEditors().
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 118 of file overworld_editor.h.
Referenced by DrawToolset().
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 119 of file overworld_editor.h.
Referenced by DrawToolset().
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 120 of file overworld_editor.h.
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 121 of file overworld_editor.h.
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 122 of file overworld_editor.h.
|
inlineoverridevirtual |
Implements yaze::app::editor::Editor.
Definition at line 123 of file overworld_editor.h.
absl::Status yaze::app::editor::OverworldEditor::Save | ( | ) |
Definition at line 1023 of file overworld_editor.cc.
References yaze::app::zelda3::overworld::Overworld::CreateTile32Tilemap(), yaze::app::core::ExperimentFlags::flags(), overworld(), overworld_, RETURN_IF_ERROR, yaze::app::zelda3::overworld::Overworld::SaveEntrances(), yaze::app::zelda3::overworld::Overworld::SaveExits(), yaze::app::zelda3::overworld::Overworld::SaveItems(), yaze::app::zelda3::overworld::Overworld::SaveMap16Tiles(), yaze::app::zelda3::overworld::Overworld::SaveMap32Tiles(), yaze::app::zelda3::overworld::Overworld::SaveMapProperties(), and yaze::app::zelda3::overworld::Overworld::SaveOverworldMaps().
Referenced by yaze::app::editor::EditorManager::SaveRom().
|
inline |
Definition at line 128 of file overworld_editor.h.
References overworld_.
Referenced by DrawOverworldCanvas(), LoadGraphics(), and Save().
|
inline |
Definition at line 133 of file overworld_editor.h.
References jump_to_tab_.
Referenced by yaze::app::editor::EditorManager::ManageActiveEditors().
absl::Status yaze::app::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 1045 of file overworld_editor.cc.
References yaze::app::zelda3::overworld::Overworld::current_area_palette(), current_gfx_bmp_, yaze::app::zelda3::overworld::Overworld::current_graphics(), yaze::app::zelda3::overworld::Overworld::current_map_bitmap_data(), yaze::app::core::ExperimentFlags::flags(), yaze::app::core::Renderer::GetInstance(), yaze::app::zelda3::overworld::kNumOverworldMaps, yaze::app::zelda3::overworld::kNumTile16Individual, yaze::app::editor::kOverworldMapSize, yaze::app::editor::kTile16Size, yaze::app::zelda3::overworld::Overworld::Load(), LoadSpriteGraphics(), map_blockset_loaded_, maps_bmp_, overworld(), overworld_, palette_, RETURN_IF_ERROR, yaze::app::SharedRom::rom(), yaze::app::zelda3::overworld::Overworld::set_current_map(), tile16_blockset_bmp_, yaze::app::zelda3::overworld::Overworld::tile16_blockset_data(), tile16_individual_, and tile16_individual_data_.
Referenced by yaze::app::editor::EditorManager::Update().
|
private |
Draws the canvas, tile16 selector, and toolset in fullscreen.
Definition at line 77 of file overworld_editor.cc.
References DrawOverworldCanvas(), DrawToolset(), yaze::app::core::ExperimentFlags::flags(), and overworld_canvas_fullscreen_.
Referenced by Update().
|
private |
Toolset for entrances, exits, items, sprites, and transports.
Definition at line 94 of file overworld_editor.cc.
References yaze::app::gui::BeginWindowWithDisplaySettings(), yaze::app::core::CopyImageToClipboard(), current_map_, current_mode, yaze::app::editor::DisplayPalette(), DRAW_TILE, DrawOverworldProperties(), yaze::app::gui::EndWindowWithDisplaySettings(), ENTRANCES, EXITS, gfx_group_editor_, HOVER_HINT, ICON_MD_ADD_LOCATION, ICON_MD_CONTENT_COPY, ICON_MD_DOOR_BACK, ICON_MD_DOOR_FRONT, ICON_MD_DRAW, ICON_MD_GRASS, ICON_MD_GRID_VIEW, ICON_MD_MORE_VERT, ICON_MD_MUSIC_NOTE, ICON_MD_OPEN_IN_FULL, ICON_MD_PAN_TOOL_ALT, ICON_MD_PEST_CONTROL_RODENT, ICON_MD_REDO, ICON_MD_TABLE_CHART, ICON_MD_UNDO, ICON_MD_ZOOM_IN, ICON_MD_ZOOM_OUT, yaze::app::zelda3::overworld::Overworld::is_loaded(), ITEMS, yaze::app::editor::kToolsetTableFlags, maps_bmp_, MUSIC, NEXT_COLUMN, overworld_, overworld_canvas_fullscreen_, ow_map_canvas_, palette_, PAN, Redo(), yaze::app::gui::Canvas::set_draggable(), show_tile16_editor_, SPRITES, status_, TEXT_COLUMN, tile16_editor_, TRANSPORTS, Undo(), yaze::app::editor::GfxGroupEditor::Update(), yaze::app::editor::Tile16Editor::Update(), yaze::app::gui::Canvas::ZoomIn(), and yaze::app::gui::Canvas::ZoomOut().
Referenced by DrawFullscreenCanvas().
|
private |
Draws the overworld map settings. Graphics, palettes, etc.
Definition at line 261 of file overworld_editor.cc.
References current_map_, current_world_, game_state_, HOVER_HINT, yaze::app::gui::InputHexByte(), yaze::app::gui::InputHexWord(), yaze::app::editor::kGamePartComboString, yaze::app::editor::kInputFieldSize, yaze::app::editor::kMapSettingsColumnNames, yaze::app::editor::kOWMapFlags, yaze::app::editor::kOWMapTable, yaze::app::editor::kWorldList, yaze::app::zelda3::overworld::Overworld::mutable_overworld_map(), overworld_, RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), and status_.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 331 of file overworld_editor.cc.
References current_map_, current_world_, game_state_, HOVER_HINT, yaze::app::gui::InputHexByte(), yaze::app::gui::InputHexWord(), yaze::app::editor::kGamePartComboString, yaze::app::editor::kInputFieldSize, yaze::app::editor::kMapSettingsColumnNames, yaze::app::editor::kOWMapFlags, yaze::app::editor::kOWMapTable, yaze::app::editor::kWorldList, yaze::app::zelda3::overworld::Overworld::mutable_overworld_map(), overworld_, RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), and status_.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 1119 of file overworld_editor.cc.
References current_world_, yaze::app::zelda3::overworld::Overworld::GetMapTiles(), maps_bmp_, yaze::app::zelda3::overworld::Overworld::mutable_overworld_map(), yaze::app::zelda3::overworld::Overworld::mutable_tiles16(), overworld_, PRINT_IF_ERROR, status_, and yaze::app::zelda3::overworld::Overworld::tiles16().
Referenced by RefreshOverworldMap().
|
private |
Definition at line 1134 of file overworld_editor.cc.
References current_map_, current_parent_, yaze::app::core::Renderer::GetInstance(), maps_bmp_, overworld_, yaze::app::zelda3::overworld::Overworld::overworld_map(), RefreshChildMap(), and yaze::app::core::Renderer::UpdateBitmap().
Referenced by CheckForCurrentMap(), CheckForOverworldEdits(), DrawCustomOverworldMapSettings(), and DrawOverworldMapSettings().
|
private |
Definition at line 1169 of file overworld_editor.cc.
References yaze::app::zelda3::overworld::Overworld::current_area_palette(), current_map_, maps_bmp_, yaze::app::zelda3::overworld::Overworld::mutable_overworld_map(), overworld_, yaze::app::zelda3::overworld::Overworld::overworld_map(), and RETURN_IF_ERROR.
Referenced by DrawCustomOverworldMapSettings(), and DrawOverworldMapSettings().
|
private |
Definition at line 1190 of file overworld_editor.cc.
References current_map_, game_state_, yaze::app::zelda3::overworld::Overworld::mutable_overworld_map(), and overworld_.
Referenced by DrawCustomOverworldMapSettings(), and DrawOverworldMapSettings().
|
private |
Definition at line 1211 of file overworld_editor.cc.
References yaze::app::gfx::Bitmap::ApplyPalette(), yaze::app::zelda3::overworld::Overworld::current_area_palette(), current_blockset_, current_map_, yaze::app::core::Renderer::GetInstance(), yaze::app::zelda3::overworld::kNumTile16Individual, overworld_, yaze::app::zelda3::overworld::Overworld::overworld_map(), palette_, RETURN_IF_ERROR, yaze::app::zelda3::overworld::Overworld::set_current_map(), tile16_blockset_bmp_, yaze::app::zelda3::overworld::Overworld::tile16_blockset_data(), tile16_individual_, and yaze::app::core::Renderer::UpdateBitmap().
Referenced by CheckForCurrentMap().
|
private |
Definition at line 799 of file overworld_editor.cc.
References current_entity_, current_entrance_, current_entrance_id_, current_map_, current_mode, current_world_, yaze::app::zelda3::overworld::Overworld::deleted_entrances(), dragged_entity_, yaze::app::editor::DrawEntranceInserterPopup(), yaze::app::editor::DrawOverworldEntrancePopup(), yaze::app::gui::Canvas::DrawRect(), yaze::app::gui::Canvas::DrawText(), ENTRANCES, yaze::app::zelda3::overworld::Overworld::entrances(), yaze::app::editor::HandleEntityDragging(), yaze::app::gui::Canvas::hover_mouse_pos(), is_dragging_entity_, yaze::app::editor::IsMouseHoveringOverEntity(), jump_to_tab_, yaze::app::zelda3::overworld::Overworld::mutable_deleted_entrances(), overworld_, ow_map_canvas_, and yaze::app::core::UppercaseHexByte().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 865 of file overworld_editor.cc.
References current_entity_, current_exit_, current_exit_id_, current_mode, current_world_, dragged_entity_, yaze::app::editor::DrawExitEditorPopup(), yaze::app::editor::DrawExitInserterPopup(), yaze::app::gui::Canvas::DrawRect(), yaze::app::gui::Canvas::DrawText(), yaze::app::zelda3::GameEntity::entity_id_, EXITS, yaze::app::editor::HandleEntityDragging(), is_dragging_entity_, yaze::app::editor::IsMouseHoveringOverEntity(), jump_to_tab_, yaze::app::zelda3::overworld::Overworld::mutable_exits(), overworld_, ow_map_canvas_, yaze::app::gui::Canvas::scrolling(), yaze::app::core::UppercaseHexByte(), and yaze::app::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 916 of file overworld_editor.cc.
References current_entity_, current_item_, current_item_id_, current_mode, current_world_, dragged_entity_, yaze::app::editor::DrawItemEditorPopup(), yaze::app::editor::DrawItemInsertPopup(), yaze::app::gui::Canvas::DrawRect(), yaze::app::gui::Canvas::DrawText(), yaze::app::editor::HandleEntityDragging(), is_dragging_entity_, yaze::app::editor::IsMouseHoveringOverEntity(), ITEMS, yaze::app::zelda3::overworld::kSecretItemNames, yaze::app::zelda3::overworld::Overworld::mutable_all_items(), overworld_, ow_map_canvas_, yaze::app::gui::Canvas::scrolling(), and yaze::app::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 966 of file overworld_editor.cc.
References current_entity_, current_mode, current_sprite_, current_sprite_id_, dragged_entity_, yaze::app::gui::Canvas::DrawRect(), yaze::app::editor::DrawSpriteEditorPopup(), yaze::app::editor::DrawSpriteInserterPopup(), yaze::app::gui::Canvas::DrawText(), game_state_, yaze::app::editor::HandleEntityDragging(), is_dragging_entity_, yaze::app::editor::IsMouseHoveringOverEntity(), yaze::app::editor::kTile16Size, yaze::app::zelda3::overworld::Overworld::mutable_sprites(), overworld_, ow_map_canvas_, yaze::app::gui::Canvas::scrolling(), SPRITES, and yaze::app::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 406 of file overworld_editor.cc.
References current_world_, yaze::app::gui::Canvas::DrawBitmap(), yaze::app::gui::Canvas::global_scale(), yaze::app::editor::kOverworldMapSize, maps_bmp_, and ow_map_canvas_.
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 423 of file overworld_editor.cc.
References current_map_, current_tile16_, current_world_, yaze::app::gui::Canvas::drawn_tile_position(), yaze::app::editor::kOverworldMapSize, yaze::app::zelda3::overworld::Overworld::mutable_map_tiles(), overworld_, ow_map_canvas_, RenderUpdatedMapBitmap(), and tile16_individual_data_.
Referenced by CheckForOverworldEdits().
|
private |
Definition at line 460 of file overworld_editor.cc.
References current_map_, yaze::app::editor::kOverworldMapSize, yaze::app::editor::kTile16Size, maps_bmp_, yaze::app::gfx::Bitmap::set_modified(), and yaze::app::gfx::Bitmap::WriteToPixel().
Referenced by 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 486 of file overworld_editor.cc.
References blockset_canvas_, CheckForSelectRectangle(), current_tile16_, current_world_, DrawOverworldEdits(), yaze::app::gui::Canvas::DrawTilePainter(), yaze::app::zelda3::overworld::Overworld::GetTileFromPosition(), yaze::app::editor::kTile16Size, yaze::app::zelda3::overworld::Overworld::mutable_map_tiles(), overworld_, ow_map_canvas_, yaze::app::gui::Canvas::points(), RefreshOverworldMap(), yaze::app::gui::Canvas::select_rect_active(), yaze::app::gui::Canvas::selected_points(), yaze::app::gui::Canvas::selected_tiles(), and tile16_individual_.
Referenced by DrawOverworldCanvas().
|
private |
Draw and create the tile16 IDs that are currently selected.
Definition at line 548 of file overworld_editor.cc.
References current_map_, current_tile16_, yaze::app::gui::Canvas::DrawBitmapGroup(), yaze::app::gui::Canvas::DrawSelectRect(), yaze::app::zelda3::overworld::Overworld::GetTileFromPosition(), overworld_, ow_map_canvas_, yaze::app::gui::Canvas::select_rect_active(), yaze::app::gui::Canvas::selected_tile_pos(), yaze::app::gui::Canvas::selected_tiles(), yaze::app::gui::Canvas::set_selected_tile_pos(), and tile16_individual_.
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 575 of file overworld_editor.cc.
References current_map_, current_parent_, current_world_, yaze::app::gui::Canvas::DrawOutline(), yaze::app::core::Renderer::GetInstance(), yaze::app::editor::kOverworldMapSize, maps_bmp_, overworld_, yaze::app::zelda3::overworld::Overworld::overworld_map(), ow_map_canvas_, RefreshOverworldMap(), RefreshTile16Blockset(), RETURN_IF_ERROR, yaze::app::core::Renderer::UpdateBitmap(), and yaze::app::gui::Canvas::zero_point().
Referenced by DrawOverworldCanvas().
|
private |
Definition at line 624 of file overworld_editor.cc.
References current_mode, middle_mouse_dragging_, ow_map_canvas_, PAN, previous_mode, and yaze::app::gui::Canvas::set_draggable().
Referenced by DrawOverworldCanvas().
|
private |
Allows the user to make changes to the overworld map.
Definition at line 639 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::app::gui::BeginChildBothScrollbars(), yaze::app::gui::BeginNoPadding(), CheckForCurrentMap(), CheckForMousePan(), CheckForOverworldEdits(), current_mode, DRAW_TILE, yaze::app::gui::Canvas::DrawBackground(), yaze::app::gui::Canvas::DrawContextMenu(), DrawCustomOverworldMapSettings(), yaze::app::gui::Canvas::DrawGrid(), yaze::app::gui::Canvas::DrawOverlay(), DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), DrawOverworldMaps(), DrawOverworldMapSettings(), DrawOverworldSprites(), yaze::app::gui::EndNoPadding(), yaze::app::core::ExperimentFlags::flags(), yaze::app::zelda3::overworld::Overworld::is_loaded(), overworld(), overworld_, ow_map_canvas_, PAN, yaze::app::gui::Canvas::scrolling(), yaze::app::gui::Canvas::set_draggable(), status_, and yaze::app::gui::Canvas::zero_point().
Referenced by DrawFullscreenCanvas().
|
private |
Definition at line 686 of file overworld_editor.cc.
References yaze::app::gui::BeginChildWithScrollbar(), yaze::app::gui::BeginPadding(), blockset_canvas_, current_tile16_, yaze::app::gui::Canvas::DrawBackground(), yaze::app::gui::Canvas::DrawBitmap(), yaze::app::gui::Canvas::DrawContextMenu(), yaze::app::gui::Canvas::DrawGrid(), yaze::app::gui::Canvas::DrawOverlay(), yaze::app::gui::Canvas::DrawTileSelector(), yaze::app::gui::EndNoPadding(), map_blockset_loaded_, yaze::app::gui::Canvas::points(), RETURN_IF_ERROR, yaze::app::editor::Tile16Editor::SetCurrentTile(), show_tile16_editor_, tile16_blockset_bmp_, and tile16_editor_.
Referenced by DrawTileSelector().
|
private |
Definition at line 721 of file overworld_editor.cc.
References all_gfx_loaded_, yaze::app::gui::Canvas::draw_list(), yaze::app::gui::Canvas::DrawBackground(), yaze::app::gui::Canvas::DrawContextMenu(), yaze::app::gui::Canvas::DrawGrid(), yaze::app::gui::Canvas::DrawOverlay(), graphics_bin_canvas_, yaze::app::SharedRom::rom(), and yaze::app::gui::Canvas::zero_point().
Referenced by DrawTileSelector().
|
private |
Definition at line 745 of file overworld_editor.cc.
References yaze::app::gui::BeginChildWithScrollbar(), yaze::app::gui::BeginPadding(), yaze::app::zelda3::overworld::Overworld::current_area_palette(), current_gfx_canvas_, yaze::app::zelda3::overworld::Overworld::current_graphics(), current_graphics_set_, current_map_, yaze::app::gui::Canvas::DrawBackground(), yaze::app::gui::Canvas::DrawBitmap(), yaze::app::gui::Canvas::DrawContextMenu(), yaze::app::gui::Canvas::DrawGrid(), yaze::app::gui::Canvas::DrawOverlay(), yaze::app::gui::Canvas::DrawTileSelector(), yaze::app::gui::EndPadding(), yaze::app::core::Renderer::GetInstance(), yaze::app::zelda3::overworld::Overworld::is_loaded(), yaze::app::editor::kOverworldMapSize, overworld_, palette_, RETURN_IF_ERROR, and yaze::app::zelda3::overworld::Overworld::set_current_map().
Referenced by DrawTileSelector().
|
private |
Definition at line 775 of file overworld_editor.cc.
References yaze::app::gui::BeginChildWithScrollbar(), yaze::app::gui::BeginPadding(), DrawAreaGraphics(), DrawTile16Selector(), DrawTile8Selector(), yaze::app::gui::EndNoPadding(), yaze::app::editor::kTileSelectorTab, and status_.
|
private |
Definition at line 1104 of file overworld_editor.cc.
References yaze::app::core::Renderer::GetInstance(), overworld_, palette_, yaze::app::core::Renderer::RenderBitmap(), RETURN_IF_ERROR, sprite_previews_, and yaze::app::zelda3::overworld::Overworld::sprites().
Referenced by LoadGraphics().
|
private |
Definition at line 1261 of file overworld_editor.cc.
References yaze::app::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::app::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::app::gui::Canvas::mutable_labels(), overworld_, yaze::app::zelda3::overworld::Overworld::overworld_map(), properties_canvas_, status_, yaze::app::editor::GfxGroupEditor::Update(), and yaze::app::gui::Canvas::UpdateInfoGrid().
Referenced by DrawToolset(), and UpdateUsageStats().
|
private |
Definition at line 1366 of file overworld_editor.cc.
References DrawOverworldProperties(), DrawUsageGrid(), yaze::app::zelda3::overworld::Overworld::entrances(), yaze::app::editor::kOWEditFlags, overworld_, properties_canvas_, yaze::app::SharedRom::rom(), selected_entrance_, selected_usage_map_, yaze::app::gui::Canvas::set_highlight_tile_id(), and yaze::app::core::UppercaseHexByte().
|
private |
Definition at line 1416 of file overworld_editor.cc.
References selected_usage_map_.
Referenced by UpdateUsageStats().
|
private |
Definition at line 1464 of file overworld_editor.cc.
References current_map_, current_tile16_, yaze::app::gui::Canvas::drawn_tile_position(), yaze::app::zelda3::overworld::Overworld::mutable_map_tiles(), overworld_, and ow_map_canvas_.
int yaze::app::editor::OverworldEditor::jump_to_tab_ = -1 |
Definition at line 134 of file overworld_editor.h.
Referenced by DrawOverworldEntrances(), DrawOverworldExits(), jump_to_tab(), and yaze::app::editor::EditorManager::ManageActiveEditors().
|
private |
Definition at line 231 of file overworld_editor.h.
Referenced by CheckForMousePan(), DrawOverworldCanvas(), DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), DrawOverworldSprites(), and DrawToolset().
|
private |
Definition at line 232 of file overworld_editor.h.
Referenced by CheckForMousePan().
|
private |
Definition at line 249 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), CheckForOverworldEdits(), DrawCustomOverworldMapSettings(), DrawOverworldEdits(), DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), DrawOverworldMaps(), DrawOverworldMapSettings(), and RefreshChildMap().
|
private |
Definition at line 250 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), CheckForSelectRectangle(), DrawAreaGraphics(), DrawCustomOverworldMapSettings(), DrawDebugWindow(), DrawOverworldEdits(), DrawOverworldEntrances(), DrawOverworldMapSettings(), DrawToolset(), RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshTile16Blockset(), and RenderUpdatedMapBitmap().
|
private |
Definition at line 251 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), and RefreshOverworldMap().
|
private |
Definition at line 252 of file overworld_editor.h.
Referenced by DrawOverworldEntrances().
|
private |
Definition at line 253 of file overworld_editor.h.
Referenced by DrawOverworldExits().
|
private |
Definition at line 254 of file overworld_editor.h.
Referenced by DrawOverworldItems().
|
private |
Definition at line 255 of file overworld_editor.h.
Referenced by DrawOverworldSprites().
|
private |
Definition at line 256 of file overworld_editor.h.
Referenced by RefreshTile16Blockset().
|
private |
Definition at line 257 of file overworld_editor.h.
Referenced by DrawCustomOverworldMapSettings(), DrawOverworldMapSettings(), DrawOverworldSprites(), and RefreshMapProperties().
|
private |
Definition at line 258 of file overworld_editor.h.
Referenced by CheckForOverworldEdits(), CheckForSelectRectangle(), DrawDebugWindow(), DrawOverworldEdits(), and DrawTile16Selector().
|
private |
Definition at line 259 of file overworld_editor.h.
Referenced by UpdateUsageStats().
|
private |
Definition at line 260 of file overworld_editor.h.
Referenced by DrawUsageGrid(), and UpdateUsageStats().
|
private |
Definition at line 262 of file overworld_editor.h.
Referenced by DrawOverworldCanvas(), DrawTile8Selector(), and Update().
|
private |
Definition at line 263 of file overworld_editor.h.
Referenced by DrawTile16Selector(), and LoadGraphics().
|
private |
Definition at line 264 of file overworld_editor.h.
|
private |
Definition at line 265 of file overworld_editor.h.
Referenced by DrawTile16Selector(), and DrawToolset().
|
private |
Definition at line 266 of file overworld_editor.h.
Referenced by DrawFullscreenCanvas(), DrawToolset(), and Update().
|
private |
Definition at line 267 of file overworld_editor.h.
Referenced by CheckForMousePan().
|
private |
Definition at line 268 of file overworld_editor.h.
Referenced by DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), and DrawOverworldSprites().
|
private |
Definition at line 270 of file overworld_editor.h.
|
private |
Definition at line 271 of file overworld_editor.h.
Referenced by DrawOverworldEdits(), and LoadGraphics().
|
private |
Definition at line 272 of file overworld_editor.h.
Referenced by CheckForOverworldEdits(), CheckForSelectRectangle(), LoadGraphics(), RefreshTile16Blockset(), and Update().
|
private |
Definition at line 274 of file overworld_editor.h.
|
private |
Definition at line 275 of file overworld_editor.h.
|
private |
Definition at line 277 of file overworld_editor.h.
Referenced by DrawTile16Selector(), DrawToolset(), and Update().
|
private |
Definition at line 278 of file overworld_editor.h.
Referenced by DrawOverworldProperties(), and DrawToolset().
|
private |
Definition at line 279 of file overworld_editor.h.
|
private |
Definition at line 281 of file overworld_editor.h.
Referenced by DrawAreaGraphics(), DrawToolset(), LoadGraphics(), LoadSpriteGraphics(), and RefreshTile16Blockset().
|
private |
Definition at line 283 of file overworld_editor.h.
|
private |
Definition at line 284 of file overworld_editor.h.
Referenced by DrawTile16Selector(), LoadGraphics(), RefreshTile16Blockset(), and Update().
|
private |
Definition at line 285 of file overworld_editor.h.
Referenced by LoadGraphics(), and Update().
|
private |
Definition at line 286 of file overworld_editor.h.
|
private |
Definition at line 288 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), DrawOverworldMaps(), DrawToolset(), LoadGraphics(), RefreshChildMap(), RefreshMapPalette(), RefreshOverworldMap(), and RenderUpdatedMapBitmap().
|
private |
Definition at line 289 of file overworld_editor.h.
Referenced by DrawAreaGraphics().
|
private |
Definition at line 290 of file overworld_editor.h.
Referenced by LoadSpriteGraphics().
|
private |
Definition at line 292 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), CheckForOverworldEdits(), CheckForSelectRectangle(), DrawAreaGraphics(), DrawCustomOverworldMapSettings(), DrawDebugWindow(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), DrawOverworldMapSettings(), DrawOverworldProperties(), DrawOverworldSprites(), DrawToolset(), LoadGraphics(), LoadSpriteGraphics(), overworld(), RefreshChildMap(), RefreshMapPalette(), RefreshMapProperties(), RefreshOverworldMap(), RefreshTile16Blockset(), Save(), Update(), and UpdateUsageStats().
|
private |
Definition at line 293 of file overworld_editor.h.
|
private |
Definition at line 295 of file overworld_editor.h.
Referenced by DrawOverworldSprites().
|
private |
Definition at line 297 of file overworld_editor.h.
Referenced by DrawOverworldEntrances().
|
private |
Definition at line 298 of file overworld_editor.h.
Referenced by DrawOverworldExits().
|
private |
Definition at line 299 of file overworld_editor.h.
Referenced by DrawOverworldItems().
|
private |
Definition at line 301 of file overworld_editor.h.
Referenced by DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), and DrawOverworldSprites().
|
private |
Definition at line 302 of file overworld_editor.h.
Referenced by DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), and DrawOverworldSprites().
|
private |
Definition at line 304 of file overworld_editor.h.
Referenced by CheckForCurrentMap(), CheckForMousePan(), CheckForOverworldEdits(), CheckForSelectRectangle(), DrawDebugWindow(), DrawOverworldCanvas(), DrawOverworldEdits(), DrawOverworldEntrances(), DrawOverworldExits(), DrawOverworldItems(), DrawOverworldMaps(), DrawOverworldSprites(), and DrawToolset().
|
private |
Definition at line 306 of file overworld_editor.h.
Referenced by DrawAreaGraphics().
|
private |
Definition at line 308 of file overworld_editor.h.
Referenced by CheckForOverworldEdits(), and DrawTile16Selector().
|
private |
Definition at line 310 of file overworld_editor.h.
Referenced by DrawTile8Selector().
|
private |
Definition at line 312 of file overworld_editor.h.
Referenced by DrawOverworldProperties(), and UpdateUsageStats().
|
private |
Definition at line 313 of file overworld_editor.h.
Referenced by InitializeZeml(), and Update().
|
private |
Definition at line 314 of file overworld_editor.h.
Referenced by DrawCustomOverworldMapSettings(), DrawOverworldCanvas(), DrawOverworldMapSettings(), DrawOverworldProperties(), DrawTileSelector(), DrawToolset(), RefreshChildMap(), and Update().