Allows the user to edit sprites. More...
#include <sprite_editor.h>
Classes | |
| struct | OAMConfig |
Public Member Functions | |
| SpriteEditor (Rom *rom=nullptr) | |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Update () override |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| absl::Status | Cut () override |
| absl::Status | Copy () override |
| absl::Status | Paste () override |
| absl::Status | Find () override |
| absl::Status | Save () override |
| absl::Status | SaveForAutosave () |
| bool | HasPendingSpriteChanges () const |
| absl::Status | PrepareProjectSave () |
| void | ProjectSaveCommitted () |
| void | SetDependencies (const EditorDependencies &deps) override |
| project::YazeProject * | project () const |
| absl::Status | ReloadSpriteCatalog () |
| absl::Status | OpenCatalogSource (const zelda3::SpriteSourceBinding &binding) |
| const std::optional< zelda3::SpriteCatalog > & | sprite_catalog () const |
| const std::optional< zelda3::SpriteSourceDocument > & | catalog_source () const |
| absl::Status | ImportCatalogDraw (const zelda3::SpriteSourceBinding &binding, const std::string &catalog_key="") |
| absl::Status | OpenSpriteAsset (const std::string &path) |
| absl::Status | SaveSpriteAsset (const std::string &path) |
| absl::Status | ReloadProjectSpriteAssets () |
| absl::Status | CheckCurrentSpriteSource () |
| absl::StatusOr< std::string > | ExportCurrentSpriteDraw () |
| absl::Status | SetSpriteBehavior (const project::SpriteBehavior &behavior) |
| absl::Status | BindOracleBehaviorProfile () |
| absl::StatusOr< std::string > | ExportCurrentSpriteBehavior (const std::string &prefix) |
| absl::Status | SetSpriteGraphics (const std::array< uint8_t, 8 > &sheets, const std::array< project::SpritePaletteBinding, 8 > &rows) |
| absl::Status | SetSpriteGraphicsSource (int slot, const project::SpriteGraphicsSource &source) |
| absl::Status | CreateSpriteAssetFromVanilla (int sprite_id) |
| const project::SpriteAssetBinding * | current_sprite_binding () const |
| const zsprite::ZSprite * | current_custom_sprite () const |
| void | set_rom (Rom *rom) |
| Rom * | rom () const |
Public Member Functions inherited from yaze::editor::Editor | |
| Editor ()=default | |
| virtual | ~Editor ()=default |
| virtual void | SetGameData (zelda3::GameData *game_data) |
| virtual absl::Status | BeginSaveTransaction () |
| virtual void | RollbackSaveTransaction () |
| virtual void | CommitSaveTransaction () |
| virtual void | PrepareForSessionTeardown () |
| virtual std::string | GetUndoDescription () const |
| virtual std::string | GetRedoDescription () const |
| const UndoManager & | undo_manager () const |
| virtual absl::Status | Clear () |
| virtual bool | CanUndo () const |
| virtual bool | CanRedo () const |
| virtual bool | CanCut () const |
| virtual bool | CanCopy () const |
| virtual bool | CanPaste () const |
| virtual bool | CanFind () const |
| virtual void | ContributeStatus (StatusBar *) |
| virtual void | DrawEditorMenu () |
| virtual void | DrawEditMenuItems () |
| virtual EditorContextSnapshot | BuildContextSnapshot () const |
| EditorType | type () const |
| bool * | active () |
| void | set_active (bool active) |
| void | toggle_active () |
| virtual bool | IsRomLoaded () const |
| virtual std::string | GetRomStatus () const |
| Rom * | rom () const |
| zelda3::GameData * | game_data () const |
| project::YazeProject * | project () const |
| core::VersionManager * | version_manager () const |
| EditorContext | context () const |
| bool | HasContext () const |
Friends | |
| class | AuthoringSaveWorkflowTestPeer |
| struct | SpriteEditorPreviewTestPeer |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::editor::Editor | |
| std::string | MakePanelTitle (const std::string &base_title) const |
| std::string | MakeWindowId (const std::string &base_id) const |
| template<typename T > | |
| absl::StatusOr< T > | SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const |
Protected Attributes inherited from yaze::editor::Editor | |
| bool | active_ = false |
| EditorType | type_ |
| EditorDependencies | dependencies_ |
| UndoManager | undo_manager_ |
Allows the user to edit sprites.
This class provides functionality for updating the sprite editor, drawing the editor table, drawing the sprite canvas, and drawing the current sheets. Supports both vanilla ROM sprites and custom ZSM format sprites.
Definition at line 50 of file sprite_editor.h.
|
inlineexplicit |
Definition at line 55 of file sprite_editor.h.
References yaze::editor::kSprite, and yaze::editor::Editor::type_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 76 of file sprite_editor.cc.
References yaze::editor::Editor::dependencies_, DrawCustomSprites(), DrawSpriteCatalog(), yaze::Rom::is_loaded(), yaze::editor::WorkspaceWindowManager::RegisterWindowContent(), rom_, and yaze::editor::EditorDependencies::window_manager.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 99 of file sprite_editor.cc.
References asset_load_status_, current_custom_sprite(), current_sheets_, current_sprite_id_, yaze::editor::Editor::game_data(), gfx_buffer_loaded_, yaze::Rom::is_loaded(), yaze::zelda3::IsUnderworldSpriteset(), preview_needs_update_, preview_spriteset_, ReloadProjectSpriteAssets(), ReloadSpriteCatalog(), rom_, room_palette_cache_, SelectVanillaSprite(), sheets_loaded_, yaze::zelda3::SpriteSheetSlots(), vanilla_preview_needs_update_, and vanilla_sheets_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 120 of file sprite_editor.cc.
References CommitUndoTransaction(), HandleEditorShortcuts(), last_frame_time_, rom(), sheets_loaded_, status_, and UpdateAnimationPlayback().
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 62 of file sprite_editor.h.
References yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 63 of file sprite_editor.h.
References yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 884 of file sprite_editor.cc.
References BeginUndoTransaction(), CommitUndoTransaction(), Copy(), current_custom_sprite_index_, current_frame_, custom_sprites_, yaze::editor::sprite_authoring::DeleteFrame(), MarkSpriteMutated(), RETURN_IF_ERROR, and selected_tile_index_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 871 of file sprite_editor.cc.
References current_custom_sprite_index_, current_frame_, custom_sprites_, and frame_clipboard_.
Referenced by Cut().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 900 of file sprite_editor.cc.
References BeginUndoTransaction(), CommitUndoTransaction(), current_custom_sprite_index_, current_frame_, custom_sprites_, frame_clipboard_, yaze::editor::sprite_authoring::kMaxFrames, MarkSpriteMutated(), and selected_tile_index_.
|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 67 of file sprite_editor.h.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 187 of file sprite_editor.cc.
References ApplyCurrentSpriteBinding(), CommitUndoTransaction(), current_custom_sprite_index_, current_frame_, dirty_sprite_indices_, GetCurrentZsmPath(), SaveZsmFile(), SaveZsmFileAs(), and status_.
Referenced by PrepareProjectSave(), and SaveForAutosave().
| absl::Status yaze::editor::SpriteEditor::SaveForAutosave | ( | ) |
Definition at line 174 of file sprite_editor.cc.
References custom_sprite_paths_, dirty_sprite_indices_, and Save().
|
inline |
Definition at line 71 of file sprite_editor.h.
References dirty_sprite_indices_, and sprite_bindings_pending_.
|
inline |
Definition at line 74 of file sprite_editor.h.
References Save().
|
inline |
Definition at line 75 of file sprite_editor.h.
References sprite_bindings_pending_.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 53 of file sprite_editor_catalog.cc.
References RefreshCatalogIfChanged(), and yaze::editor::Editor::SetDependencies().
|
inline |
Definition at line 78 of file sprite_editor.h.
References yaze::editor::Editor::active(), yaze::editor::Editor::dependencies_, yaze::editor::Editor::project(), and yaze::editor::EditorDependencies::project_context_provider.
Referenced by BindOracleBehaviorProfile(), CheckCurrentSpriteSource(), CreateSpriteAssetFromVanilla(), CurrentPreviewLayout(), DrawFrameTileWarnings(), DrawSpriteCatalog(), ExportCurrentSpriteBehavior(), LoadSpriteGraphicsBuffer(), LoadZsmFile(), OpenBoundBinInScratch(), RefreshCatalogIfChanged(), ReloadProjectSpriteAssets(), ReloadSpriteCatalog(), SaveZsmFile(), and SetSpriteGraphicsSource().
| absl::Status yaze::editor::SpriteEditor::ReloadSpriteCatalog | ( | ) |
Definition at line 75 of file sprite_editor_catalog.cc.
References catalog_family_index_, catalog_filter_, catalog_path_, catalog_project_, catalog_raw_subtype_, catalog_scroll_to_label_, catalog_session_id_, catalog_source_, catalog_source_root_, catalog_source_status_, catalog_status_, yaze::editor::Editor::dependencies_, yaze::project::YazeProject::GetAbsolutePath(), yaze::zelda3::SpriteCatalog::Load(), project(), yaze::editor::EditorDependencies::session_id, sprite_catalog_, yaze::project::YazeProject::sprite_catalog_file, and yaze::project::YazeProject::sprite_source_root.
Referenced by DrawSpriteCatalog(), Load(), and RefreshCatalogIfChanged().
| absl::Status yaze::editor::SpriteEditor::OpenCatalogSource | ( | const zelda3::SpriteSourceBinding & | binding | ) |
Definition at line 106 of file sprite_editor_catalog.cc.
References catalog_scroll_to_label_, catalog_source_, catalog_source_root_, catalog_source_status_, and yaze::zelda3::ReadSpriteSource().
Referenced by DrawSpriteCatalog(), and ImportCatalogDraw().
|
inline |
Definition at line 88 of file sprite_editor.h.
References sprite_catalog_.
|
inline |
Definition at line 91 of file sprite_editor.h.
References catalog_source_.
| absl::Status yaze::editor::SpriteEditor::ImportCatalogDraw | ( | const zelda3::SpriteSourceBinding & | binding, |
| const std::string & | catalog_key = "" ) |
Definition at line 12 of file sprite_editor_catalog.cc.
References yaze::zelda3::SpriteSourceBinding::adapter, catalog_source_, yaze::core::ComputeSourceArtifactSha256(), CreateNewZSprite(), custom_sprite_bindings_, custom_sprites_, yaze::editor::Editor::dependencies_, yaze::editor::WorkspaceWindowManager::GetVisibleWindowIds(), yaze::editor::sprite_authoring::ImportDrawAsset(), yaze::zelda3::SpriteSourceBinding::label, OpenCatalogSource(), yaze::zelda3::SpriteSourceBinding::path, RETURN_IF_ERROR, yaze::zelda3::SpriteSourceBinding::role, yaze::editor::EditorDependencies::session_id, yaze::editor::WorkspaceWindowManager::SetVisibleWindows(), source_check_status_, source_checked_, and yaze::editor::EditorDependencies::window_manager.
Referenced by DrawSpriteCatalog().
| absl::Status yaze::editor::SpriteEditor::OpenSpriteAsset | ( | const std::string & | path | ) |
Definition at line 273 of file sprite_editor_assets.cc.
References animation_playing_, ApplyCurrentSpriteBinding(), CheckCurrentSpriteSource(), CommitUndoTransaction(), current_animation_index_, current_custom_sprite_index_, current_frame_, custom_sprite_paths_, custom_sprites_, LoadZsmFile(), selected_tile_index_, and status_.
Referenced by DrawCustomSpritesMetadata(), and ReloadProjectSpriteAssets().
| absl::Status yaze::editor::SpriteEditor::SaveSpriteAsset | ( | const std::string & | path | ) |
Definition at line 298 of file sprite_editor_assets.cc.
References current_custom_sprite(), SaveZsmFile(), and status_.
| absl::Status yaze::editor::SpriteEditor::ReloadProjectSpriteAssets | ( | ) |
Definition at line 307 of file sprite_editor_assets.cc.
References OpenSpriteAsset(), project(), yaze::project::YazeProject::sprite_assets, and status_.
Referenced by Load().
| absl::Status yaze::editor::SpriteEditor::CheckCurrentSpriteSource | ( | ) |
Definition at line 321 of file sprite_editor_assets.cc.
References yaze::core::ComputeSourceArtifactSha256(), current_sprite_binding(), yaze::project::YazeProject::GetAbsolutePath(), project(), yaze::zelda3::ReadSpriteSource(), source_check_status_, and source_checked_.
Referenced by DrawCustomSpritesMetadata(), DrawSpriteAssetBindings(), ExportCurrentSpriteBehavior(), ExportCurrentSpriteDraw(), LoadZsmFile(), and OpenSpriteAsset().
| absl::StatusOr< std::string > yaze::editor::SpriteEditor::ExportCurrentSpriteDraw | ( | ) |
Definition at line 346 of file sprite_editor_assets.cc.
References CheckCurrentSpriteSource(), current_custom_sprite(), current_sprite_binding(), yaze::editor::sprite_authoring::ExportDrawTables(), RETURN_IF_ERROR, and yaze::editor::sprite_authoring::ValidateDrawAdapter().
Referenced by DrawAnimationPanel().
| absl::Status yaze::editor::SpriteEditor::SetSpriteBehavior | ( | const project::SpriteBehavior & | behavior | ) |
Definition at line 9 of file sprite_editor_behavior.cc.
References yaze::project::SpriteBehavior::actions, BeginUndoTransaction(), behavior_candidate_, CommitUndoTransaction(), current_custom_sprite_index_, current_sprite_binding(), custom_sprite_bindings_, MarkSpriteMutated(), yaze::project::SpriteBehavior::profile, yaze::project::SpriteBehaviorFromJson(), and yaze::project::SpriteBehaviorToJson().
Referenced by BindOracleBehaviorProfile(), and DrawSpriteBehaviorPanel().
| absl::Status yaze::editor::SpriteEditor::BindOracleBehaviorProfile | ( | ) |
Definition at line 30 of file sprite_editor_behavior.cc.
References yaze::project::SpriteAssetBinding::behavior, current_sprite_binding(), yaze::project::YazeProject::GetAbsolutePath(), yaze::project::SpriteBehavior::profile, project(), yaze::editor::sprite_behavior::ReadReviewedProfile(), and SetSpriteBehavior().
Referenced by DrawSpriteBehaviorPanel().
| absl::StatusOr< std::string > yaze::editor::SpriteEditor::ExportCurrentSpriteBehavior | ( | const std::string & | prefix | ) |
Definition at line 47 of file sprite_editor_behavior.cc.
References CheckCurrentSpriteSource(), current_custom_sprite(), current_sprite_binding(), yaze::editor::sprite_behavior::GenerateCandidate(), yaze::project::YazeProject::GetAbsolutePath(), project(), RETURN_IF_ERROR, yaze::editor::sprite_behavior::Validate(), and yaze::editor::sprite_behavior::VerifyProfile().
Referenced by DrawSpriteBehaviorPanel().
| absl::Status yaze::editor::SpriteEditor::SetSpriteGraphics | ( | const std::array< uint8_t, 8 > & | sheets, |
| const std::array< project::SpritePaletteBinding, 8 > & | rows ) |
Definition at line 250 of file sprite_editor_assets.cc.
References ApplyCurrentSpriteBinding(), BeginUndoTransaction(), CommitUndoTransaction(), current_custom_sprite_index_, current_sprite_binding(), custom_sprite_bindings_, MarkSpriteMutated(), yaze::project::SpriteAssetFromJson(), and yaze::project::SpriteAssetToJson().
Referenced by DrawSpriteAssetBindings().
| absl::Status yaze::editor::SpriteEditor::SetSpriteGraphicsSource | ( | int | slot, |
| const project::SpriteGraphicsSource & | source ) |
Definition at line 73 of file sprite_editor_assets.cc.
References ApplyCurrentSpriteBinding(), BeginUndoTransaction(), CommitUndoTransaction(), current_custom_sprite_index_, current_sheets_, current_sprite_binding(), custom_sprite_bindings_, yaze::project::YazeProject::filepath, yaze::editor::Editor::game_data(), yaze::project::YazeProject::GetAbsolutePath(), yaze::project::SpriteGraphicsSource::kind, MarkSpriteMutated(), yaze::project::SpriteGraphicsSource::path, project(), yaze::editor::sprite_graphics_source::Resolve(), rom_, yaze::project::SpriteAssetFromJson(), and yaze::project::SpriteAssetToJson().
Referenced by DrawGraphicsSourceBindings().
| absl::Status yaze::editor::SpriteEditor::CreateSpriteAssetFromVanilla | ( | int | sprite_id | ) |
Definition at line 42 of file sprite_editor_assets.cc.
References CommitUndoTransaction(), yaze::editor::sprite_authoring::CopyVanillaLayout(), CreateNewZSprite(), current_sheets_, custom_sprite_bindings_, custom_sprites_, yaze::editor::Editor::dependencies_, yaze::zelda3::SpriteOamRegistry::GetLayout(), yaze::zelda3::SpriteOamRegistry::GetPreviewOverride(), yaze::editor::WorkspaceWindowManager::GetVisibleWindowIds(), gfx_buffer_loaded_, yaze::zelda3::kSpriteDefaultNames, project(), yaze::editor::EditorDependencies::session_id, yaze::editor::WorkspaceWindowManager::SetVisibleWindows(), vanilla_sheets_, and yaze::editor::EditorDependencies::window_manager.
Referenced by DrawSpriteCanvas().
| const project::SpriteAssetBinding * yaze::editor::SpriteEditor::current_sprite_binding | ( | ) | const |
Definition at line 18 of file sprite_editor_assets.cc.
References current_custom_sprite_index_, and custom_sprite_bindings_.
Referenced by ApplyCurrentSpriteBinding(), BindOracleBehaviorProfile(), CheckCurrentSpriteSource(), DrawCurrentSheets(), DrawFrameTileWarnings(), DrawGraphicsSourceBindings(), DrawSpriteAssetBindings(), DrawSpriteBehaviorPanel(), ExportCurrentSpriteBehavior(), ExportCurrentSpriteDraw(), LoadSpriteGraphicsBuffer(), LoadSpritePalettes(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), SetSpriteBehavior(), SetSpriteGraphics(), and SetSpriteGraphicsSource().
|
inline |
Definition at line 116 of file sprite_editor.h.
References current_custom_sprite_index_, and custom_sprites_.
Referenced by ApplySpritesetToSheets(), DrawCurrentSheets(), DrawFrameTileWarnings(), DrawSpriteBehaviorPanel(), ExportCurrentSpriteBehavior(), ExportCurrentSpriteDraw(), Load(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), and SaveSpriteAsset().
|
inline |
|
inline |
Definition at line 125 of file sprite_editor.h.
References rom_.
Referenced by DrawSpritesList(), set_rom(), and Update().
|
private |
Definition at line 356 of file sprite_editor_assets.cc.
References BeginUndoTransaction(), CheckCurrentSpriteSource(), current_sprite_binding(), DrawGraphicsSourceBindings(), graphics_binding_status_, palette_binding_status_, SetSpriteGraphics(), source_check_status_, and source_checked_.
Referenced by DrawCustomSpritesMetadata().
|
private |
Definition at line 65 of file sprite_editor_behavior.cc.
References animation_playing_, yaze::editor::zsprite::ZSprite::animations, BeginUndoTransaction(), yaze::project::SpriteAssetBinding::behavior, behavior_candidate_, behavior_prefix_, behavior_status_, BindOracleBehaviorProfile(), current_animation_index_, current_custom_sprite(), current_frame_, current_sprite_binding(), ExportCurrentSpriteBehavior(), frame_timer_, yaze::project::SpriteBehaviorAction::name, preview_needs_update_, yaze::editor::sprite_behavior::RemoveAction(), selected_behavior_action_, and SetSpriteBehavior().
Referenced by DrawCustomSpritesMetadata().
|
private |
Definition at line 27 of file sprite_editor_assets.cc.
References behavior_candidate_, behavior_status_, current_sheets_, current_sprite_binding(), gfx_buffer_loaded_, graphics_binding_status_, graphics_source_document_, graphics_source_edit_status_, palette_binding_status_, preview_needs_update_, and source_checked_.
Referenced by DrawCustomSpritesMetadata(), LoadZsmFile(), OpenSpriteAsset(), RestoreFromSnapshot(), Save(), SetSpriteGraphics(), and SetSpriteGraphicsSource().
|
private |
Definition at line 186 of file sprite_editor_assets.cc.
References yaze::project::SpriteGraphicsSource::bpp, current_custom_sprite_index_, current_sprite_binding(), gfx_buffer_loaded_, graphics_source_bpp_, graphics_source_document_, graphics_source_edit_status_, graphics_source_kind_, graphics_source_loaded_slot_, graphics_source_offset_, graphics_source_path_, graphics_source_slot_, yaze::project::SpriteGraphicsSource::kind, yaze::project::SpriteGraphicsSource::offset, OpenBoundBinInScratch(), yaze::project::SpriteGraphicsSource::path, preview_needs_update_, and SetSpriteGraphicsSource().
Referenced by DrawSpriteAssetBindings().
|
private |
Definition at line 109 of file sprite_editor_assets.cc.
References yaze::gfx::SnesPalette::AddColor(), current_custom_sprite(), current_frame_, current_sprite_binding(), yaze::editor::EditorDependencies::custom_data, yaze::editor::Editor::dependencies_, graphics_binding_status_, yaze::editor::kGraphics, yaze::editor::GraphicsScratchAsset::palette, palette_binding_status_, yaze::gfx::PaletteGroup::palette_ref(), yaze::editor::GraphicsScratchAsset::pixels, project(), RefreshSpritePreviewGraphics(), yaze::editor::sprite_graphics_context::RenderFrameBuffer(), RETURN_IF_ERROR, selected_tile_index_, yaze::gfx::PaletteGroup::size(), sprite_gfx_buffer_, sprite_palettes_, and yaze::zelda3::SpriteSlotForTile().
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 118 of file sprite_editor_catalog.cc.
References catalog_family_index_, catalog_filter_, catalog_path_, catalog_raw_subtype_, catalog_scroll_to_label_, catalog_source_, catalog_source_root_, catalog_source_status_, catalog_status_, ImportCatalogDraw(), OpenCatalogSource(), project(), RefreshCatalogIfChanged(), ReloadSpriteCatalog(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowOpenFolderDialog(), sprite_catalog_, yaze::project::YazeProject::sprite_catalog_file, and yaze::project::YazeProject::sprite_source_root.
Referenced by Initialize().
|
private |
Definition at line 58 of file sprite_editor_catalog.cc.
References catalog_path_, catalog_project_, catalog_session_id_, catalog_source_root_, yaze::editor::Editor::dependencies_, project(), ReloadSpriteCatalog(), and yaze::editor::EditorDependencies::session_id.
Referenced by DrawSpriteCatalog(), and SetDependencies().
|
private |
Definition at line 143 of file sprite_editor.cc.
References animation_playing_, current_frame_, current_sprite_id_, preview_needs_update_, and SelectVanillaSprite().
Referenced by Update().
|
private |
Definition at line 224 of file sprite_editor.cc.
References active_sprites_, current_sprite_id_, pending_sprite_tab_, and vanilla_preview_needs_update_.
Referenced by DrawSpritesList(), DrawVanillaSpriteEditor(), HandleEditorShortcuts(), and Load().
|
private |
Definition at line 234 of file sprite_editor.cc.
References current_sprite_id_, yaze::zelda3::SpriteOamRegistry::GetLayout(), yaze::zelda3::SpriteOamRegistry::GetPreviewOverride(), and project().
Referenced by DrawSpriteCanvas().
|
private |
Definition at line 241 of file sprite_editor.cc.
References active_sprites_, yaze::gui::AutoRegisterLastItem(), yaze::gui::BeginThemedTabBar(), current_sprite_id_, DrawCurrentSheets(), DrawSpriteCanvas(), DrawSpritesList(), yaze::gui::EndThemedTabBar(), ICON_MD_ADD, yaze::zelda3::kSpriteDefaultNames, yaze::editor::kSpriteTabBarFlags, yaze::editor::kSpriteTabFlags, pending_sprite_tab_, SelectVanillaSprite(), sheets_loaded_, and vanilla_preview_needs_update_.
|
private |
Definition at line 727 of file sprite_editor.cc.
References current_sprite_id_, yaze::gui::GetID(), yaze::util::HexByte(), yaze::zelda3::kSpriteDefaultNames, yaze::Rom::resource_label(), rom(), yaze::project::ResourceLabelManager::SelectableLabelWithNameEdit(), and SelectVanillaSprite().
Referenced by DrawVanillaSpriteEditor().
|
private |
Definition at line 309 of file sprite_editor.cc.
References CreateSpriteAssetFromVanilla(), current_sprite_id_, CurrentPreviewLayout(), yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::GetID(), yaze::gui::GetWarningColor(), graphics_binding_status_, yaze::gfx::Bitmap::is_active(), palette_binding_status_, RenderVanillaSprite(), sprite_canvas_, status_, vanilla_preview_bitmap_, and yaze::gfx::Bitmap::vector().
Referenced by DrawVanillaSpriteEditor().
|
private |
Definition at line 644 of file sprite_editor.cc.
References BeginUndoTransaction(), CommitUndoTransaction(), yaze::gfx::Arena::CREATE, current_custom_sprite(), current_custom_sprite_index_, current_sheets_, current_sprite_binding(), custom_sprite_bindings_, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), DrawSpritesetPicker(), yaze::gui::Canvas::DrawTileSelector(), yaze::gfx::PaletteGroup::empty(), external_sheet_previews_, yaze::gfx::Arena::Get(), yaze::gui::Canvas::GetConfig(), yaze::gui::GetID(), gfx_buffer_loaded_, yaze::gfx::Arena::gfx_sheets(), graphics_sheet_canvas_, yaze::gui::InputHexByte(), yaze::gui::kSelectionSource, MarkSpriteMutated(), yaze::gfx::PaletteGroup::palette_ref(), preview_needs_update_, yaze::gfx::Arena::QueueTextureCommand(), RefreshSpritePreviewGraphics(), yaze::gui::CanvasConfig::role, yaze::gfx::SnesPalette::size(), sprite_gfx_buffer_, sprite_palettes_, yaze::gfx::Arena::UPDATE, and vanilla_sheets_.
Referenced by DrawCustomSprites(), and DrawVanillaSpriteEditor().
|
private |
Definition at line 216 of file sprite_editor.cc.
|
private |
Definition at line 749 of file sprite_editor.cc.
References DrawCurrentSheets(), DrawCustomSpritesMetadata(), and DrawZSpriteOnCanvas().
Referenced by Initialize().
|
private |
Definition at line 776 of file sprite_editor.cc.
References animation_playing_, ApplyCurrentSpriteBinding(), asset_load_status_, yaze::gui::BeginThemedTabBar(), BeginUndoTransaction(), CheckCurrentSpriteSource(), CommitUndoTransaction(), CreateNewZSprite(), current_animation_index_, current_custom_sprite_index_, current_frame_, custom_sprites_, DrawAnimationPanel(), DrawSpriteAssetBindings(), DrawSpriteBehaviorPanel(), DrawSpritePropertiesPanel(), DrawUserRoutinesPanel(), yaze::gui::EndThemedTabBar(), frame_timer_, GetCurrentZsmPath(), ICON_MD_ADD, ICON_MD_FOLDER_OPEN, ICON_MD_SAVE, ICON_MD_SAVE_AS, OpenSpriteAsset(), preview_needs_update_, SaveZsmFile(), SaveZsmFileAs(), selected_routine_index_, selected_tile_index_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), and status_.
Referenced by DrawCustomSprites().
|
private |
Definition at line 917 of file sprite_editor.cc.
References animation_playing_, yaze::editor::zsprite::ZSprite::animations, CommitUndoTransaction(), current_animation_index_, current_custom_sprite_index_, current_frame_, current_sheets_, custom_sprite_bindings_, custom_sprite_paths_, custom_sprites_, dirty_sprite_indices_, yaze::editor::zsprite::ZSprite::editor, frame_timer_, yaze::editor::zsprite::SubEditor::Frames, preview_needs_update_, yaze::editor::zsprite::ZSprite::Reset(), selected_routine_index_, selected_tile_index_, yaze::project::SpriteAssetBinding::sheets, source_checked_, yaze::editor::zsprite::ZSprite::sprName, and zsm_dirty_.
Referenced by CreateSpriteAssetFromVanilla(), DrawCustomSpritesMetadata(), and ImportCatalogDraw().
|
private |
Definition at line 947 of file sprite_editor.cc.
References animation_playing_, ApplyCurrentSpriteBinding(), CheckCurrentSpriteSource(), current_animation_index_, current_custom_sprite_index_, current_frame_, current_sheets_, custom_sprite_bindings_, custom_sprite_paths_, custom_sprites_, dirty_sprite_indices_, frame_timer_, yaze::project::YazeProject::GetAbsolutePath(), yaze::editor::zsprite::ZSprite::Load(), preview_needs_update_, project(), selected_routine_index_, selected_tile_index_, yaze::project::SpriteAssetBinding::sheets, yaze::project::YazeProject::sprite_assets, status_, zsm_dirty_, and yaze::project::SpriteAssetBinding::zsm_path.
Referenced by OpenSpriteAsset().
|
private |
Definition at line 980 of file sprite_editor.cc.
References CommitUndoTransaction(), current_custom_sprite_index_, custom_sprite_bindings_, custom_sprites_, dirty_sprite_indices_, project(), SetCurrentZsmPath(), yaze::project::YazeProject::sprite_assets, sprite_bindings_pending_, status_, and zsm_dirty_.
Referenced by DrawCustomSpritesMetadata(), Save(), SaveSpriteAsset(), and SaveZsmFileAs().
|
private |
Definition at line 1007 of file sprite_editor.cc.
References current_custom_sprite_index_, SaveZsmFile(), and yaze::util::FileDialogWrapper::ShowSaveFileDialog().
Referenced by DrawCustomSpritesMetadata(), and Save().
|
private |
Definition at line 1950 of file sprite_editor.cc.
References custom_sprite_paths_, and custom_sprites_.
Referenced by SetCurrentZsmPath().
|
private |
Definition at line 1956 of file sprite_editor.cc.
References current_custom_sprite_index_, and custom_sprite_paths_.
Referenced by DrawCustomSpritesMetadata(), and Save().
|
private |
Definition at line 1966 of file sprite_editor.cc.
References current_custom_sprite_index_, custom_sprite_paths_, and EnsureCustomSpritePaths().
Referenced by SaveZsmFile().
|
private |
Definition at line 1021 of file sprite_editor.cc.
References current_custom_sprite_index_, custom_sprites_, DrawBooleanProperties(), DrawStatProperties(), and MarkSpriteMutated().
Referenced by DrawCustomSpritesMetadata().
|
private |
Definition at line 1093 of file sprite_editor.cc.
References current_custom_sprite_index_, custom_sprites_, and MarkSpriteMutated().
Referenced by DrawSpritePropertiesPanel().
|
private |
Definition at line 1050 of file sprite_editor.cc.
References current_custom_sprite_index_, custom_sprites_, and MarkSpriteMutated().
Referenced by DrawSpritePropertiesPanel().
|
private |
Definition at line 1165 of file sprite_editor.cc.
References animation_playing_, current_animation_index_, current_custom_sprite_index_, current_frame_, custom_sprite_bindings_, custom_sprites_, draw_export_status_, DrawFrameEditor(), ExportCurrentSpriteDraw(), frame_timer_, HOVER_HINT, ICON_MD_ADD, ICON_MD_PLAY_ARROW, ICON_MD_SKIP_NEXT, ICON_MD_SKIP_PREVIOUS, ICON_MD_STOP, MarkSpriteMutated(), and preview_needs_update_.
Referenced by DrawCustomSpritesMetadata().
|
private |
|
private |
Definition at line 1303 of file sprite_editor.cc.
References yaze::editor::sprite_authoring::AppendFrame(), current_custom_sprite_index_, current_frame_, custom_sprites_, yaze::editor::sprite_authoring::DeleteFrame(), frame_timer_, graphics_context_status_, HOVER_HINT, ICON_MD_ADD, ICON_MD_DELETE, yaze::editor::sprite_authoring::kOriginX, yaze::editor::sprite_authoring::kOriginY, MarkSpriteMutated(), yaze::editor::sprite_authoring::OffsetX(), yaze::editor::sprite_authoring::OffsetY(), OpenSelectedOamGraphics(), preview_needs_update_, and selected_tile_index_.
Referenced by DrawAnimationPanel().
|
private |
Definition at line 1462 of file sprite_editor.cc.
References yaze::editor::sprite_authoring::Advance(), animation_playing_, current_animation_index_, current_custom_sprite_index_, current_frame_, custom_sprites_, frame_timer_, and preview_needs_update_.
Referenced by Update().
|
private |
Definition at line 1486 of file sprite_editor.cc.
References current_custom_sprite_index_, custom_sprites_, HOVER_HINT, ICON_MD_ADD, MarkSpriteMutated(), and selected_routine_index_.
Referenced by DrawCustomSpritesMetadata().
|
private |
Definition at line 1734 of file sprite_editor.cc.
References yaze::gfx::SnesPalette::AddColor(), yaze::editor::SpriteDrawer::ClearBitmap(), current_custom_sprite_index_, custom_sprites_, yaze::gui::Canvas::DrawBitmap(), yaze::editor::SpriteDrawer::DrawFrame(), yaze::gui::Canvas::DrawRect(), yaze::editor::internal::EnsureSpritePreviewBitmapReady(), yaze::gui::Canvas::GetConfig(), graphics_binding_status_, yaze::gfx::Bitmap::is_active(), yaze::editor::SpriteDrawer::IsReady(), yaze::gui::kCompositeOutput, yaze::editor::sprite_authoring::OffsetX(), yaze::editor::sprite_authoring::OffsetY(), yaze::gfx::PaletteGroup::palette(), palette_binding_status_, preview_needs_update_, yaze::editor::internal::PublishSpritePreviewPixels(), RefreshSpritePreviewGraphics(), yaze::gui::CanvasConfig::role, selected_tile_index_, yaze::gfx::Bitmap::SetPalette(), show_tile_grid_, yaze::gfx::SnesPalette::size(), yaze::gfx::PaletteGroup::size(), sprite_canvas_, sprite_drawer_, sprite_gfx_buffer_, sprite_palettes_, and sprite_preview_bitmap_.
Referenced by DrawZSpriteOnCanvas().
|
private |
Definition at line 1826 of file sprite_editor.cc.
References current_custom_sprite_index_, current_frame_, custom_sprites_, yaze::gui::Canvas::DrawBackground(), yaze::gui::Canvas::DrawContextMenu(), yaze::gui::Canvas::DrawGrid(), yaze::gui::Canvas::DrawOverlay(), yaze::gui::GetID(), graphics_binding_status_, palette_binding_status_, RenderZSpriteFrame(), and sprite_canvas_.
Referenced by DrawCustomSprites().
|
private |
Definition at line 1546 of file sprite_editor.cc.
References yaze::gfx::PaletteManager::ColorRevision(), current_sheets_, yaze::editor::Editor::game_data(), yaze::gfx::PaletteManager::Get(), gfx_buffer_loaded_, loaded_preview_revisions_, loaded_preview_sheets_, LoadSpriteGraphicsBuffer(), LoadSpritePalettes(), preview_graphics_owner_, preview_needs_update_, preview_palette_revision_, preview_uses_asset_graphics_, yaze::zelda3::GraphicsSheetStore::Revision(), room_palette_cache_, yaze::zelda3::GraphicsSheetStoreHolder::sheet_store, vanilla_preview_needs_update_, and vanilla_sheets_.
Referenced by DrawCurrentSheets(), OpenBoundBinInScratch(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 1580 of file sprite_editor.cc.
References current_sheets_, current_sprite_binding(), yaze::project::YazeProject::filepath, yaze::editor::Editor::game_data(), gfx_buffer_loaded_, graphics_binding_status_, project(), yaze::editor::sprite_graphics_source::Resolve(), rom_, yaze::editor::SpriteDrawer::SetGraphicsBuffer(), sprite_drawer_, sprite_gfx_buffer_, and vanilla_sheets_.
Referenced by OpenSelectedOamGraphics(), and RefreshSpritePreviewGraphics().
|
private |
Definition at line 1618 of file sprite_editor.cc.
References yaze::editor::sprite_authoring::BindPaletteRows(), yaze::zelda3::BuildDungeonSpriteRenderPalette(), yaze::gfx::PaletteGroup::clear(), current_sprite_binding(), yaze::editor::internal::DefaultSpritePreviewPalettes(), yaze::editor::Editor::game_data(), yaze::gfx::PaletteGroupMap::global_sprites, yaze::Rom::is_loaded(), yaze::zelda3::LoadRoomHeaderFromRom(), palette_binding_status_, yaze::zelda3::GameData::palette_groups, preview_room_, preview_use_room_palette_, rom_, room_palette_cache_, room_palette_cache_room_, yaze::editor::SpriteDrawer::SetPalettes(), sprite_drawer_, sprite_palettes_, yaze::editor::internal::SpritePalettesFromCgram(), yaze::gfx::PaletteGroupMap::sprites_aux1, yaze::gfx::PaletteGroupMap::sprites_aux2, and yaze::gfx::PaletteGroupMap::sprites_aux3.
Referenced by OpenSelectedOamGraphics(), and RefreshSpritePreviewGraphics().
|
private |
Definition at line 1676 of file sprite_editor.cc.
References yaze::gfx::SnesPalette::AddColor(), yaze::editor::SpriteDrawer::ClearBitmap(), yaze::editor::sprite_authoring::CopyVanillaLayout(), yaze::editor::SpriteDrawer::DrawFrame(), yaze::editor::internal::EnsureSpritePreviewBitmapReady(), graphics_binding_status_, yaze::editor::SpriteDrawer::IsReady(), yaze::gfx::PaletteGroup::palette(), palette_binding_status_, yaze::editor::internal::PublishSpritePreviewPixels(), RefreshSpritePreviewGraphics(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), yaze::gfx::PaletteGroup::size(), sprite_drawer_, sprite_gfx_buffer_, sprite_palettes_, vanilla_preview_bitmap_, and vanilla_preview_needs_update_.
Referenced by DrawSpriteCanvas().
|
private |
Definition at line 1881 of file sprite_editor.cc.
References yaze::editor::SpriteSnapshot::binding, yaze::editor::SpriteSnapshot::current_animation_index, current_animation_index_, current_custom_sprite_index_, yaze::editor::SpriteSnapshot::current_frame, current_frame_, custom_sprite_bindings_, custom_sprites_, yaze::editor::SpriteSnapshot::sprite_data, and yaze::editor::SpriteSnapshot::sprite_index.
Referenced by BeginUndoTransaction(), and CommitUndoTransaction().
|
private |
Definition at line 1894 of file sprite_editor.cc.
References ApplyCurrentSpriteBinding(), yaze::editor::SpriteSnapshot::binding, yaze::editor::SpriteSnapshot::current_animation_index, current_animation_index_, current_custom_sprite_index_, yaze::editor::SpriteSnapshot::current_frame, current_frame_, custom_sprite_bindings_, custom_sprites_, dirty_sprite_indices_, preview_needs_update_, yaze::editor::SpriteSnapshot::sprite_data, yaze::editor::SpriteSnapshot::sprite_index, and zsm_dirty_.
Referenced by CommitUndoTransaction().
|
private |
Definition at line 1910 of file sprite_editor.cc.
References CaptureCurrentSpriteSnapshot(), undo_before_snapshot_, and undo_snapshot_pending_.
Referenced by ApplySpritesetToSheets(), Cut(), DrawCurrentSheets(), DrawCustomSpritesMetadata(), DrawSpriteAssetBindings(), DrawSpriteBehaviorPanel(), Paste(), SetSpriteBehavior(), SetSpriteGraphics(), and SetSpriteGraphicsSource().
|
private |
Definition at line 1918 of file sprite_editor.cc.
References CaptureCurrentSpriteSnapshot(), yaze::editor::UndoManager::Push(), RestoreFromSnapshot(), sprite_mutated_this_frame_, undo_before_snapshot_, yaze::editor::Editor::undo_manager_, and undo_snapshot_pending_.
Referenced by ApplySpritesetToSheets(), CreateNewZSprite(), CreateSpriteAssetFromVanilla(), Cut(), DrawCurrentSheets(), DrawCustomSpritesMetadata(), OpenSpriteAsset(), Paste(), Save(), SaveZsmFile(), SetSpriteBehavior(), SetSpriteGraphics(), SetSpriteGraphicsSource(), and Update().
|
private |
Definition at line 1942 of file sprite_editor.cc.
References behavior_candidate_, current_custom_sprite_index_, dirty_sprite_indices_, preview_needs_update_, sprite_mutated_this_frame_, and zsm_dirty_.
Referenced by ApplySpritesetToSheets(), Cut(), DrawAnimationPanel(), DrawBooleanProperties(), DrawCurrentSheets(), DrawFrameEditor(), DrawSpritePropertiesPanel(), DrawStatProperties(), DrawUserRoutinesPanel(), Paste(), SetSpriteBehavior(), SetSpriteGraphics(), and SetSpriteGraphicsSource().
|
private |
Definition at line 480 of file sprite_editor.cc.
References ApplySpritesetToSheets(), yaze::zelda3::CollectOverworldAreaGfx(), yaze::zelda3::CollectRoomGfx(), DrawFrameTileWarnings(), yaze::zelda3::FindSpritesetUsage(), yaze::editor::Editor::game_data(), yaze::gui::LayoutHelpers::GetHexInputWidth(), gfx_buffer_loaded_, HOVER_HINT, ICON_MD_DONE, ICON_MD_MEETING_ROOM, yaze::gui::InputHexByte(), yaze::Rom::is_loaded(), yaze::zelda3::IsUnderworldSpriteset(), yaze::zelda3::kDungeonSpritesetBase, yaze::zelda3::kNumDungeonRooms, yaze::zelda3::kNumSpritesets, preview_needs_update_, preview_room_, preview_spriteset_, preview_use_room_palette_, rom_, room_palette_cache_, yaze::zelda3::GameData::spriteset_ids, yaze::zelda3::SpriteSheetSlots(), usage_areas_, usage_rom_, and usage_rooms_.
Referenced by DrawCurrentSheets().
|
private |
Definition at line 371 of file sprite_editor.cc.
References BeginUndoTransaction(), CommitUndoTransaction(), current_custom_sprite(), current_custom_sprite_index_, current_sheets_, custom_sprite_bindings_, yaze::editor::Editor::game_data(), gfx_buffer_loaded_, yaze::zelda3::IsUnderworldSpriteset(), yaze::zelda3::kNumSpritesets, MarkSpriteMutated(), preview_needs_update_, yaze::zelda3::SpriteSheetSlots(), and vanilla_sheets_.
Referenced by DrawSpritesetPicker().
|
private |
Definition at line 571 of file sprite_editor.cc.
References yaze::core::BuildGfxSheetInventoryOptions(), yaze::zelda3::CheckSpriteTiles(), current_custom_sprite(), current_custom_sprite_index_, current_frame_, current_sheets_, current_sprite_binding(), yaze::editor::internal::FrameTiles8x8(), yaze::gui::GetSuccessColor(), yaze::gui::GetWarningColor(), ICON_MD_CHECK, ICON_MD_WARNING, yaze::zelda3::SpriteTileIssue::kBlank, yaze::zelda3::SpriteTileIssue::kReservedSheet, project(), rom_, tile_check_count_, tile_check_key_, and tile_issues_.
Referenced by DrawSpritesetPicker().
|
private |
Definition at line 394 of file sprite_editor.cc.
References yaze::editor::Editor::context(), current_custom_sprite(), current_custom_sprite_index_, current_frame_, current_sheets_, current_sprite_binding(), yaze::editor::EditorDependencies::custom_data, custom_sprites_, yaze::editor::Editor::dependencies_, yaze::editor::Editor::game_data(), gfx_buffer_loaded_, graphics_binding_status_, yaze::Rom::is_loaded(), yaze::editor::kGraphics, yaze::editor::kSprite, LoadSpriteGraphicsBuffer(), LoadSpritePalettes(), yaze::editor::sprite_graphics_context::Make(), palette_binding_status_, preview_needs_update_, preview_room_, preview_spriteset_, preview_use_room_palette_, yaze::editor::sprite_graphics_context::RenderCapturedFrame(), rom_, selected_tile_index_, and sprite_palettes_.
Referenced by DrawFrameEditor().
|
friend |
Definition at line 51 of file sprite_editor.h.
|
friend |
Definition at line 52 of file sprite_editor.h.
|
private |
Definition at line 128 of file sprite_editor.h.
|
private |
Definition at line 129 of file sprite_editor.h.
Referenced by DrawAnimationPanel().
|
private |
Definition at line 132 of file sprite_editor.h.
Referenced by DrawSpriteBehaviorPanel().
|
private |
Definition at line 133 of file sprite_editor.h.
Referenced by DrawSpriteBehaviorPanel().
|
private |
Definition at line 134 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), DrawSpriteBehaviorPanel(), MarkSpriteMutated(), and SetSpriteBehavior().
|
private |
Definition at line 135 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), and DrawSpriteBehaviorPanel().
|
private |
Definition at line 137 of file sprite_editor.h.
Referenced by ApplySpritesetToSheets(), CaptureCurrentSpriteSnapshot(), CreateNewZSprite(), CreateSpriteAssetFromVanilla(), current_sprite_binding(), DrawAnimationPanel(), DrawCurrentSheets(), ImportCatalogDraw(), LoadZsmFile(), RestoreFromSnapshot(), SaveZsmFile(), SetSpriteBehavior(), SetSpriteGraphics(), and SetSpriteGraphicsSource().
|
private |
Definition at line 138 of file sprite_editor.h.
Referenced by DrawCustomSpritesMetadata(), and Load().
|
private |
Definition at line 139 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), DrawSpriteAssetBindings(), DrawSpriteCanvas(), DrawZSpriteOnCanvas(), LoadSpritePalettes(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 140 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), DrawSpriteAssetBindings(), DrawSpriteCanvas(), DrawZSpriteOnCanvas(), LoadSpriteGraphicsBuffer(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 141 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), and DrawGraphicsSourceBindings().
|
private |
Definition at line 142 of file sprite_editor.h.
Referenced by CheckCurrentSpriteSource(), DrawSpriteAssetBindings(), and ImportCatalogDraw().
|
private |
Definition at line 143 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), CheckCurrentSpriteSource(), CreateNewZSprite(), DrawSpriteAssetBindings(), and ImportCatalogDraw().
|
private |
Definition at line 144 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 145 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 146 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 147 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 148 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 149 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), and DrawGraphicsSourceBindings().
|
private |
Definition at line 150 of file sprite_editor.h.
Referenced by DrawGraphicsSourceBindings().
|
private |
Definition at line 155 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), ReloadSpriteCatalog(), and sprite_catalog().
|
private |
Definition at line 156 of file sprite_editor.h.
Referenced by catalog_source(), DrawSpriteCatalog(), ImportCatalogDraw(), OpenCatalogSource(), and ReloadSpriteCatalog().
|
private |
Definition at line 157 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), and ReloadSpriteCatalog().
|
private |
Definition at line 158 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), OpenCatalogSource(), and ReloadSpriteCatalog().
|
private |
Definition at line 159 of file sprite_editor.h.
Referenced by RefreshCatalogIfChanged(), and ReloadSpriteCatalog().
|
private |
Definition at line 160 of file sprite_editor.h.
Referenced by RefreshCatalogIfChanged(), and ReloadSpriteCatalog().
|
private |
Definition at line 161 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), RefreshCatalogIfChanged(), and ReloadSpriteCatalog().
|
private |
Definition at line 162 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), OpenCatalogSource(), RefreshCatalogIfChanged(), and ReloadSpriteCatalog().
|
private |
Definition at line 163 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), and ReloadSpriteCatalog().
|
private |
Definition at line 164 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), and ReloadSpriteCatalog().
|
private |
Definition at line 165 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), and ReloadSpriteCatalog().
|
private |
Definition at line 166 of file sprite_editor.h.
Referenced by DrawSpriteCatalog(), OpenCatalogSource(), and ReloadSpriteCatalog().
|
private |
Definition at line 235 of file sprite_editor.h.
Referenced by DrawVanillaSpriteEditor(), and SelectVanillaSprite().
|
private |
Definition at line 236 of file sprite_editor.h.
Referenced by CurrentPreviewLayout(), DrawSpriteCanvas(), DrawSpritesList(), DrawVanillaSpriteEditor(), HandleEditorShortcuts(), Load(), and SelectVanillaSprite().
|
private |
Definition at line 237 of file sprite_editor.h.
Referenced by DrawVanillaSpriteEditor(), and SelectVanillaSprite().
|
private |
Definition at line 238 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), ApplySpritesetToSheets(), CreateNewZSprite(), CreateSpriteAssetFromVanilla(), DrawCurrentSheets(), DrawFrameTileWarnings(), Load(), LoadSpriteGraphicsBuffer(), LoadZsmFile(), OpenSelectedOamGraphics(), RefreshSpritePreviewGraphics(), and SetSpriteGraphicsSource().
|
private |
Definition at line 239 of file sprite_editor.h.
Referenced by ApplySpritesetToSheets(), CreateSpriteAssetFromVanilla(), DrawCurrentSheets(), Load(), LoadSpriteGraphicsBuffer(), and RefreshSpritePreviewGraphics().
|
private |
Definition at line 240 of file sprite_editor.h.
Referenced by DrawVanillaSpriteEditor(), Load(), and Update().
|
private |
Definition at line 252 of file sprite_editor.h.
|
private |
Definition at line 253 of file sprite_editor.h.
|
private |
Definition at line 254 of file sprite_editor.h.
Referenced by DrawSpriteCanvas(), and RenderVanillaSprite().
|
private |
Definition at line 255 of file sprite_editor.h.
Referenced by DrawVanillaSpriteEditor(), Load(), RefreshSpritePreviewGraphics(), RenderVanillaSprite(), and SelectVanillaSprite().
|
private |
Definition at line 260 of file sprite_editor.h.
Referenced by CaptureCurrentSpriteSnapshot(), Copy(), CreateNewZSprite(), CreateSpriteAssetFromVanilla(), current_custom_sprite(), Cut(), DrawAnimationPanel(), DrawBooleanProperties(), DrawCustomSpritesMetadata(), DrawFrameEditor(), DrawSpritePropertiesPanel(), DrawStatProperties(), DrawUserRoutinesPanel(), DrawZSpriteOnCanvas(), EnsureCustomSpritePaths(), ImportCatalogDraw(), LoadZsmFile(), OpenSelectedOamGraphics(), OpenSpriteAsset(), Paste(), RenderZSpriteFrame(), RestoreFromSnapshot(), SaveZsmFile(), and UpdateAnimationPlayback().
|
private |
Definition at line 261 of file sprite_editor.h.
Referenced by CreateNewZSprite(), EnsureCustomSpritePaths(), GetCurrentZsmPath(), LoadZsmFile(), OpenSpriteAsset(), SaveForAutosave(), and SetCurrentZsmPath().
|
private |
Definition at line 262 of file sprite_editor.h.
Referenced by ApplySpritesetToSheets(), CaptureCurrentSpriteSnapshot(), Copy(), CreateNewZSprite(), current_custom_sprite(), current_sprite_binding(), Cut(), DrawAnimationPanel(), DrawBooleanProperties(), DrawCurrentSheets(), DrawCustomSpritesMetadata(), DrawFrameEditor(), DrawFrameTileWarnings(), DrawGraphicsSourceBindings(), DrawSpritePropertiesPanel(), DrawStatProperties(), DrawUserRoutinesPanel(), DrawZSpriteOnCanvas(), GetCurrentZsmPath(), LoadZsmFile(), MarkSpriteMutated(), OpenSelectedOamGraphics(), OpenSpriteAsset(), Paste(), RenderZSpriteFrame(), RestoreFromSnapshot(), Save(), SaveZsmFile(), SaveZsmFileAs(), SetCurrentZsmPath(), SetSpriteBehavior(), SetSpriteGraphics(), SetSpriteGraphicsSource(), and UpdateAnimationPlayback().
|
private |
Definition at line 263 of file sprite_editor.h.
Referenced by CreateNewZSprite(), LoadZsmFile(), MarkSpriteMutated(), RestoreFromSnapshot(), and SaveZsmFile().
|
private |
Definition at line 264 of file sprite_editor.h.
Referenced by CreateNewZSprite(), HasPendingSpriteChanges(), LoadZsmFile(), MarkSpriteMutated(), RestoreFromSnapshot(), Save(), SaveForAutosave(), and SaveZsmFile().
|
private |
Definition at line 265 of file sprite_editor.h.
Referenced by HasPendingSpriteChanges(), ProjectSaveCommitted(), and SaveZsmFile().
|
private |
Definition at line 268 of file sprite_editor.h.
Referenced by CreateNewZSprite(), DrawAnimationPanel(), DrawCustomSpritesMetadata(), DrawSpriteBehaviorPanel(), HandleEditorShortcuts(), LoadZsmFile(), OpenSpriteAsset(), and UpdateAnimationPlayback().
|
private |
Definition at line 269 of file sprite_editor.h.
Referenced by CaptureCurrentSpriteSnapshot(), Copy(), CreateNewZSprite(), Cut(), DrawAnimationPanel(), DrawCustomSpritesMetadata(), DrawFrameEditor(), DrawFrameTileWarnings(), DrawSpriteBehaviorPanel(), DrawZSpriteOnCanvas(), HandleEditorShortcuts(), LoadZsmFile(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), OpenSpriteAsset(), Paste(), RestoreFromSnapshot(), Save(), and UpdateAnimationPlayback().
|
private |
Definition at line 270 of file sprite_editor.h.
Referenced by CaptureCurrentSpriteSnapshot(), CreateNewZSprite(), DrawAnimationPanel(), DrawCustomSpritesMetadata(), DrawSpriteBehaviorPanel(), LoadZsmFile(), OpenSpriteAsset(), RestoreFromSnapshot(), and UpdateAnimationPlayback().
|
private |
Definition at line 271 of file sprite_editor.h.
Referenced by CreateNewZSprite(), DrawAnimationPanel(), DrawCustomSpritesMetadata(), DrawFrameEditor(), DrawSpriteBehaviorPanel(), LoadZsmFile(), and UpdateAnimationPlayback().
|
private |
Definition at line 272 of file sprite_editor.h.
Referenced by Update().
|
private |
Definition at line 275 of file sprite_editor.h.
Referenced by CreateNewZSprite(), DrawCustomSpritesMetadata(), DrawUserRoutinesPanel(), and LoadZsmFile().
|
private |
Definition at line 276 of file sprite_editor.h.
Referenced by CreateNewZSprite(), Cut(), DrawCustomSpritesMetadata(), DrawFrameEditor(), LoadZsmFile(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), OpenSpriteAsset(), Paste(), and RenderZSpriteFrame().
|
private |
Definition at line 277 of file sprite_editor.h.
Referenced by RenderZSpriteFrame().
|
private |
Definition at line 280 of file sprite_editor.h.
Referenced by RenderZSpriteFrame().
|
private |
Definition at line 281 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), ApplySpritesetToSheets(), CreateNewZSprite(), DrawAnimationPanel(), DrawCurrentSheets(), DrawCustomSpritesMetadata(), DrawFrameEditor(), DrawGraphicsSourceBindings(), DrawSpriteBehaviorPanel(), DrawSpritesetPicker(), HandleEditorShortcuts(), Load(), LoadZsmFile(), MarkSpriteMutated(), OpenSelectedOamGraphics(), RefreshSpritePreviewGraphics(), RenderZSpriteFrame(), RestoreFromSnapshot(), and UpdateAnimationPlayback().
|
private |
Definition at line 286 of file sprite_editor.h.
Referenced by LoadSpriteGraphicsBuffer(), LoadSpritePalettes(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 287 of file sprite_editor.h.
Referenced by DrawCurrentSheets(), LoadSpriteGraphicsBuffer(), OpenBoundBinInScratch(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 288 of file sprite_editor.h.
Referenced by DrawCurrentSheets(), LoadSpritePalettes(), OpenBoundBinInScratch(), OpenSelectedOamGraphics(), RenderVanillaSprite(), and RenderZSpriteFrame().
|
private |
Definition at line 289 of file sprite_editor.h.
Referenced by ApplyCurrentSpriteBinding(), ApplySpritesetToSheets(), CreateSpriteAssetFromVanilla(), DrawCurrentSheets(), DrawGraphicsSourceBindings(), DrawSpritesetPicker(), Load(), LoadSpriteGraphicsBuffer(), OpenSelectedOamGraphics(), and RefreshSpritePreviewGraphics().
|
private |
Definition at line 290 of file sprite_editor.h.
Referenced by RefreshSpritePreviewGraphics().
|
private |
Definition at line 291 of file sprite_editor.h.
Referenced by DrawCurrentSheets().
|
private |
Definition at line 292 of file sprite_editor.h.
Referenced by RefreshSpritePreviewGraphics().
|
private |
Definition at line 293 of file sprite_editor.h.
Referenced by RefreshSpritePreviewGraphics().
|
private |
Definition at line 294 of file sprite_editor.h.
Referenced by RefreshSpritePreviewGraphics().
|
private |
Definition at line 295 of file sprite_editor.h.
Referenced by RefreshSpritePreviewGraphics().
|
private |
Definition at line 306 of file sprite_editor.h.
Referenced by DrawFrameEditor().
|
private |
Definition at line 307 of file sprite_editor.h.
Referenced by DrawSpritesetPicker(), Load(), and OpenSelectedOamGraphics().
|
private |
Definition at line 308 of file sprite_editor.h.
Referenced by DrawSpritesetPicker(), LoadSpritePalettes(), and OpenSelectedOamGraphics().
|
private |
Definition at line 309 of file sprite_editor.h.
Referenced by DrawSpritesetPicker(), LoadSpritePalettes(), and OpenSelectedOamGraphics().
|
private |
Definition at line 310 of file sprite_editor.h.
Referenced by DrawSpritesetPicker(), Load(), LoadSpritePalettes(), and RefreshSpritePreviewGraphics().
|
private |
Definition at line 311 of file sprite_editor.h.
Referenced by LoadSpritePalettes().
|
private |
Definition at line 312 of file sprite_editor.h.
Referenced by DrawSpritesetPicker().
|
private |
Definition at line 313 of file sprite_editor.h.
Referenced by DrawSpritesetPicker().
|
private |
Definition at line 314 of file sprite_editor.h.
Referenced by DrawSpritesetPicker().
|
private |
Definition at line 315 of file sprite_editor.h.
Referenced by DrawFrameTileWarnings().
|
private |
Definition at line 316 of file sprite_editor.h.
Referenced by DrawFrameTileWarnings().
|
private |
Definition at line 317 of file sprite_editor.h.
Referenced by DrawFrameTileWarnings().
|
private |
Definition at line 322 of file sprite_editor.h.
Referenced by DrawSpriteCanvas(), DrawZSpriteOnCanvas(), and RenderZSpriteFrame().
|
private |
Definition at line 325 of file sprite_editor.h.
Referenced by DrawCurrentSheets().
|
private |
Definition at line 332 of file sprite_editor.h.
Referenced by BeginUndoTransaction(), and CommitUndoTransaction().
|
private |
Definition at line 333 of file sprite_editor.h.
Referenced by CommitUndoTransaction(), and MarkSpriteMutated().
|
private |
Definition at line 334 of file sprite_editor.h.
Referenced by BeginUndoTransaction(), and CommitUndoTransaction().
|
private |
Definition at line 339 of file sprite_editor.h.
Referenced by DrawCustomSpritesMetadata(), DrawSpriteCanvas(), LoadZsmFile(), OpenSpriteAsset(), ReloadProjectSpriteAssets(), Save(), SaveSpriteAsset(), SaveZsmFile(), and Update().
|
private |
Definition at line 340 of file sprite_editor.h.
Referenced by DrawFrameTileWarnings(), DrawSpritesetPicker(), Initialize(), Load(), LoadSpriteGraphicsBuffer(), LoadSpritePalettes(), OpenSelectedOamGraphics(), rom(), set_rom(), and SetSpriteGraphicsSource().