yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::DungeonCanvasViewer Class Reference

#include <dungeon_canvas_viewer.h>

Classes

struct  EntityVisibility
 
struct  ObjectOutlineToggles
 
struct  ObjectRenderCache
 

Public Member Functions

 DungeonCanvasViewer (Rom *rom=nullptr)
 
void DrawDungeonCanvas (int room_id)
 
void Draw (int room_id)
 
void SetContext (EditorContext ctx)
 
EditorContext context () const
 
void SetRom (Rom *rom)
 
Romrom () const
 
void SetGameData (zelda3::GameData *game_data)
 
zelda3::GameDatagame_data () const
 
void SetRenderer (gfx::IRenderer *renderer)
 
void SetRooms (std::array< zelda3::Room, 0x128 > *rooms)
 
std::array< zelda3::Room, 0x128 > * rooms () const
 
bool HasRooms () const
 
int current_room_id () const
 
void SetCompactHeaderMode (bool compact)
 
bool compact_header_mode () const
 
void SetRoomDetailsExpanded (bool expanded)
 
void set_active_rooms (const ImVector< int > &rooms)
 
void set_current_active_room_tab (int tab)
 
void set_current_palette_group_id (uint64_t id)
 
void SetCurrentPaletteId (uint64_t id)
 
void SetCurrentPaletteGroup (const gfx::PaletteGroup &group)
 
void SetRoomNavigationCallback (std::function< void(int)> callback)
 
void SetRoomSwapCallback (std::function< void(int, int)> callback)
 
bool CanNavigateRooms () const
 
void NavigateToRoom (int target_room)
 
void SetShowObjectPanelCallback (std::function< void()> callback)
 
void SetShowSpritePanelCallback (std::function< void()> callback)
 
void SetShowItemPanelCallback (std::function< void()> callback)
 
void SetShowRoomListCallback (std::function< void()> callback)
 
void SetShowRoomMatrixCallback (std::function< void()> callback)
 
void SetShowEntranceListCallback (std::function< void()> callback)
 
void set_show_custom_collision_overlay (bool show)
 
bool show_custom_collision_overlay () const
 
void set_show_water_fill_overlay (bool show)
 
bool show_water_fill_overlay () const
 
bool show_track_collision_overlay () const
 
void set_show_track_collision_overlay (bool show)
 
bool show_camera_quadrant_overlay () const
 
void set_show_camera_quadrant_overlay (bool show)
 
bool show_minecart_sprite_overlay () const
 
void set_show_minecart_sprite_overlay (bool show)
 
bool show_track_gap_overlay () const
 
void set_show_track_gap_overlay (bool show)
 
bool show_track_route_overlay () const
 
void set_show_track_route_overlay (bool show)
 
bool show_custom_objects_overlay () const
 
void set_show_custom_objects_overlay (bool show)
 
bool show_grid () const
 
void set_show_grid (bool show)
 
bool show_object_bounds () const
 
void set_show_object_bounds (bool show)
 
bool show_coordinate_overlay () const
 
void set_show_coordinate_overlay (bool show)
 
bool show_room_debug_info () const
 
void set_show_room_debug_info (bool show)
 
bool show_texture_debug () const
 
void set_show_texture_debug (bool show)
 
bool show_layer_info () const
 
void set_show_layer_info (bool show)
 
bool show_minecart_tracks () const
 
void set_show_minecart_tracks (bool show)
 
bool show_track_collision_legend () const
 
void set_show_track_collision_legend (bool show)
 
bool * mutable_show_grid ()
 
bool * mutable_show_object_bounds ()
 
bool * mutable_show_coordinate_overlay ()
 
bool * mutable_show_room_debug_info ()
 
bool * mutable_show_texture_debug ()
 
bool * mutable_show_layer_info ()
 
bool * mutable_show_minecart_tracks ()
 
bool * mutable_show_custom_collision_overlay ()
 
bool * mutable_show_track_collision_overlay ()
 
bool * mutable_show_camera_quadrant_overlay ()
 
bool * mutable_show_minecart_sprite_overlay ()
 
bool * mutable_show_track_collision_legend ()
 
void SetShowRoomGraphicsCallback (std::function< void()> callback)
 
void SetShowDungeonSettingsCallback (std::function< void()> callback)
 
void SetSaveRoomCallback (std::function< void(int)> callback)
 
void SetEditGraphicsCallback (std::function< void(int, const zelda3::RoomObject &)> callback)
 
void SetMinecartTrackPanel (MinecartTrackEditorPanel *panel)
 
void SetPinned (bool pinned)
 
void SetPinCallback (std::function< void(bool)> callback)
 
void SetProject (const project::YazeProject *project)
 
gui::Canvascanvas ()
 
const gui::Canvascanvas () const
 
DungeonObjectInteractionobject_interaction ()
 
void SetEditorSystem (zelda3::DungeonEditorSystem *system)
 
void SetObjectInteractionEnabled (bool enabled)
 
bool IsObjectInteractionEnabled () const
 
void SetHeaderReadOnly (bool read_only)
 
bool header_read_only () const
 
void SetHeaderVisible (bool visible)
 
bool header_visible () const
 
void SetObjectRenderMode (ObjectRenderMode mode)
 
ObjectRenderMode GetObjectRenderMode () const
 
void SetLayerVisible (int room_id, zelda3::LayerType layer, bool visible)
 
bool IsLayerVisible (int room_id, zelda3::LayerType layer) const
 
void SetBG1Visible (int room_id, bool visible)
 
void SetBG2Visible (int room_id, bool visible)
 
bool IsBG1Visible (int room_id) const
 
bool IsBG2Visible (int room_id) const
 
void SetLayerBlendMode (int room_id, zelda3::LayerType layer, zelda3::LayerBlendMode mode)
 
zelda3::LayerBlendMode GetLayerBlendMode (int room_id, zelda3::LayerType layer) const
 
void SetObjectTranslucent (int room_id, size_t object_index, bool translucent, uint8_t alpha=128)
 
zelda3::RoomLayerManagerGetRoomLayerManager (int room_id)
 
const zelda3::RoomLayerManagerGetRoomLayerManager (int room_id) const
 
void SetBG2LayerType (int room_id, int type)
 
int GetBG2LayerType (int room_id) const
 
void SetPreviewObject (const zelda3::RoomObject &object)
 
void ClearPreviewObject ()
 
void ScrollToTile (int tile_x, int tile_y)
 
bool HasPendingScrollTarget () const
 
std::optional< std::pair< int, int > > GetPendingScrollTarget () const
 
void DeleteSelectedObjects ()
 
void SetSpritesVisible (bool visible)
 
bool AreSpritesVisible () const
 
void SetPotItemsVisible (bool visible)
 
bool ArePotItemsVisible () const
 

Private Member Functions

void DisplayObjectInfo (const gui::CanvasRuntime &rt, const zelda3::RoomObject &object, int canvas_x, int canvas_y)
 
void DrawRoomHeader (zelda3::Room &room, int room_id)
 
void DrawRoomNavigation (int room_id)
 
void DrawRoomPropertyTable (zelda3::Room &room, int room_id)
 
void DrawLayerControls (zelda3::Room &room, int room_id)
 
void DrawCompactLayerToggles (int room_id)
 
void RenderSprites (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
void RenderPotItems (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
void RenderEntityOverlay (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
void HandleTouchLongPressContextMenu (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
void DrawObjectPositionOutlines (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
void ApplyTrackCollisionConfig ()
 
const DungeonRenderingHelpers::CollisionOverlayCacheGetCollisionOverlayCache (int room_id)
 
void DrawMaskHighlights (const gui::CanvasRuntime &rt, const zelda3::Room &room)
 
absl::Status LoadAndRenderRoomGraphics (int room_id)
 
void DrawRoomBackgroundLayers (int room_id)
 

Private Attributes

Romrom_ = nullptr
 
zelda3::GameDatagame_data_ = nullptr
 
gui::Canvas canvas_ {"##DungeonCanvas", ImVec2(0x200, 0x200)}
 
DungeonObjectInteraction object_interaction_
 
gui::CanvasTouchHandler touch_handler_
 
std::optional< std::pair< int, int > > pending_scroll_target_
 
std::array< zelda3::Room, 0x128 > * rooms_ = nullptr
 
int current_room_id_ = -1
 
ImVector< int > active_rooms_
 
int current_active_room_tab_ = 0
 
bool object_interaction_enabled_ = true
 
std::map< int, zelda3::RoomLayerManagerroom_layer_managers_
 
uint64_t current_palette_group_id_ = 0
 
uint64_t current_palette_id_ = 0
 
gfx::PaletteGroup current_palette_group_
 
std::function< void(int)> room_navigation_callback_
 
std::function< void(int, int)> room_swap_callback_
 
std::function< void()> show_object_panel_callback_
 
std::function< void()> show_sprite_panel_callback_
 
std::function< void()> show_item_panel_callback_
 
std::function< void()> show_room_list_callback_
 
std::function< void()> show_room_matrix_callback_
 
std::function< void()> show_entrance_list_callback_
 
std::function< void()> show_room_graphics_callback_
 
std::function< void()> show_dungeon_settings_callback_
 
std::function< void(int)> save_room_callback_
 
std::function< void(int, const zelda3::RoomObject &) edit_graphics_callback_ )
 
MinecartTrackEditorPanelminecart_track_panel_ = nullptr
 
bool show_minecart_tracks_ = false
 
bool is_pinned_ = false
 
std::function< void(bool)> pin_callback_
 
const project::YazeProjectproject_ = nullptr
 
bool show_track_collision_overlay_ = false
 
bool show_track_collision_legend_ = true
 
bool show_camera_quadrant_overlay_ = false
 
bool show_minecart_sprite_overlay_ = false
 
bool show_track_gap_overlay_ = false
 
bool show_track_route_overlay_ = false
 
bool show_custom_objects_overlay_ = false
 
bool show_custom_collision_overlay_ = false
 
bool show_water_fill_overlay_ = false
 
bool show_room_details_ = false
 
bool compact_header_mode_ = false
 
bool header_read_only_ = false
 
bool header_visible_ = true
 
bool track_direction_map_enabled_ = true
 
std::vector< uint16_t > track_tile_order_
 
std::vector< uint16_t > switch_tile_order_
 
DungeonRenderingHelpers::TrackCollisionConfig track_collision_config_
 
std::unordered_map< int, DungeonRenderingHelpers::CollisionOverlayCachecollision_overlay_cache_
 
std::bitset< 256 > minecart_sprite_ids_ {}
 
std::vector< ObjectRenderCacheobject_render_cache_
 
uint64_t last_palette_hash_ = 0
 
bool show_room_debug_info_ = false
 
bool show_texture_debug_ = false
 
bool show_object_bounds_ = false
 
bool show_layer_info_ = false
 
bool show_grid_ = false
 
bool show_coordinate_overlay_
 
int layout_override_ = -1
 
int custom_grid_size_ = 8
 
ObjectRenderMode object_render_mode_
 
ObjectOutlineToggles object_outline_toggles_
 
EntityVisibility entity_visibility_
 
gfx::IRendererrenderer_ = nullptr
 
int prev_blockset_ = -1
 
int prev_palette_ = -1
 
int prev_layout_ = -1
 
int prev_spriteset_ = -1
 

Detailed Description

Definition at line 40 of file dungeon_canvas_viewer.h.

Constructor & Destructor Documentation

◆ DungeonCanvasViewer()

yaze::editor::DungeonCanvasViewer::DungeonCanvasViewer ( Rom * rom = nullptr)
inlineexplicit

Definition at line 42 of file dungeon_canvas_viewer.h.

References object_interaction_, rom(), and yaze::editor::DungeonObjectInteraction::SetRom().

Here is the call graph for this function:

Member Function Documentation

◆ DrawDungeonCanvas()

void yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas ( int room_id)

Definition at line 139 of file dungeon_canvas_viewer.cc.

References yaze::gui::Canvas::AddContextMenuItem(), canvas_, yaze::gui::CanvasFrameOptions::canvas_size, yaze::gui::Canvas::ClearContextMenuItems(), yaze::editor::DungeonObjectInteraction::ClearEntitySelection(), current_room_id_, custom_grid_size_, yaze::gui::CanvasMenuItem::Disabled(), yaze::editor::Door, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, DrawCompactLayerToggles(), DrawRoomHeader(), edit_graphics_callback_, yaze::gui::CanvasMenuItem::enabled_condition, yaze::zelda3::ExportRoomLayoutTemplate(), yaze::zelda3::GetDoorTypeName(), yaze::editor::DungeonObjectInteraction::GetSelectedObjectIndices(), yaze::gui::CanvasFrameOptions::grid_step, header_visible_, yaze::gui::CanvasMenuItem::icon, ICON_MD_ADD_CIRCLE, ICON_MD_ARROW_DOWNWARD, ICON_MD_ARROW_UPWARD, ICON_MD_CANCEL, ICON_MD_CONTENT_COPY, ICON_MD_CONTENT_CUT, ICON_MD_CONTENT_PASTE, ICON_MD_DELETE, ICON_MD_DELETE_FOREVER, ICON_MD_DOOR_FRONT, ICON_MD_FILE_DOWNLOAD, ICON_MD_FLIP_TO_BACK, ICON_MD_FLIP_TO_FRONT, ICON_MD_IMAGE, ICON_MD_INVENTORY, ICON_MD_LAYERS, ICON_MD_LOOKS_3, ICON_MD_LOOKS_ONE, ICON_MD_LOOKS_TWO, ICON_MD_PERSON, ICON_MD_SWAP_VERT, ICON_MD_WIDGETS, yaze::Rom::is_loaded(), yaze::editor::Item, yaze::gui::CanvasMenuItem::label, yaze::zelda3::NormalDoor, object_interaction_, object_interaction_enabled_, prev_blockset_, prev_layout_, prev_palette_, prev_spriteset_, yaze::gui::CanvasFrameOptions::render_popups, yaze::zelda3::ResolveSpriteName(), rom_, rooms_, yaze::gui::Canvas::SetShowBuiltinContextMenu(), show_grid_, show_item_panel_callback_, show_object_panel_callback_, show_room_graphics_callback_, show_sprite_panel_callback_, yaze::editor::Sprite, and yaze::gui::CanvasMenuItem::subitems.

Referenced by yaze::editor::DungeonRoomPanel::Draw(), yaze::editor::DungeonWorkbenchPanel::Draw(), Draw(), and yaze::editor::DungeonWorkbenchPanel::DrawSplitView().

◆ Draw()

void yaze::editor::DungeonCanvasViewer::Draw ( int room_id)

Definition at line 135 of file dungeon_canvas_viewer.cc.

References DrawDungeonCanvas().

Here is the call graph for this function:

◆ SetContext()

void yaze::editor::DungeonCanvasViewer::SetContext ( EditorContext ctx)
inline

◆ context()

EditorContext yaze::editor::DungeonCanvasViewer::context ( ) const
inline

Definition at line 55 of file dungeon_canvas_viewer.h.

References game_data_, and rom_.

◆ SetRom()

void yaze::editor::DungeonCanvasViewer::SetRom ( Rom * rom)
inline

Definition at line 56 of file dungeon_canvas_viewer.h.

References object_interaction_, rom(), rom_, and yaze::editor::DungeonObjectInteraction::SetRom().

Here is the call graph for this function:

◆ rom()

Rom * yaze::editor::DungeonCanvasViewer::rom ( ) const
inline

◆ SetGameData()

void yaze::editor::DungeonCanvasViewer::SetGameData ( zelda3::GameData * game_data)
inline

Definition at line 61 of file dungeon_canvas_viewer.h.

References game_data(), and game_data_.

Here is the call graph for this function:

◆ game_data()

zelda3::GameData * yaze::editor::DungeonCanvasViewer::game_data ( ) const
inline

Definition at line 62 of file dungeon_canvas_viewer.h.

References game_data_.

Referenced by SetGameData().

◆ SetRenderer()

void yaze::editor::DungeonCanvasViewer::SetRenderer ( gfx::IRenderer * renderer)
inline

Definition at line 63 of file dungeon_canvas_viewer.h.

References renderer_.

◆ SetRooms()

void yaze::editor::DungeonCanvasViewer::SetRooms ( std::array< zelda3::Room, 0x128 > * rooms)
inline

Definition at line 66 of file dungeon_canvas_viewer.h.

References rooms(), and rooms_.

Here is the call graph for this function:

◆ rooms()

◆ HasRooms()

bool yaze::editor::DungeonCanvasViewer::HasRooms ( ) const
inline

◆ current_room_id()

◆ SetCompactHeaderMode()

void yaze::editor::DungeonCanvasViewer::SetCompactHeaderMode ( bool compact)
inline

Definition at line 75 of file dungeon_canvas_viewer.h.

References compact_header_mode_.

◆ compact_header_mode()

bool yaze::editor::DungeonCanvasViewer::compact_header_mode ( ) const
inline

Definition at line 76 of file dungeon_canvas_viewer.h.

References compact_header_mode_.

◆ SetRoomDetailsExpanded()

void yaze::editor::DungeonCanvasViewer::SetRoomDetailsExpanded ( bool expanded)
inline

Definition at line 77 of file dungeon_canvas_viewer.h.

References show_room_details_.

◆ set_active_rooms()

void yaze::editor::DungeonCanvasViewer::set_active_rooms ( const ImVector< int > & rooms)
inline

Definition at line 80 of file dungeon_canvas_viewer.h.

References active_rooms_, and rooms().

Here is the call graph for this function:

◆ set_current_active_room_tab()

void yaze::editor::DungeonCanvasViewer::set_current_active_room_tab ( int tab)
inline

Definition at line 81 of file dungeon_canvas_viewer.h.

References current_active_room_tab_.

◆ set_current_palette_group_id()

void yaze::editor::DungeonCanvasViewer::set_current_palette_group_id ( uint64_t id)
inline

Definition at line 84 of file dungeon_canvas_viewer.h.

References current_palette_group_id_.

◆ SetCurrentPaletteId()

void yaze::editor::DungeonCanvasViewer::SetCurrentPaletteId ( uint64_t id)
inline

Definition at line 87 of file dungeon_canvas_viewer.h.

References current_palette_id_.

◆ SetCurrentPaletteGroup()

void yaze::editor::DungeonCanvasViewer::SetCurrentPaletteGroup ( const gfx::PaletteGroup & group)
inline

Definition at line 88 of file dungeon_canvas_viewer.h.

References current_palette_group_.

◆ SetRoomNavigationCallback()

void yaze::editor::DungeonCanvasViewer::SetRoomNavigationCallback ( std::function< void(int)> callback)
inline

Definition at line 91 of file dungeon_canvas_viewer.h.

References room_navigation_callback_.

◆ SetRoomSwapCallback()

void yaze::editor::DungeonCanvasViewer::SetRoomSwapCallback ( std::function< void(int, int)> callback)
inline

Definition at line 95 of file dungeon_canvas_viewer.h.

References room_swap_callback_.

◆ CanNavigateRooms()

bool yaze::editor::DungeonCanvasViewer::CanNavigateRooms ( ) const
inline

◆ NavigateToRoom()

void yaze::editor::DungeonCanvasViewer::NavigateToRoom ( int target_room)
inline

◆ SetShowObjectPanelCallback()

void yaze::editor::DungeonCanvasViewer::SetShowObjectPanelCallback ( std::function< void()> callback)
inline

Definition at line 118 of file dungeon_canvas_viewer.h.

References show_object_panel_callback_.

◆ SetShowSpritePanelCallback()

void yaze::editor::DungeonCanvasViewer::SetShowSpritePanelCallback ( std::function< void()> callback)
inline

Definition at line 121 of file dungeon_canvas_viewer.h.

References show_sprite_panel_callback_.

◆ SetShowItemPanelCallback()

void yaze::editor::DungeonCanvasViewer::SetShowItemPanelCallback ( std::function< void()> callback)
inline

Definition at line 124 of file dungeon_canvas_viewer.h.

References show_item_panel_callback_.

◆ SetShowRoomListCallback()

void yaze::editor::DungeonCanvasViewer::SetShowRoomListCallback ( std::function< void()> callback)
inline

Definition at line 127 of file dungeon_canvas_viewer.h.

References show_room_list_callback_.

◆ SetShowRoomMatrixCallback()

void yaze::editor::DungeonCanvasViewer::SetShowRoomMatrixCallback ( std::function< void()> callback)
inline

Definition at line 130 of file dungeon_canvas_viewer.h.

References show_room_matrix_callback_.

◆ SetShowEntranceListCallback()

void yaze::editor::DungeonCanvasViewer::SetShowEntranceListCallback ( std::function< void()> callback)
inline

Definition at line 133 of file dungeon_canvas_viewer.h.

References show_entrance_list_callback_.

◆ set_show_custom_collision_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_custom_collision_overlay ( bool show)
inline

◆ show_custom_collision_overlay()

bool yaze::editor::DungeonCanvasViewer::show_custom_collision_overlay ( ) const
inline

◆ set_show_water_fill_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_water_fill_overlay ( bool show)
inline

◆ show_water_fill_overlay()

bool yaze::editor::DungeonCanvasViewer::show_water_fill_overlay ( ) const
inline

◆ show_track_collision_overlay()

bool yaze::editor::DungeonCanvasViewer::show_track_collision_overlay ( ) const
inline

◆ set_show_track_collision_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_track_collision_overlay ( bool show)
inline

◆ show_camera_quadrant_overlay()

bool yaze::editor::DungeonCanvasViewer::show_camera_quadrant_overlay ( ) const
inline

◆ set_show_camera_quadrant_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_camera_quadrant_overlay ( bool show)
inline

◆ show_minecart_sprite_overlay()

bool yaze::editor::DungeonCanvasViewer::show_minecart_sprite_overlay ( ) const
inline

◆ set_show_minecart_sprite_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_minecart_sprite_overlay ( bool show)
inline

◆ show_track_gap_overlay()

bool yaze::editor::DungeonCanvasViewer::show_track_gap_overlay ( ) const
inline

◆ set_show_track_gap_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_track_gap_overlay ( bool show)
inline

◆ show_track_route_overlay()

bool yaze::editor::DungeonCanvasViewer::show_track_route_overlay ( ) const
inline

◆ set_show_track_route_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_track_route_overlay ( bool show)
inline

◆ show_custom_objects_overlay()

bool yaze::editor::DungeonCanvasViewer::show_custom_objects_overlay ( ) const
inline

◆ set_show_custom_objects_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_custom_objects_overlay ( bool show)
inline

◆ show_grid()

bool yaze::editor::DungeonCanvasViewer::show_grid ( ) const
inline

◆ set_show_grid()

void yaze::editor::DungeonCanvasViewer::set_show_grid ( bool show)
inline

◆ show_object_bounds()

bool yaze::editor::DungeonCanvasViewer::show_object_bounds ( ) const
inline

◆ set_show_object_bounds()

void yaze::editor::DungeonCanvasViewer::set_show_object_bounds ( bool show)
inline

◆ show_coordinate_overlay()

bool yaze::editor::DungeonCanvasViewer::show_coordinate_overlay ( ) const
inline

◆ set_show_coordinate_overlay()

void yaze::editor::DungeonCanvasViewer::set_show_coordinate_overlay ( bool show)
inline

◆ show_room_debug_info()

bool yaze::editor::DungeonCanvasViewer::show_room_debug_info ( ) const
inline

Definition at line 189 of file dungeon_canvas_viewer.h.

References show_room_debug_info_.

◆ set_show_room_debug_info()

void yaze::editor::DungeonCanvasViewer::set_show_room_debug_info ( bool show)
inline

Definition at line 190 of file dungeon_canvas_viewer.h.

References show_room_debug_info_.

◆ show_texture_debug()

bool yaze::editor::DungeonCanvasViewer::show_texture_debug ( ) const
inline

Definition at line 191 of file dungeon_canvas_viewer.h.

References show_texture_debug_.

◆ set_show_texture_debug()

void yaze::editor::DungeonCanvasViewer::set_show_texture_debug ( bool show)
inline

Definition at line 192 of file dungeon_canvas_viewer.h.

References show_texture_debug_.

◆ show_layer_info()

bool yaze::editor::DungeonCanvasViewer::show_layer_info ( ) const
inline

Definition at line 193 of file dungeon_canvas_viewer.h.

References show_layer_info_.

◆ set_show_layer_info()

void yaze::editor::DungeonCanvasViewer::set_show_layer_info ( bool show)
inline

Definition at line 194 of file dungeon_canvas_viewer.h.

References show_layer_info_.

◆ show_minecart_tracks()

bool yaze::editor::DungeonCanvasViewer::show_minecart_tracks ( ) const
inline

Definition at line 195 of file dungeon_canvas_viewer.h.

References show_minecart_tracks_.

◆ set_show_minecart_tracks()

void yaze::editor::DungeonCanvasViewer::set_show_minecart_tracks ( bool show)
inline

Definition at line 196 of file dungeon_canvas_viewer.h.

References show_minecart_tracks_.

◆ show_track_collision_legend()

bool yaze::editor::DungeonCanvasViewer::show_track_collision_legend ( ) const
inline

Definition at line 197 of file dungeon_canvas_viewer.h.

References show_track_collision_legend_.

◆ set_show_track_collision_legend()

void yaze::editor::DungeonCanvasViewer::set_show_track_collision_legend ( bool show)
inline

Definition at line 200 of file dungeon_canvas_viewer.h.

References show_track_collision_legend_.

◆ mutable_show_grid()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_grid ( )
inline

Definition at line 205 of file dungeon_canvas_viewer.h.

References show_grid_.

◆ mutable_show_object_bounds()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_object_bounds ( )
inline

Definition at line 206 of file dungeon_canvas_viewer.h.

References show_object_bounds_.

◆ mutable_show_coordinate_overlay()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_coordinate_overlay ( )
inline

Definition at line 207 of file dungeon_canvas_viewer.h.

References show_coordinate_overlay_.

◆ mutable_show_room_debug_info()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_room_debug_info ( )
inline

Definition at line 208 of file dungeon_canvas_viewer.h.

References show_room_debug_info_.

◆ mutable_show_texture_debug()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_texture_debug ( )
inline

Definition at line 209 of file dungeon_canvas_viewer.h.

References show_texture_debug_.

◆ mutable_show_layer_info()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_layer_info ( )
inline

Definition at line 210 of file dungeon_canvas_viewer.h.

References show_layer_info_.

◆ mutable_show_minecart_tracks()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_minecart_tracks ( )
inline

Definition at line 211 of file dungeon_canvas_viewer.h.

References show_minecart_tracks_.

◆ mutable_show_custom_collision_overlay()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_custom_collision_overlay ( )
inline

Definition at line 212 of file dungeon_canvas_viewer.h.

References show_custom_collision_overlay_.

◆ mutable_show_track_collision_overlay()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_track_collision_overlay ( )
inline

Definition at line 215 of file dungeon_canvas_viewer.h.

References show_track_collision_overlay_.

◆ mutable_show_camera_quadrant_overlay()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_camera_quadrant_overlay ( )
inline

Definition at line 218 of file dungeon_canvas_viewer.h.

References show_camera_quadrant_overlay_.

◆ mutable_show_minecart_sprite_overlay()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_minecart_sprite_overlay ( )
inline

Definition at line 221 of file dungeon_canvas_viewer.h.

References show_minecart_sprite_overlay_.

◆ mutable_show_track_collision_legend()

bool * yaze::editor::DungeonCanvasViewer::mutable_show_track_collision_legend ( )
inline

Definition at line 224 of file dungeon_canvas_viewer.h.

References show_track_collision_legend_.

◆ SetShowRoomGraphicsCallback()

void yaze::editor::DungeonCanvasViewer::SetShowRoomGraphicsCallback ( std::function< void()> callback)
inline

Definition at line 227 of file dungeon_canvas_viewer.h.

References show_room_graphics_callback_.

◆ SetShowDungeonSettingsCallback()

void yaze::editor::DungeonCanvasViewer::SetShowDungeonSettingsCallback ( std::function< void()> callback)
inline

Definition at line 230 of file dungeon_canvas_viewer.h.

References show_dungeon_settings_callback_.

◆ SetSaveRoomCallback()

void yaze::editor::DungeonCanvasViewer::SetSaveRoomCallback ( std::function< void(int)> callback)
inline

Definition at line 233 of file dungeon_canvas_viewer.h.

References save_room_callback_.

◆ SetEditGraphicsCallback()

void yaze::editor::DungeonCanvasViewer::SetEditGraphicsCallback ( std::function< void(int, const zelda3::RoomObject &)> callback)
inline

Definition at line 236 of file dungeon_canvas_viewer.h.

References edit_graphics_callback_.

◆ SetMinecartTrackPanel()

void yaze::editor::DungeonCanvasViewer::SetMinecartTrackPanel ( MinecartTrackEditorPanel * panel)
inline

Definition at line 240 of file dungeon_canvas_viewer.h.

References minecart_track_panel_.

◆ SetPinned()

void yaze::editor::DungeonCanvasViewer::SetPinned ( bool pinned)
inline

Definition at line 243 of file dungeon_canvas_viewer.h.

References is_pinned_.

◆ SetPinCallback()

void yaze::editor::DungeonCanvasViewer::SetPinCallback ( std::function< void(bool)> callback)
inline

Definition at line 244 of file dungeon_canvas_viewer.h.

References pin_callback_.

◆ SetProject()

void yaze::editor::DungeonCanvasViewer::SetProject ( const project::YazeProject * project)

Definition at line 62 of file dungeon_canvas_viewer.cc.

References ApplyTrackCollisionConfig(), and project_.

Here is the call graph for this function:

◆ canvas() [1/2]

gui::Canvas & yaze::editor::DungeonCanvasViewer::canvas ( )
inline

◆ canvas() [2/2]

const gui::Canvas & yaze::editor::DungeonCanvasViewer::canvas ( ) const
inline

Definition at line 251 of file dungeon_canvas_viewer.h.

References canvas_.

◆ object_interaction()

◆ SetEditorSystem()

void yaze::editor::DungeonCanvasViewer::SetEditorSystem ( zelda3::DungeonEditorSystem * system)
inline

Definition at line 256 of file dungeon_canvas_viewer.h.

References object_interaction_, and yaze::editor::DungeonObjectInteraction::SetEditorSystem().

Here is the call graph for this function:

◆ SetObjectInteractionEnabled()

void yaze::editor::DungeonCanvasViewer::SetObjectInteractionEnabled ( bool enabled)
inline

◆ IsObjectInteractionEnabled()

bool yaze::editor::DungeonCanvasViewer::IsObjectInteractionEnabled ( ) const
inline

Definition at line 264 of file dungeon_canvas_viewer.h.

References object_interaction_enabled_.

◆ SetHeaderReadOnly()

void yaze::editor::DungeonCanvasViewer::SetHeaderReadOnly ( bool read_only)
inline

Definition at line 270 of file dungeon_canvas_viewer.h.

References header_read_only_.

◆ header_read_only()

bool yaze::editor::DungeonCanvasViewer::header_read_only ( ) const
inline

Definition at line 271 of file dungeon_canvas_viewer.h.

References header_read_only_.

◆ SetHeaderVisible()

void yaze::editor::DungeonCanvasViewer::SetHeaderVisible ( bool visible)
inline

Definition at line 275 of file dungeon_canvas_viewer.h.

References header_visible_.

◆ header_visible()

bool yaze::editor::DungeonCanvasViewer::header_visible ( ) const
inline

Definition at line 276 of file dungeon_canvas_viewer.h.

References header_visible_.

◆ SetObjectRenderMode()

void yaze::editor::DungeonCanvasViewer::SetObjectRenderMode ( ObjectRenderMode mode)
inline

Definition at line 279 of file dungeon_canvas_viewer.h.

References object_render_mode_.

◆ GetObjectRenderMode()

ObjectRenderMode yaze::editor::DungeonCanvasViewer::GetObjectRenderMode ( ) const
inline

Definition at line 282 of file dungeon_canvas_viewer.h.

References object_render_mode_.

◆ SetLayerVisible()

void yaze::editor::DungeonCanvasViewer::SetLayerVisible ( int room_id,
zelda3::LayerType layer,
bool visible )
inline

Definition at line 285 of file dungeon_canvas_viewer.h.

References GetRoomLayerManager(), and yaze::zelda3::RoomLayerManager::SetLayerVisible().

Here is the call graph for this function:

◆ IsLayerVisible()

bool yaze::editor::DungeonCanvasViewer::IsLayerVisible ( int room_id,
zelda3::LayerType layer ) const
inline

Definition at line 288 of file dungeon_canvas_viewer.h.

References room_layer_managers_.

◆ SetBG1Visible()

void yaze::editor::DungeonCanvasViewer::SetBG1Visible ( int room_id,
bool visible )
inline

Definition at line 295 of file dungeon_canvas_viewer.h.

References yaze::zelda3::BG1_Layout, yaze::zelda3::BG1_Objects, and GetRoomLayerManager().

Here is the call graph for this function:

◆ SetBG2Visible()

void yaze::editor::DungeonCanvasViewer::SetBG2Visible ( int room_id,
bool visible )
inline

Definition at line 300 of file dungeon_canvas_viewer.h.

References yaze::zelda3::BG2_Layout, yaze::zelda3::BG2_Objects, and GetRoomLayerManager().

Here is the call graph for this function:

◆ IsBG1Visible()

bool yaze::editor::DungeonCanvasViewer::IsBG1Visible ( int room_id) const
inline

◆ IsBG2Visible()

bool yaze::editor::DungeonCanvasViewer::IsBG2Visible ( int room_id) const
inline

◆ SetLayerBlendMode()

void yaze::editor::DungeonCanvasViewer::SetLayerBlendMode ( int room_id,
zelda3::LayerType layer,
zelda3::LayerBlendMode mode )
inline

Definition at line 321 of file dungeon_canvas_viewer.h.

References GetRoomLayerManager(), and yaze::zelda3::RoomLayerManager::SetLayerBlendMode().

Here is the call graph for this function:

◆ GetLayerBlendMode()

zelda3::LayerBlendMode yaze::editor::DungeonCanvasViewer::GetLayerBlendMode ( int room_id,
zelda3::LayerType layer ) const
inline

Definition at line 325 of file dungeon_canvas_viewer.h.

References yaze::zelda3::Normal, and room_layer_managers_.

Referenced by GetBG2LayerType().

◆ SetObjectTranslucent()

void yaze::editor::DungeonCanvasViewer::SetObjectTranslucent ( int room_id,
size_t object_index,
bool translucent,
uint8_t alpha = 128 )
inline

Definition at line 334 of file dungeon_canvas_viewer.h.

References GetRoomLayerManager(), and yaze::zelda3::RoomLayerManager::SetObjectTranslucency().

Here is the call graph for this function:

◆ GetRoomLayerManager() [1/2]

◆ GetRoomLayerManager() [2/2]

const zelda3::RoomLayerManager & yaze::editor::DungeonCanvasViewer::GetRoomLayerManager ( int room_id) const
inline

Definition at line 344 of file dungeon_canvas_viewer.h.

References room_layer_managers_.

◆ SetBG2LayerType()

void yaze::editor::DungeonCanvasViewer::SetBG2LayerType ( int room_id,
int type )
inline

◆ GetBG2LayerType()

int yaze::editor::DungeonCanvasViewer::GetBG2LayerType ( int room_id) const
inline

◆ SetPreviewObject()

void yaze::editor::DungeonCanvasViewer::SetPreviewObject ( const zelda3::RoomObject & object)
inline

◆ ClearPreviewObject()

void yaze::editor::DungeonCanvasViewer::ClearPreviewObject ( )
inline

Definition at line 400 of file dungeon_canvas_viewer.h.

References object_interaction_, and yaze::editor::DungeonObjectInteraction::SetPreviewObject().

Referenced by yaze::editor::ObjectEditorPanel::CancelPlacement().

Here is the call graph for this function:

◆ ScrollToTile()

void yaze::editor::DungeonCanvasViewer::ScrollToTile ( int tile_x,
int tile_y )
inline

◆ HasPendingScrollTarget()

bool yaze::editor::DungeonCanvasViewer::HasPendingScrollTarget ( ) const
inline

Definition at line 410 of file dungeon_canvas_viewer.h.

References pending_scroll_target_.

◆ GetPendingScrollTarget()

std::optional< std::pair< int, int > > yaze::editor::DungeonCanvasViewer::GetPendingScrollTarget ( ) const
inline

Definition at line 413 of file dungeon_canvas_viewer.h.

References pending_scroll_target_.

◆ DeleteSelectedObjects()

void yaze::editor::DungeonCanvasViewer::DeleteSelectedObjects ( )
inline

Definition at line 418 of file dungeon_canvas_viewer.h.

References yaze::editor::DungeonObjectInteraction::HandleDeleteSelected(), and object_interaction_.

Here is the call graph for this function:

◆ SetSpritesVisible()

void yaze::editor::DungeonCanvasViewer::SetSpritesVisible ( bool visible)
inline

◆ AreSpritesVisible()

bool yaze::editor::DungeonCanvasViewer::AreSpritesVisible ( ) const
inline

◆ SetPotItemsVisible()

void yaze::editor::DungeonCanvasViewer::SetPotItemsVisible ( bool visible)
inline

◆ ArePotItemsVisible()

bool yaze::editor::DungeonCanvasViewer::ArePotItemsVisible ( ) const
inline

◆ DisplayObjectInfo()

void yaze::editor::DungeonCanvasViewer::DisplayObjectInfo ( const gui::CanvasRuntime & rt,
const zelda3::RoomObject & object,
int canvas_x,
int canvas_y )
private

Definition at line 1369 of file dungeon_canvas_viewer.cc.

References yaze::gui::DrawText().

Here is the call graph for this function:

◆ DrawRoomHeader()

void yaze::editor::DungeonCanvasViewer::DrawRoomHeader ( zelda3::Room & room,
int room_id )
private

Definition at line 1942 of file dungeon_canvas_viewer.cc.

References ICON_MD_SELECT_ALL.

Referenced by DrawDungeonCanvas().

◆ DrawRoomNavigation()

void yaze::editor::DungeonCanvasViewer::DrawRoomNavigation ( int room_id)
private

Definition at line 1979 of file dungeon_canvas_viewer.cc.

References yaze::zelda3::GetRoomLabel(), and yaze::zelda3::kNumberOfRooms.

Here is the call graph for this function:

◆ DrawRoomPropertyTable()

◆ DrawLayerControls()

void yaze::editor::DungeonCanvasViewer::DrawLayerControls ( zelda3::Room & room,
int room_id )
private

Definition at line 2231 of file dungeon_canvas_viewer.cc.

◆ DrawCompactLayerToggles()

◆ RenderSprites()

void yaze::editor::DungeonCanvasViewer::RenderSprites ( const gui::CanvasRuntime & rt,
const zelda3::Room & room )
private

◆ RenderPotItems()

void yaze::editor::DungeonCanvasViewer::RenderPotItems ( const gui::CanvasRuntime & rt,
const zelda3::Room & room )
private

Definition at line 1442 of file dungeon_canvas_viewer.cc.

References yaze::gui::DrawRect(), yaze::gui::DrawText(), yaze::zelda3::Room::GetPotItems(), and yaze::gui::LayoutHelpers::IsTouchDevice().

Here is the call graph for this function:

◆ RenderEntityOverlay()

void yaze::editor::DungeonCanvasViewer::RenderEntityOverlay ( const gui::CanvasRuntime & rt,
const zelda3::Room & room )
private

Definition at line 1539 of file dungeon_canvas_viewer.cc.

◆ HandleTouchLongPressContextMenu()

◆ DrawObjectPositionOutlines()

void yaze::editor::DungeonCanvasViewer::DrawObjectPositionOutlines ( const gui::CanvasRuntime & rt,
const zelda3::Room & room )
private

◆ ApplyTrackCollisionConfig()

◆ GetCollisionOverlayCache()

const DungeonRenderingHelpers::CollisionOverlayCache & yaze::editor::DungeonCanvasViewer::GetCollisionOverlayCache ( int room_id)
private

◆ DrawMaskHighlights()

void yaze::editor::DungeonCanvasViewer::DrawMaskHighlights ( const gui::CanvasRuntime & rt,
const zelda3::Room & room )
private

◆ LoadAndRenderRoomGraphics()

absl::Status yaze::editor::DungeonCanvasViewer::LoadAndRenderRoomGraphics ( int room_id)
private

◆ DrawRoomBackgroundLayers()

void yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers ( int room_id)
private

Member Data Documentation

◆ rom_

Rom* yaze::editor::DungeonCanvasViewer::rom_ = nullptr
private

Definition at line 464 of file dungeon_canvas_viewer.h.

Referenced by context(), DrawDungeonCanvas(), rom(), SetContext(), and SetRom().

◆ game_data_

zelda3::GameData* yaze::editor::DungeonCanvasViewer::game_data_ = nullptr
private

Definition at line 465 of file dungeon_canvas_viewer.h.

Referenced by context(), game_data(), SetContext(), and SetGameData().

◆ canvas_

gui::Canvas yaze::editor::DungeonCanvasViewer::canvas_ {"##DungeonCanvas", ImVec2(0x200, 0x200)}
private

Definition at line 466 of file dungeon_canvas_viewer.h.

Referenced by canvas(), canvas(), and DrawDungeonCanvas().

◆ object_interaction_

◆ touch_handler_

gui::CanvasTouchHandler yaze::editor::DungeonCanvasViewer::touch_handler_
private

Definition at line 471 of file dungeon_canvas_viewer.h.

◆ pending_scroll_target_

std::optional<std::pair<int, int> > yaze::editor::DungeonCanvasViewer::pending_scroll_target_
private

◆ rooms_

std::array<zelda3::Room, 0x128>* yaze::editor::DungeonCanvasViewer::rooms_ = nullptr
private

Definition at line 477 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), HasRooms(), rooms(), and SetRooms().

◆ current_room_id_

int yaze::editor::DungeonCanvasViewer::current_room_id_ = -1
private

Definition at line 478 of file dungeon_canvas_viewer.h.

Referenced by current_room_id(), DrawDungeonCanvas(), and NavigateToRoom().

◆ active_rooms_

ImVector<int> yaze::editor::DungeonCanvasViewer::active_rooms_
private

Definition at line 480 of file dungeon_canvas_viewer.h.

Referenced by set_active_rooms().

◆ current_active_room_tab_

int yaze::editor::DungeonCanvasViewer::current_active_room_tab_ = 0
private

Definition at line 481 of file dungeon_canvas_viewer.h.

Referenced by set_current_active_room_tab().

◆ object_interaction_enabled_

bool yaze::editor::DungeonCanvasViewer::object_interaction_enabled_ = true
private

◆ room_layer_managers_

std::map<int, zelda3::RoomLayerManager> yaze::editor::DungeonCanvasViewer::room_layer_managers_
private

◆ current_palette_group_id_

uint64_t yaze::editor::DungeonCanvasViewer::current_palette_group_id_ = 0
private

Definition at line 490 of file dungeon_canvas_viewer.h.

Referenced by set_current_palette_group_id().

◆ current_palette_id_

uint64_t yaze::editor::DungeonCanvasViewer::current_palette_id_ = 0
private

Definition at line 491 of file dungeon_canvas_viewer.h.

Referenced by SetCurrentPaletteId().

◆ current_palette_group_

gfx::PaletteGroup yaze::editor::DungeonCanvasViewer::current_palette_group_
private

Definition at line 492 of file dungeon_canvas_viewer.h.

Referenced by SetCurrentPaletteGroup(), and SetPreviewObject().

◆ room_navigation_callback_

std::function<void(int)> yaze::editor::DungeonCanvasViewer::room_navigation_callback_
private

◆ room_swap_callback_

std::function<void(int, int)> yaze::editor::DungeonCanvasViewer::room_swap_callback_
private

Definition at line 495 of file dungeon_canvas_viewer.h.

Referenced by CanNavigateRooms(), NavigateToRoom(), and SetRoomSwapCallback().

◆ show_object_panel_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_object_panel_callback_
private

Definition at line 496 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), and SetShowObjectPanelCallback().

◆ show_sprite_panel_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_sprite_panel_callback_
private

Definition at line 497 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), and SetShowSpritePanelCallback().

◆ show_item_panel_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_item_panel_callback_
private

Definition at line 498 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), and SetShowItemPanelCallback().

◆ show_room_list_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_room_list_callback_
private

Definition at line 499 of file dungeon_canvas_viewer.h.

Referenced by SetShowRoomListCallback().

◆ show_room_matrix_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_room_matrix_callback_
private

Definition at line 500 of file dungeon_canvas_viewer.h.

Referenced by SetShowRoomMatrixCallback().

◆ show_entrance_list_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_entrance_list_callback_
private

Definition at line 501 of file dungeon_canvas_viewer.h.

Referenced by SetShowEntranceListCallback().

◆ show_room_graphics_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_room_graphics_callback_
private

Definition at line 502 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), and SetShowRoomGraphicsCallback().

◆ show_dungeon_settings_callback_

std::function<void()> yaze::editor::DungeonCanvasViewer::show_dungeon_settings_callback_
private

Definition at line 503 of file dungeon_canvas_viewer.h.

Referenced by SetShowDungeonSettingsCallback().

◆ save_room_callback_

std::function<void(int)> yaze::editor::DungeonCanvasViewer::save_room_callback_
private

Definition at line 504 of file dungeon_canvas_viewer.h.

Referenced by SetSaveRoomCallback().

◆ edit_graphics_callback_

std::function<void(int, const zelda3::RoomObject&) yaze::editor::DungeonCanvasViewer::edit_graphics_callback_)
private

Definition at line 505 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), and SetEditGraphicsCallback().

◆ minecart_track_panel_

MinecartTrackEditorPanel* yaze::editor::DungeonCanvasViewer::minecart_track_panel_ = nullptr
private

Definition at line 506 of file dungeon_canvas_viewer.h.

Referenced by SetMinecartTrackPanel().

◆ show_minecart_tracks_

bool yaze::editor::DungeonCanvasViewer::show_minecart_tracks_ = false
private

◆ is_pinned_

bool yaze::editor::DungeonCanvasViewer::is_pinned_ = false
private

Definition at line 508 of file dungeon_canvas_viewer.h.

Referenced by SetPinned().

◆ pin_callback_

std::function<void(bool)> yaze::editor::DungeonCanvasViewer::pin_callback_
private

Definition at line 509 of file dungeon_canvas_viewer.h.

Referenced by SetPinCallback().

◆ project_

const project::YazeProject* yaze::editor::DungeonCanvasViewer::project_ = nullptr
private

Definition at line 510 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig(), and SetProject().

◆ show_track_collision_overlay_

bool yaze::editor::DungeonCanvasViewer::show_track_collision_overlay_ = false
private

◆ show_track_collision_legend_

bool yaze::editor::DungeonCanvasViewer::show_track_collision_legend_ = true
private

◆ show_camera_quadrant_overlay_

bool yaze::editor::DungeonCanvasViewer::show_camera_quadrant_overlay_ = false
private

◆ show_minecart_sprite_overlay_

bool yaze::editor::DungeonCanvasViewer::show_minecart_sprite_overlay_ = false
private

◆ show_track_gap_overlay_

bool yaze::editor::DungeonCanvasViewer::show_track_gap_overlay_ = false
private

Definition at line 516 of file dungeon_canvas_viewer.h.

Referenced by set_show_track_gap_overlay(), and show_track_gap_overlay().

◆ show_track_route_overlay_

bool yaze::editor::DungeonCanvasViewer::show_track_route_overlay_ = false
private

◆ show_custom_objects_overlay_

bool yaze::editor::DungeonCanvasViewer::show_custom_objects_overlay_ = false
private

◆ show_custom_collision_overlay_

bool yaze::editor::DungeonCanvasViewer::show_custom_collision_overlay_ = false
private

◆ show_water_fill_overlay_

bool yaze::editor::DungeonCanvasViewer::show_water_fill_overlay_ = false
private

◆ show_room_details_

bool yaze::editor::DungeonCanvasViewer::show_room_details_ = false
private

Definition at line 521 of file dungeon_canvas_viewer.h.

Referenced by SetRoomDetailsExpanded().

◆ compact_header_mode_

bool yaze::editor::DungeonCanvasViewer::compact_header_mode_ = false
private

Definition at line 522 of file dungeon_canvas_viewer.h.

Referenced by compact_header_mode(), and SetCompactHeaderMode().

◆ header_read_only_

bool yaze::editor::DungeonCanvasViewer::header_read_only_ = false
private

Definition at line 523 of file dungeon_canvas_viewer.h.

Referenced by header_read_only(), and SetHeaderReadOnly().

◆ header_visible_

bool yaze::editor::DungeonCanvasViewer::header_visible_ = true
private

Definition at line 524 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas(), header_visible(), and SetHeaderVisible().

◆ track_direction_map_enabled_

bool yaze::editor::DungeonCanvasViewer::track_direction_map_enabled_ = true
private

Definition at line 526 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ track_tile_order_

std::vector<uint16_t> yaze::editor::DungeonCanvasViewer::track_tile_order_
private

Definition at line 527 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ switch_tile_order_

std::vector<uint16_t> yaze::editor::DungeonCanvasViewer::switch_tile_order_
private

Definition at line 528 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ track_collision_config_

DungeonRenderingHelpers::TrackCollisionConfig yaze::editor::DungeonCanvasViewer::track_collision_config_
private

Definition at line 529 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ collision_overlay_cache_

std::unordered_map<int, DungeonRenderingHelpers::CollisionOverlayCache> yaze::editor::DungeonCanvasViewer::collision_overlay_cache_
private

Definition at line 531 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ minecart_sprite_ids_

std::bitset<256> yaze::editor::DungeonCanvasViewer::minecart_sprite_ids_ {}
private

Definition at line 532 of file dungeon_canvas_viewer.h.

Referenced by ApplyTrackCollisionConfig().

◆ object_render_cache_

std::vector<ObjectRenderCache> yaze::editor::DungeonCanvasViewer::object_render_cache_
private

Definition at line 542 of file dungeon_canvas_viewer.h.

◆ last_palette_hash_

uint64_t yaze::editor::DungeonCanvasViewer::last_palette_hash_ = 0
private

Definition at line 543 of file dungeon_canvas_viewer.h.

◆ show_room_debug_info_

bool yaze::editor::DungeonCanvasViewer::show_room_debug_info_ = false
private

◆ show_texture_debug_

bool yaze::editor::DungeonCanvasViewer::show_texture_debug_ = false
private

◆ show_object_bounds_

bool yaze::editor::DungeonCanvasViewer::show_object_bounds_ = false
private

◆ show_layer_info_

bool yaze::editor::DungeonCanvasViewer::show_layer_info_ = false
private

◆ show_grid_

bool yaze::editor::DungeonCanvasViewer::show_grid_ = false
private

◆ show_coordinate_overlay_

bool yaze::editor::DungeonCanvasViewer::show_coordinate_overlay_
private
Initial value:
=
false

Definition at line 551 of file dungeon_canvas_viewer.h.

Referenced by mutable_show_coordinate_overlay(), set_show_coordinate_overlay(), and show_coordinate_overlay().

◆ layout_override_

int yaze::editor::DungeonCanvasViewer::layout_override_ = -1
private

Definition at line 553 of file dungeon_canvas_viewer.h.

◆ custom_grid_size_

int yaze::editor::DungeonCanvasViewer::custom_grid_size_ = 8
private

Definition at line 554 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas().

◆ object_render_mode_

ObjectRenderMode yaze::editor::DungeonCanvasViewer::object_render_mode_
private

◆ object_outline_toggles_

ObjectOutlineToggles yaze::editor::DungeonCanvasViewer::object_outline_toggles_
private

Definition at line 567 of file dungeon_canvas_viewer.h.

◆ entity_visibility_

EntityVisibility yaze::editor::DungeonCanvasViewer::entity_visibility_
private

◆ renderer_

gfx::IRenderer* yaze::editor::DungeonCanvasViewer::renderer_ = nullptr
private

Definition at line 577 of file dungeon_canvas_viewer.h.

Referenced by SetRenderer().

◆ prev_blockset_

int yaze::editor::DungeonCanvasViewer::prev_blockset_ = -1
private

Definition at line 580 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas().

◆ prev_palette_

int yaze::editor::DungeonCanvasViewer::prev_palette_ = -1
private

Definition at line 581 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas().

◆ prev_layout_

int yaze::editor::DungeonCanvasViewer::prev_layout_ = -1
private

Definition at line 582 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas().

◆ prev_spriteset_

int yaze::editor::DungeonCanvasViewer::prev_spriteset_ = -1
private

Definition at line 583 of file dungeon_canvas_viewer.h.

Referenced by DrawDungeonCanvas().


The documentation for this class was generated from the following files: