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

#include <overworld_toolbar.h>

Public Member Functions

 OverworldToolbar ()=default
 
void Draw (int &current_world, int &current_map, bool &current_map_lock, EditingMode &current_mode, EntityEditMode &entity_edit_mode, WorkspaceWindowManager *window_manager, bool has_selection, bool scratch_has_data, Rom *rom, zelda3::Overworld *overworld, project::YazeProject *project, int game_state, SharedClipboard *shared_clipboard=nullptr)
 

Public Attributes

std::function< void()> on_property_changed
 
std::function< void()> on_refresh_graphics
 
std::function< void()> on_refresh_palette
 
std::function< void()> on_refresh_map
 
std::function< void(int)> on_world_changed
 
std::function< void()> on_toggle_overlay_preview
 
std::function< bool()> is_overlay_preview_enabled
 
std::function< absl::Status(const OverworldPropertyEdit &) on_apply_property_edit )
 
std::function< absl::Status(const std::string &, int, const std::string &) on_rename_resource_label )
 
std::function< void()> on_save_to_scratch
 
std::function< void()> on_load_from_scratch
 
std::function< void(int)> on_upgrade_rom_version
 

Detailed Description

Definition at line 41 of file overworld_toolbar.h.

Constructor & Destructor Documentation

◆ OverworldToolbar()

yaze::editor::OverworldToolbar::OverworldToolbar ( )
default

Member Function Documentation

◆ Draw()

void yaze::editor::OverworldToolbar::Draw ( int & current_world,
int & current_map,
bool & current_map_lock,
EditingMode & current_mode,
EntityEditMode & entity_edit_mode,
WorkspaceWindowManager * window_manager,
bool has_selection,
bool scratch_has_data,
Rom * rom,
zelda3::Overworld * overworld,
project::YazeProject * project,
int game_state,
SharedClipboard * shared_clipboard = nullptr )

Definition at line 44 of file overworld_toolbar.cc.

References yaze::zelda3::OverworldMap::animated_gfx(), yaze::zelda3::OverworldMap::area_graphics(), yaze::zelda3::OverworldMap::area_music(), yaze::zelda3::OverworldMap::area_palette(), yaze::zelda3::OverworldMap::area_size(), yaze::editor::BuildOverworldMapMetadata(), yaze::zelda3::Overworld::ConfigureMultiAreaMap(), yaze::editor::DescribeOverworldMapMetadataClipboard(), yaze::editor::DRAW_TILE, yaze::editor::ENTRANCES, yaze::editor::EXITS, yaze::editor::FILL_TILE, yaze::editor::WorkspaceWindowManager::GetActiveSessionId(), yaze::editor::GetProjectResourceLabel(), yaze::editor::AgentUI::GetTheme(), yaze::zelda3::OverworldVersionHelper::GetVersion(), yaze::editor::SharedClipboard::has_overworld_map_metadata, HOVER_HINT, ICON_MD_ADD_LOCATION, ICON_MD_ANALYTICS, ICON_MD_APPS, ICON_MD_AUTO_FIX_HIGH, ICON_MD_CHECK, ICON_MD_CLEAR, ICON_MD_CONTENT_PASTE, ICON_MD_DOOR_BACK, ICON_MD_DOOR_FRONT, ICON_MD_DRAW, ICON_MD_EDIT, ICON_MD_FORMAT_COLOR_FILL, ICON_MD_GRASS, ICON_MD_GRID_ON, ICON_MD_GRID_VIEW, ICON_MD_IMAGE, ICON_MD_INFO, ICON_MD_LABEL, ICON_MD_LAYERS, ICON_MD_LIST, ICON_MD_LOCK, ICON_MD_LOCK_OPEN, ICON_MD_MOUSE, ICON_MD_MUSIC_NOTE, ICON_MD_PEST_CONTROL_RODENT, ICON_MD_TUNE, ICON_MD_UPGRADE, ICON_MD_VISIBILITY, yaze::gui::InputHexByte(), yaze::gui::InputHexWord(), yaze::zelda3::Overworld::is_loaded(), is_overlay_preview_enabled, yaze::editor::WorkspaceWindowManager::IsWindowOpen(), yaze::editor::ITEMS, yaze::editor::kAnimatedGraphics, yaze::editor::kAreaGraphics, yaze::editor::OverworldPanelIds::kAreaGraphics, yaze::editor::kAreaPalette, yaze::editor::kAreaSize, yaze::editor::kAreaSizeNames, yaze::editor::kComboAreaSizeWidth, yaze::editor::OverworldPanelIds::kGfxGroups, yaze::editor::OverworldPanelIds::kItemList, yaze::editor::kMainPalette, yaze::editor::OverworldPanelIds::kMapProperties, yaze::editor::kMessageId, yaze::editor::kMusic, yaze::zelda3::kNumOverworldMaps, yaze::editor::OverworldPanelIds::kScratchSpace, yaze::editor::kSpriteGraphics, yaze::editor::kSpritePalette, yaze::editor::kTableColumnAreaSize, yaze::editor::kTableColumnLock, yaze::editor::kTableColumnMap, yaze::editor::kTableColumnWorld, yaze::editor::OverworldPanelIds::kTile16Editor, yaze::editor::OverworldPanelIds::kTile16Selector, yaze::editor::OverworldPanelIds::kTile8Selector, yaze::editor::OverworldPanelIds::kUsageStats, yaze::zelda3::kVanilla, yaze::editor::kWorldNames, yaze::zelda3::kZSCustomV1, yaze::zelda3::kZSCustomV2, yaze::zelda3::kZSCustomV3, yaze::zelda3::LargeArea, yaze::zelda3::OverworldMap::main_palette(), yaze::zelda3::OverworldMap::message_id(), yaze::editor::MOUSE, yaze::editor::MUSIC, yaze::editor::NONE, on_apply_property_edit, on_refresh_graphics, on_refresh_map, on_rename_resource_label, on_toggle_overlay_preview, on_upgrade_rom_version, on_world_changed, yaze::zelda3::Overworld::overworld_map(), yaze::editor::SharedClipboard::overworld_map_metadata, yaze::editor::OverworldMapMetadataClipboardScopeName(), yaze::gui::PrimaryButton(), yaze::editor::RenameProjectResourceLabel(), yaze::editor::OverworldMapMetadataClipboard::scope, yaze::zelda3::SmallArea, yaze::zelda3::OverworldMap::sprite_graphics(), yaze::zelda3::OverworldMap::sprite_palette(), yaze::editor::SPRITES, yaze::zelda3::OverworldVersionHelper::SupportsAnimatedGFX(), yaze::zelda3::OverworldVersionHelper::SupportsAreaEnum(), yaze::zelda3::OverworldVersionHelper::SupportsCustomBGColors(), yaze::gui::ToggleButton(), yaze::editor::WorkspaceWindowManager::ToggleWindow(), yaze::gui::ToolbarIconButton(), yaze::editor::TRANSPORTS, and yaze::editor::OverworldMapMetadataClipboard::valid.

Member Data Documentation

◆ on_property_changed

std::function<void()> yaze::editor::OverworldToolbar::on_property_changed

Definition at line 53 of file overworld_toolbar.h.

◆ on_refresh_graphics

std::function<void()> yaze::editor::OverworldToolbar::on_refresh_graphics

Definition at line 54 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_refresh_palette

std::function<void()> yaze::editor::OverworldToolbar::on_refresh_palette

Definition at line 55 of file overworld_toolbar.h.

◆ on_refresh_map

std::function<void()> yaze::editor::OverworldToolbar::on_refresh_map

Definition at line 56 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_world_changed

std::function<void(int)> yaze::editor::OverworldToolbar::on_world_changed

Definition at line 57 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_toggle_overlay_preview

std::function<void()> yaze::editor::OverworldToolbar::on_toggle_overlay_preview

Definition at line 58 of file overworld_toolbar.h.

Referenced by Draw().

◆ is_overlay_preview_enabled

std::function<bool()> yaze::editor::OverworldToolbar::is_overlay_preview_enabled

Definition at line 59 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_apply_property_edit

std::function<absl::Status(const OverworldPropertyEdit&) yaze::editor::OverworldToolbar::on_apply_property_edit)

Definition at line 61 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_rename_resource_label

std::function<absl::Status(const std::string&, int, const std::string&) yaze::editor::OverworldToolbar::on_rename_resource_label)

Definition at line 63 of file overworld_toolbar.h.

Referenced by Draw().

◆ on_save_to_scratch

std::function<void()> yaze::editor::OverworldToolbar::on_save_to_scratch

Definition at line 66 of file overworld_toolbar.h.

◆ on_load_from_scratch

std::function<void()> yaze::editor::OverworldToolbar::on_load_from_scratch

Definition at line 67 of file overworld_toolbar.h.

◆ on_upgrade_rom_version

std::function<void(int)> yaze::editor::OverworldToolbar::on_upgrade_rom_version

Definition at line 70 of file overworld_toolbar.h.

Referenced by Draw().


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