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

#include <map_properties.h>

Collaboration diagram for yaze::editor::MapPropertiesSystem:

Public Types

using RefreshCallback = std::function< void()>
 
using RefreshPaletteCallback = std::function< absl::Status()>
 
using ForceRefreshGraphicsCallback = std::function< void(int)>
 

Public Member Functions

 MapPropertiesSystem (zelda3::Overworld *overworld, Rom *rom, std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > *maps_bmp=nullptr, gui::Canvas *canvas=nullptr)
 
void SetRefreshCallbacks (RefreshCallback refresh_map_properties, RefreshCallback refresh_overworld_map, RefreshPaletteCallback refresh_map_palette, RefreshPaletteCallback refresh_tile16_blockset=nullptr, ForceRefreshGraphicsCallback force_refresh_graphics=nullptr)
 
void DrawSimplifiedMapSettings (int &current_world, int &current_map, bool &current_map_lock, bool &show_map_properties_panel, bool &show_custom_bg_color_editor, bool &show_overlay_editor, bool &show_overlay_preview, int &game_state, int &current_mode)
 
void DrawMapPropertiesPanel (int current_map, bool &show_map_properties_panel)
 
void DrawCustomBackgroundColorEditor (int current_map, bool &show_custom_bg_color_editor)
 
void DrawOverlayEditor (int current_map, bool &show_overlay_editor)
 
void DrawOverlayPreviewOnMap (int current_map, int current_world, bool show_overlay_preview)
 
void SetupCanvasContextMenu (gui::Canvas &canvas, int current_map, bool current_map_lock, bool &show_map_properties_panel, bool &show_custom_bg_color_editor, bool &show_overlay_editor)
 

Private Member Functions

void DrawGraphicsPopup (int current_map, int game_state)
 
void DrawPalettesPopup (int current_map, int game_state, bool &show_custom_bg_color_editor)
 
void DrawPropertiesPopup (int current_map, bool &show_map_properties_panel, bool &show_overlay_preview, int &game_state)
 
void DrawMosaicControls (int current_map)
 
void DrawOverlayControls (int current_map, bool &show_overlay_preview)
 
std::string GetOverlayDescription (uint16_t overlay_id)
 
void DrawToolsPopup (int &current_mode)
 
void DrawViewPopup ()
 
void DrawQuickAccessPopup ()
 
void DrawBasicPropertiesTab (int current_map)
 
void DrawSpritePropertiesTab (int current_map)
 
void DrawCustomFeaturesTab (int current_map)
 
void DrawTileGraphicsTab (int current_map)
 
void DrawMusicTab (int current_map)
 
void RefreshMapProperties ()
 
void RefreshOverworldMap ()
 
absl::Status RefreshMapPalette ()
 
absl::Status RefreshTile16Blockset ()
 
void ForceRefreshGraphics (int map_index)
 
void RefreshSiblingMapGraphics (int map_index, bool include_self=false)
 

Private Attributes

zelda3::Overworldoverworld_
 
Romrom_
 
std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > * maps_bmp_
 
gui::Canvascanvas_
 
RefreshCallback refresh_map_properties_
 
RefreshCallback refresh_overworld_map_
 
RefreshPaletteCallback refresh_map_palette_
 
RefreshPaletteCallback refresh_tile16_blockset_
 
ForceRefreshGraphicsCallback force_refresh_graphics_
 

Detailed Description

Definition at line 20 of file map_properties.h.

Member Typedef Documentation

◆ RefreshCallback

Definition at line 23 of file map_properties.h.

◆ RefreshPaletteCallback

using yaze::editor::MapPropertiesSystem::RefreshPaletteCallback = std::function<absl::Status()>

Definition at line 24 of file map_properties.h.

◆ ForceRefreshGraphicsCallback

Definition at line 25 of file map_properties.h.

Constructor & Destructor Documentation

◆ MapPropertiesSystem()

yaze::editor::MapPropertiesSystem::MapPropertiesSystem ( zelda3::Overworld overworld,
Rom rom,
std::array< gfx::Bitmap, zelda3::kNumOverworldMaps > *  maps_bmp = nullptr,
gui::Canvas canvas = nullptr 
)
inlineexplicit

Definition at line 27 of file map_properties.h.

Member Function Documentation

◆ SetRefreshCallbacks()

void yaze::editor::MapPropertiesSystem::SetRefreshCallbacks ( RefreshCallback  refresh_map_properties,
RefreshCallback  refresh_overworld_map,
RefreshPaletteCallback  refresh_map_palette,
RefreshPaletteCallback  refresh_tile16_blockset = nullptr,
ForceRefreshGraphicsCallback  force_refresh_graphics = nullptr 
)
inline

◆ DrawSimplifiedMapSettings()

◆ DrawMapPropertiesPanel()

void yaze::editor::MapPropertiesSystem::DrawMapPropertiesPanel ( int  current_map,
bool &  show_map_properties_panel 
)

◆ DrawCustomBackgroundColorEditor()

◆ DrawOverlayEditor()

◆ DrawOverlayPreviewOnMap()

void yaze::editor::MapPropertiesSystem::DrawOverlayPreviewOnMap ( int  current_map,
int  current_world,
bool  show_overlay_preview 
)

◆ SetupCanvasContextMenu()

void yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu ( gui::Canvas canvas,
int  current_map,
bool  current_map_lock,
bool &  show_map_properties_panel,
bool &  show_custom_bg_color_editor,
bool &  show_overlay_editor 
)

◆ DrawGraphicsPopup()

◆ DrawPalettesPopup()

◆ DrawPropertiesPopup()

◆ DrawMosaicControls()

void yaze::editor::MapPropertiesSystem::DrawMosaicControls ( int  current_map)
private

◆ DrawOverlayControls()

◆ GetOverlayDescription()

std::string yaze::editor::MapPropertiesSystem::GetOverlayDescription ( uint16_t  overlay_id)
private

Definition at line 1489 of file map_properties.cc.

Referenced by DrawOverlayControls(), and DrawOverlayEditor().

◆ DrawToolsPopup()

void yaze::editor::MapPropertiesSystem::DrawToolsPopup ( int &  current_mode)
private

◆ DrawViewPopup()

void yaze::editor::MapPropertiesSystem::DrawViewPopup ( )
private

◆ DrawQuickAccessPopup()

void yaze::editor::MapPropertiesSystem::DrawQuickAccessPopup ( )
private

◆ DrawBasicPropertiesTab()

◆ DrawSpritePropertiesTab()

void yaze::editor::MapPropertiesSystem::DrawSpritePropertiesTab ( int  current_map)
private

◆ DrawCustomFeaturesTab()

◆ DrawTileGraphicsTab()

◆ DrawMusicTab()

◆ RefreshMapProperties()

◆ RefreshOverworldMap()

◆ RefreshMapPalette()

absl::Status yaze::editor::MapPropertiesSystem::RefreshMapPalette ( )
private

◆ RefreshTile16Blockset()

absl::Status yaze::editor::MapPropertiesSystem::RefreshTile16Blockset ( )
private

◆ ForceRefreshGraphics()

void yaze::editor::MapPropertiesSystem::ForceRefreshGraphics ( int  map_index)
private

◆ RefreshSiblingMapGraphics()

void yaze::editor::MapPropertiesSystem::RefreshSiblingMapGraphics ( int  map_index,
bool  include_self = false 
)
private

Member Data Documentation

◆ overworld_

◆ rom_

Rom* yaze::editor::MapPropertiesSystem::rom_
private

Definition at line 100 of file map_properties.h.

◆ maps_bmp_

std::array<gfx::Bitmap, zelda3::kNumOverworldMaps>* yaze::editor::MapPropertiesSystem::maps_bmp_
private

Definition at line 101 of file map_properties.h.

Referenced by DrawOverlayPreviewOnMap(), and RefreshSiblingMapGraphics().

◆ canvas_

gui::Canvas* yaze::editor::MapPropertiesSystem::canvas_
private

Definition at line 102 of file map_properties.h.

Referenced by DrawOverlayPreviewOnMap().

◆ refresh_map_properties_

RefreshCallback yaze::editor::MapPropertiesSystem::refresh_map_properties_
private

Definition at line 105 of file map_properties.h.

Referenced by RefreshMapProperties(), and SetRefreshCallbacks().

◆ refresh_overworld_map_

RefreshCallback yaze::editor::MapPropertiesSystem::refresh_overworld_map_
private

Definition at line 106 of file map_properties.h.

Referenced by RefreshOverworldMap(), and SetRefreshCallbacks().

◆ refresh_map_palette_

RefreshPaletteCallback yaze::editor::MapPropertiesSystem::refresh_map_palette_
private

Definition at line 107 of file map_properties.h.

Referenced by RefreshMapPalette(), and SetRefreshCallbacks().

◆ refresh_tile16_blockset_

RefreshPaletteCallback yaze::editor::MapPropertiesSystem::refresh_tile16_blockset_
private

Definition at line 108 of file map_properties.h.

Referenced by RefreshTile16Blockset(), and SetRefreshCallbacks().

◆ force_refresh_graphics_

ForceRefreshGraphicsCallback yaze::editor::MapPropertiesSystem::force_refresh_graphics_
private

Definition at line 109 of file map_properties.h.

Referenced by ForceRefreshGraphics(), and SetRefreshCallbacks().


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