Allows the user to edit graphics sheets from the game or view prototype graphics. More...
#include <graphics_editor.h>

Classes | |
| struct | PreparedGraphicsSave |
Public Member Functions | |
| GraphicsEditor (Rom *rom=nullptr) | |
| void | SetDependencies (const EditorDependencies &deps) override |
| void | SetMainGraphicsUsageCallback (GfxGroupEditor::MainUsageCallback callback) |
| void | SetRoomsetGraphicsUsageCallback (GfxGroupEditor::RoomsetUsageCallback callback) |
| void | SetRoomUsageProvider (usage_preview::LiveRoomProvider provider) |
| void | PrepareForSessionTeardown () override |
| void | Initialize () override |
| absl::Status | Load () override |
| absl::Status | Save () override |
| absl::Status | Update () override |
| absl::StatusOr< std::vector< GraphicsSavePlanEntry > > | PlanGraphicsSave () |
| Graphics save preflight: every dirty sheet written to a scratch copy of the ROM (placement, addresses, sizes, verification), and the reason for any sheet the save would refuse. Does not touch the ROM. | |
| absl::Status | Cut () override |
| absl::Status | Copy () override |
| absl::Status | Paste () override |
| absl::Status | Undo () override |
| absl::Status | Redo () override |
| absl::Status | Find () override |
| void | ContributeStatus (StatusBar *status_bar) override |
| EditorContextSnapshot | BuildContextSnapshot () const override |
| bool | HasPendingGraphicsChanges () const |
| absl::Status | BeginSaveTransaction () override |
| void | RollbackSaveTransaction () override |
| void | CommitSaveTransaction () override |
| void | set_rom (Rom *rom) |
| void | SetGameData (zelda3::GameData *game_data) override |
| void | NextSheet () |
| void | SetPixelTool (PixelTool tool) |
| void | ZoomIn () |
| void | ZoomOut () |
| void | ToggleGrid () |
| void | PrevSheet () |
| void | SelectSheet (uint16_t sheet_id) |
| void | FinishPixelGesture () |
| absl::Status | OpenInContext (GraphicsEditContext context) |
| absl::Status | ReorderSourcePalette (const std::vector< size_t > &targets, const std::array< uint8_t, 8 > &permutation) |
| void | HighlightTile (uint16_t sheet_id, uint16_t tile_index, const std::string &label="", double duration_secs=3.0) |
| Rom * | rom () const |
Public Member Functions inherited from yaze::editor::Editor | |
| Editor ()=default | |
| virtual | ~Editor ()=default |
| 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 |
| 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 |
Private Member Functions | |
| absl::StatusOr< PreparedGraphicsSave > | PrepareGraphicsSave () |
| absl::Status | EditProject (const std::function< void(project::YazeProject &)> &edit) |
| void | DrawPrototypeViewer () |
| absl::Status | DrawCgxImport () |
| absl::Status | DrawScrImport () |
| absl::Status | DrawFileImport () |
| absl::Status | DrawObjImport () |
| absl::Status | DrawTilemapImport () |
| absl::Status | DrawPaletteControls () |
| absl::Status | DrawClipboardImport () |
| absl::Status | DrawExperimentalFeatures () |
| absl::Status | DrawMemoryEditor () |
| absl::Status | DecompressImportData (int size) |
| absl::Status | DecompressSuperDonkey () |
Friends | |
| class | GraphicsEditorSaveStoplossTestPeer |
| class | AuthoringSaveWorkflowTestPeer |
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 graphics sheets from the game or view prototype graphics.
The GraphicsEditor class is responsible for providing functionality to edit graphics sheets from the game or view prototype graphics of Link to the Past from the CGX, SCR, and OBJ formats. It provides various methods to update different components of the graphics editor, such as the graphics edit tab, link graphics view, and prototype graphics viewer. It also includes import functions for different file formats, as well as other utility functions for drawing toolsets, palette controls, clipboard imports, experimental features, and memory editor.
Definition at line 72 of file graphics_editor.h.
|
inlineexplicit |
Definition at line 74 of file graphics_editor.h.
References yaze::editor::kGraphics, and yaze::editor::Editor::type_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 78 of file graphics_editor.h.
References gfx_group_panel_, yaze::editor::EditorDependencies::gfx_group_workspace, and yaze::editor::Editor::SetDependencies().

|
inline |
Definition at line 85 of file graphics_editor.h.
References gfx_group_panel_, and main_graphics_usage_.
|
inline |
Definition at line 91 of file graphics_editor.h.
References gfx_group_panel_, and roomset_graphics_usage_.
|
inline |
Definition at line 97 of file graphics_editor.h.
References room_usage_provider_, and usage_preview_view_.
Referenced by PrepareForSessionTeardown().
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 102 of file graphics_editor.h.
References gfx_group_panel_, main_graphics_usage_, roomset_graphics_usage_, and SetRoomUsageProvider().

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 63 of file graphics_editor.cc.
References yaze::editor::AttachSheetStore(), yaze::editor::Editor::dependencies_, DrawPrototypeViewer(), EditProject(), FinishPixelGesture(), yaze::editor::Editor::game_data(), game_data_, gfx_group_panel_, yaze::editor::EditorDependencies::gfx_group_workspace, yaze::project::YazeProject::hack_manifest, yaze::core::HackManifest::hack_name(), yaze::core::ImportSpritesetSheetLabels(), yaze::editor::WorkspaceWindowManager::IsWindowOpen(), link_sprite_panel_, main_graphics_usage_, yaze::editor::GraphicsEditorState::on_before_sheet_selected, yaze::editor::WorkspaceWindowManager::OpenWindow(), palette_controls_panel_, paletteset_panel_, pixel_editor_panel_, PlanGraphicsSave(), polyhedral_panel_, yaze::editor::Editor::project(), Redo(), ReorderSourcePalette(), RETURN_IF_ERROR, rom_, room_usage_provider_, roomset_graphics_usage_, yaze::core::SetGraphicsSheetLabel(), sheet_browser_panel_, state_, status_, Undo(), yaze::editor::Editor::undo_manager_, usage_preview_view_, and yaze::editor::EditorDependencies::window_manager.
Referenced by yaze::test::GraphicsEditorTestSuite::RunPaletteEditingTest(), and yaze::test::GraphicsEditorTestSuite::RunPixelEditingTest().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 220 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::ClearSourceContext(), yaze::gfx::Arena::CREATE, yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), yaze::gfx::Arena::gfx_sheets(), yaze::zelda3::kNumGfxSheets, LOG_INFO, yaze::editor::GraphicsEditorState::preview_palettes, yaze::gfx::Arena::QueueTextureCommand(), rom(), state_, and usage_preview_view_.
Referenced by yaze::test::GraphicsEditorTestSuite::RunPaletteEditingTest(), and yaze::test::GraphicsEditorTestSuite::RunPixelEditingTest().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 430 of file graphics_editor.cc.
References ASSIGN_OR_RETURN, yaze::editor::GraphicsEditorState::ClearModifiedSheets(), yaze::Rom::dirty(), yaze::gfx::Arena::Get(), yaze::gfx::Arena::gfx_sheets(), yaze::editor::GraphicsEditorState::HasUnsavedChanges(), yaze::gfx::IndexedToSnesSheet(), yaze::editor::PixelSelection::is_floating, yaze::Rom::is_loaded(), yaze::zelda3::kRelocated, LOG_INFO, yaze::Rom::mutable_vector(), pixel_editor_panel_, yaze::editor::GraphicsEditor::PreparedGraphicsSave::policy, PrepareGraphicsSave(), yaze::editor::GraphicsEditor::PreparedGraphicsSave::refusals, rom_, yaze::editor::GraphicsEditorState::selection, yaze::Rom::set_dirty(), yaze::editor::GraphicsEditor::PreparedGraphicsSave::sheet_ids, state_, yaze::editor::GraphicsEditor::PreparedGraphicsSave::tables, yaze::Rom::vector(), verify_written_sheet_, and yaze::zelda3::WriteGfxSheet().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 558 of file graphics_editor.cc.
References CLEAR_AND_RETURN_STATUS, yaze::editor::RefreshGraphicsPreviewPalettes(), state_, status_, and yaze::editor::SyncArenaFromStore().

| absl::StatusOr< std::vector< GraphicsSavePlanEntry > > yaze::editor::GraphicsEditor::PlanGraphicsSave | ( | ) |
Graphics save preflight: every dirty sheet written to a scratch copy of the ROM (placement, addresses, sizes, verification), and the reason for any sheet the save would refuse. Does not touch the ROM.
Definition at line 516 of file graphics_editor.cc.
References ASSIGN_OR_RETURN, yaze::gfx::Arena::Get(), yaze::gfx::Arena::gfx_sheets(), yaze::gfx::IndexedToSnesSheet(), yaze::Rom::LoadFromData(), yaze::editor::GraphicsSavePlanEntry::new_pc, yaze::editor::GraphicsSavePlanEntry::new_stored_size, yaze::editor::GraphicsSavePlanEntry::old_pc, yaze::editor::GraphicsSavePlanEntry::old_stored_size, yaze::editor::GraphicsSavePlanEntry::placement, yaze::editor::GraphicsEditor::PreparedGraphicsSave::policy, PrepareGraphicsSave(), yaze::editor::GraphicsSavePlanEntry::refusal, yaze::editor::GraphicsEditor::PreparedGraphicsSave::refusals, RETURN_IF_ERROR, rom_, yaze::editor::GraphicsSavePlanEntry::sheet_id, yaze::editor::GraphicsEditor::PreparedGraphicsSave::sheet_ids, yaze::editor::GraphicsEditor::PreparedGraphicsSave::tables, yaze::Rom::vector(), verify_written_sheet_, and yaze::zelda3::WriteGfxSheet().
Referenced by Initialize().
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1043 of file graphics_editor.cc.
References pixel_editor_panel_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1051 of file graphics_editor.cc.
References pixel_editor_panel_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 1059 of file graphics_editor.cc.
References pixel_editor_panel_.
|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 573 of file graphics_editor.cc.
References pixel_editor_panel_, yaze::editor::UndoManager::Undo(), and yaze::editor::Editor::undo_manager_.
Referenced by Initialize().

|
overridevirtual |
Implements yaze::editor::Editor.
Definition at line 581 of file graphics_editor.cc.
References pixel_editor_panel_, yaze::editor::UndoManager::Redo(), and yaze::editor::Editor::undo_manager_.
Referenced by Initialize().

|
inlineoverridevirtual |
Implements yaze::editor::Editor.
Definition at line 126 of file graphics_editor.h.
|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 289 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::current_sheet_id, yaze::editor::GraphicsEditorState::HasUnsavedChanges(), yaze::editor::GraphicsEditorState::modified_sheets, yaze::editor::GraphicsEditorState::selected_sheets, yaze::editor::StatusBar::SetCustomSegment(), yaze::editor::StatusBar::SetSelection(), state_, and yaze::editor::StatusBarSegmentOptions::tooltip.

|
overridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 315 of file graphics_editor.cc.
References yaze::editor::AppendResolvedGraphicsContext(), yaze::editor::EditorContextSnapshot::category, yaze::editor::GraphicsEditorState::current_sheet_id, yaze::editor::GraphicsEditorState::game_data, yaze::editor::EditorContextSnapshot::has_pending_changes, yaze::editor::GraphicsEditorState::HasUnsavedChanges(), yaze::editor::EditorContextSnapshot::metadata, yaze::zelda3::GraphicsSheetStore::Revision(), yaze::editor::EditorContextSnapshot::semantic_owner, yaze::zelda3::GraphicsSheetStoreHolder::sheet_store, yaze::editor::GraphicsEditorState::source_context, yaze::editor::GraphicsEditorState::SourceTarget(), state_, yaze::editor::EditorContextSnapshot::subtitle, and yaze::editor::EditorContextSnapshot::title.

|
inline |
Definition at line 130 of file graphics_editor.h.
References yaze::editor::GraphicsEditorState::HasUnsavedChanges(), yaze::editor::PixelSelection::is_floating, pixel_editor_panel_, yaze::editor::GraphicsEditorState::selection, and state_.

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 137 of file graphics_editor.h.
References yaze::editor::PixelSelection::is_floating, yaze::editor::GraphicsEditorState::modified_sheets, pixel_editor_panel_, save_transaction_modified_sheets_, yaze::editor::GraphicsEditorState::selection, and state_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 153 of file graphics_editor.h.
References yaze::editor::GraphicsEditorState::modified_sheets, save_transaction_modified_sheets_, and state_.
|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 159 of file graphics_editor.h.
References save_transaction_modified_sheets_.
|
inline |
Definition at line 164 of file graphics_editor.h.
References yaze::editor::GraphicsEditorState::ClearSourceContext(), game_data_, gfx_group_panel_, link_sprite_panel_, paletteset_panel_, pixel_editor_panel_, polyhedral_panel_, yaze::editor::GraphicsEditorState::preview_palettes, yaze::editor::Editor::project(), rom(), rom_, sheet_browser_panel_, state_, and usage_preview_view_.

|
inlineoverridevirtual |
Reimplemented from yaze::editor::Editor.
Definition at line 196 of file graphics_editor.h.
References yaze::editor::AttachSheetStore(), yaze::editor::Editor::game_data(), game_data_, gfx_group_panel_, paletteset_panel_, yaze::editor::Editor::project(), rom_, sheet_browser_panel_, state_, and usage_preview_view_.
Referenced by yaze::test::GraphicsEditorTestSuite::RunPaletteEditingTest(), and yaze::test::GraphicsEditorTestSuite::RunPixelEditingTest().

| void yaze::editor::GraphicsEditor::NextSheet | ( | ) |
Definition at line 1015 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::current_sheet_id, yaze::zelda3::kNumGfxSheets, yaze::editor::GraphicsEditorState::SelectSheet(), and state_.

| void yaze::editor::GraphicsEditor::SetPixelTool | ( | PixelTool | tool | ) |
Definition at line 1027 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::SetTool(), and state_.

| void yaze::editor::GraphicsEditor::ZoomIn | ( | ) |
Definition at line 1031 of file graphics_editor.cc.
References state_, and yaze::editor::GraphicsEditorState::ZoomIn().

| void yaze::editor::GraphicsEditor::ZoomOut | ( | ) |
Definition at line 1035 of file graphics_editor.cc.
References state_, and yaze::editor::GraphicsEditorState::ZoomOut().

| void yaze::editor::GraphicsEditor::ToggleGrid | ( | ) |
Definition at line 1039 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::show_grid, and state_.
| void yaze::editor::GraphicsEditor::PrevSheet | ( | ) |
Definition at line 1021 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::current_sheet_id, yaze::editor::GraphicsEditorState::SelectSheet(), and state_.

| void yaze::editor::GraphicsEditor::SelectSheet | ( | uint16_t | sheet_id | ) |
Definition at line 1072 of file graphics_editor.cc.
References yaze::zelda3::kNumGfxSheets, yaze::editor::GraphicsEditorState::requested_sheet_tab, yaze::editor::GraphicsEditorState::SelectSheet(), and state_.
Referenced by yaze::test::GraphicsEditorTestSuite::RunPixelEditingTest().

| void yaze::editor::GraphicsEditor::FinishPixelGesture | ( | ) |
Definition at line 1067 of file graphics_editor.cc.
References pixel_editor_panel_.
Referenced by Initialize(), and OpenInContext().
| absl::Status yaze::editor::GraphicsEditor::OpenInContext | ( | GraphicsEditContext | context | ) |
Definition at line 1080 of file graphics_editor.cc.
References yaze::editor::PixelSelection::Clear(), yaze::editor::Editor::context(), yaze::editor::Editor::dependencies_, FinishPixelGesture(), yaze::editor::GraphicsEditorState::game_data, yaze::zelda3::GetGfxSheetStorageKind(), yaze::zelda3::GraphicsSheetStore::HasSheet(), yaze::editor::PixelSelection::is_floating, yaze::zelda3::kCompressed2bpp, yaze::zelda3::kNumGfxSheets, yaze::editor::WorkspaceWindowManager::OpenWindow(), pixel_editor_panel_, yaze::editor::GraphicsEditorState::selection, yaze::editor::GraphicsEditorState::SelectSourceTarget(), yaze::zelda3::GraphicsSheetStoreHolder::sheet_store, yaze::editor::GraphicsEditorState::source_context, yaze::editor::GraphicsEditorState::source_context_revision, state_, and yaze::editor::EditorDependencies::window_manager.
| absl::Status yaze::editor::GraphicsEditor::ReorderSourcePalette | ( | const std::vector< size_t > & | targets, |
| const std::array< uint8_t, 8 > & | permutation ) |
Definition at line 1117 of file graphics_editor.cc.
References yaze::editor::ApplyPalettePixelPermutation(), pixel_editor_panel_, yaze::editor::RefreshGraphicsPreviewPalettes(), RETURN_IF_ERROR, state_, and yaze::editor::Editor::undo_manager_.
Referenced by Initialize().

| void yaze::editor::GraphicsEditor::HighlightTile | ( | uint16_t | sheet_id, |
| uint16_t | tile_index, | ||
| const std::string & | label = "", | ||
| double | duration_secs = 3.0 ) |
Definition at line 1128 of file graphics_editor.cc.
References yaze::editor::GraphicsEditorState::HighlightTile(), yaze::zelda3::kNumGfxSheets, and state_.

|
inline |
Definition at line 235 of file graphics_editor.h.
References rom_.
Referenced by DecompressImportData(), DrawPaletteControls(), Load(), and set_rom().
|
private |
Definition at line 374 of file graphics_editor.cc.
References ASSIGN_OR_RETURN, yaze::zelda3::GfxSheetPointerTables::bank, yaze::core::BuildGfxSheetWritePolicy(), yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), yaze::core::RomSettings::Get(), yaze::core::RomSettings::GetAddressOr(), yaze::zelda3::GetGfxSheetStorageKind(), yaze::gfx::Arena::gfx_sheets(), yaze::zelda3::GfxSheetPointerTables::high, yaze::Rom::is_loaded(), yaze::zelda3::kCompressed2bpp, yaze::zelda3::kNumGfxSheets, yaze::core::RomAddressKey::kOverworldGfxPtr1, yaze::core::RomAddressKey::kOverworldGfxPtr2, yaze::core::RomAddressKey::kOverworldGfxPtr3, yaze::zelda3::GfxSheetPointerTables::low, yaze::editor::GraphicsEditorState::modified_sheets, yaze::editor::GraphicsEditor::PreparedGraphicsSave::policy, yaze::editor::Editor::project(), yaze::editor::GraphicsEditor::PreparedGraphicsSave::refusals, yaze::zelda3::GfxSheetWritePolicy::reserved_sheets, rom_, yaze::editor::GraphicsEditor::PreparedGraphicsSave::sheet_ids, state_, yaze::editor::GraphicsEditor::PreparedGraphicsSave::tables, and yaze::zelda3::GameData::version.
Referenced by PlanGraphicsSave(), and Save().
|
private |
Definition at line 350 of file graphics_editor.cc.
References yaze::editor::Editor::active(), yaze::editor::EditorDependencies::custom_data, yaze::editor::Editor::dependencies_, yaze::editor::Editor::project(), and yaze::editor::EditorDependencies::session_id.
Referenced by Initialize().

|
private |
Definition at line 589 of file graphics_editor.cc.
References BEGIN_TABLE, bin_bitmap_, yaze::gui::BitmapCanvasPipeline(), cgx_bitmap_, cgx_loaded_, col_file_, DrawCgxImport(), DrawClipboardImport(), DrawExperimentalFeatures(), DrawFileImport(), DrawMemoryEditor(), DrawPaletteControls(), DrawScrImport(), END_TABLE, yaze::gui::Canvas::GetConfig(), gfx_loaded_, gfx_sheets_, import_canvas_, yaze::Rom::is_loaded(), yaze::gui::kCompositeOutput, NEXT_COLUMN, num_sheets_to_load_, open_memory_editor_, prototype_import_feedback_, yaze::gui::CanvasConfig::role, rom_, scr_bitmap_, scr_canvas_, scr_loaded_, SETUP_COLUMN, status_, super_donkey_, and TABLE_HEADERS.
Referenced by Initialize().
|
private |
Definition at line 670 of file graphics_editor.cc.
References cgx_bitmap_, cgx_data_, cgx_file_name_, cgx_file_path_, cgx_loaded_, col_file_, yaze::gfx::Bitmap::Create(), current_bpp_, decoded_cgx_, decoded_col_, extra_cgx_data_, yaze::gfx::Arena::Get(), is_open_, yaze::gfx::LoadCgx(), prototype_import_feedback_, yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Bitmap::SetPalette(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), status_, yaze::gui::TextWithSeparators(), and yaze::gfx::Arena::UPDATE.
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 709 of file graphics_editor.cc.
References yaze::gfx::Bitmap::Create(), current_bpp_, decoded_cgx_, decoded_col_, decoded_scr_data_, yaze::gfx::DrawScrWithCgx(), yaze::gfx::Arena::Get(), is_open_, yaze::gfx::LoadScr(), prototype_import_feedback_, yaze::gfx::Arena::QueueTextureCommand(), scr_bitmap_, scr_data_, scr_file_name_, scr_file_path_, scr_loaded_, scr_mod_value_, yaze::gfx::Bitmap::SetPalette(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), status_, and yaze::gfx::Arena::UPDATE.
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 839 of file graphics_editor.cc.
References bin_size_, current_offset_, DecompressImportData(), file_path_, HOVER_HINT, yaze::gui::InputHex(), is_open_, yaze::Rom::LoadFromFile(), RETURN_IF_ERROR, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), status_, temp_rom_, and yaze::gui::TextWithSeparators().
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 797 of file graphics_editor.cc.
References HOVER_HINT, is_open_, yaze::Rom::LoadFromFile(), obj_file_path_, obj_loaded_, yaze::util::FileDialogWrapper::ShowOpenFileDialog(), status_, temp_rom_, and yaze::gui::TextWithSeparators().

|
private |
Definition at line 815 of file graphics_editor.cc.
References yaze::Rom::data(), yaze::gfx::lc_lz2::DecompressV2(), HOVER_HINT, is_open_, yaze::gfx::lc_lz2::kNintendoMode1, yaze::Rom::LoadFromFile(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::Rom::size(), status_, yaze::gui::TextWithSeparators(), tilemap_file_path_, tilemap_loaded_, and tilemap_rom_.
|
private |
Definition at line 750 of file graphics_editor.cc.
References yaze::gfx::PaletteGroup::clear(), col_file_, col_file_name_, col_file_palette_, col_file_palette_group_, col_file_path_, yaze::gfx::CreatePaletteGroupFromColFile(), current_palette_, current_palette_index_, yaze::gfx::DecodeColFile(), decoded_col_, yaze::gfx::GetColFileData(), HOVER_HINT, yaze::gui::InputHex(), is_open_, yaze::Rom::LoadFromFile(), yaze::Rom::mutable_data(), refresh_graphics_, rom(), yaze::gui::SelectablePalettePipeline(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::gfx::SnesPalette::size(), yaze::gfx::PaletteGroup::size(), status_, temp_rom_, and yaze::gui::TextWithSeparators().
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 871 of file graphics_editor.cc.
References clipboard_offset_, clipboard_size_, DecompressImportData(), yaze::gui::InputHex(), yaze::Rom::is_loaded(), is_open_, yaze::Rom::LoadFromData(), num_sheets_to_load_, open_memory_editor_, status_, temp_rom_, and yaze::gui::TextWithSeparators().
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 901 of file graphics_editor.cc.
References DecompressSuperDonkey(), file_path_, RETURN_IF_ERROR, and yaze::gui::TextWithSeparators().
Referenced by DrawPrototypeViewer().

|
private |
Definition at line 917 of file graphics_editor.cc.
References yaze::gui::MemoryEditorWidget::DrawWindow(), is_open_, yaze::Rom::mutable_data(), yaze::Rom::size(), and temp_rom_.
Referenced by DrawPrototypeViewer().

|
private |
Definition at line 927 of file graphics_editor.cc.
References ASSIGN_OR_RETURN, bin_bitmap_, col_file_, col_file_palette_, yaze::gfx::Bitmap::Create(), current_offset_, current_palette_, yaze::Rom::data(), yaze::gfx::lc_lz2::DecompressV2(), yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), gfx_loaded_, import_data_, yaze::gfx::kTilesheetDepth, yaze::gfx::kTilesheetWidth, yaze::gfx::PaletteGroupMap::overworld_animated, yaze::zelda3::GameData::palette_groups, yaze::gfx::Arena::QueueTextureCommand(), rom(), yaze::gfx::Bitmap::SetPalette(), yaze::Rom::size(), yaze::gfx::SnesTo8bppSheet(), temp_rom_, yaze::gfx::Arena::UPDATE, and z3_rom_palette_.
Referenced by DrawClipboardImport(), and DrawFileImport().
|
private |
Definition at line 953 of file graphics_editor.cc.
References ASSIGN_OR_RETURN, col_file_, col_file_palette_group_, current_palette_, current_palette_index_, yaze::Rom::data(), yaze::gfx::lc_lz2::DecompressV2(), yaze::editor::Editor::game_data(), yaze::gfx::Arena::Get(), yaze::gfx::PaletteGroupMap::get_group(), gfx_sheets_, yaze::editor::kSuperDonkeySprites, yaze::editor::kSuperDonkeyTiles, yaze::gfx::kTilesheetDepth, yaze::gfx::kTilesheetHeight, yaze::gfx::kTilesheetWidth, num_sheets_to_load_, yaze::zelda3::GameData::palette_groups, yaze::gfx::Arena::QueueTextureCommand(), yaze::Rom::size(), yaze::gfx::SnesTo8bppSheet(), super_donkey_, temp_rom_, yaze::gfx::Arena::UPDATE, and z3_rom_palette_.
Referenced by DrawExperimentalFeatures().
|
friend |
Definition at line 252 of file graphics_editor.h.
|
friend |
Definition at line 253 of file graphics_editor.h.
|
private |
Definition at line 250 of file graphics_editor.h.
Referenced by PlanGraphicsSave(), and Save().
|
private |
Definition at line 262 of file graphics_editor.h.
Referenced by BeginSaveTransaction(), BuildContextSnapshot(), ContributeStatus(), HasPendingGraphicsChanges(), HighlightTile(), Initialize(), Load(), NextSheet(), OpenInContext(), PrepareGraphicsSave(), PrevSheet(), ReorderSourcePalette(), RollbackSaveTransaction(), Save(), SelectSheet(), set_rom(), SetGameData(), SetPixelTool(), ToggleGrid(), Update(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 263 of file graphics_editor.h.
Referenced by BeginSaveTransaction(), CommitSaveTransaction(), and RollbackSaveTransaction().
|
private |
Definition at line 264 of file graphics_editor.h.
Referenced by Initialize(), set_rom(), and SetGameData().
|
private |
Definition at line 265 of file graphics_editor.h.
Referenced by BeginSaveTransaction(), Copy(), Cut(), FinishPixelGesture(), HasPendingGraphicsChanges(), Initialize(), OpenInContext(), Paste(), Redo(), ReorderSourcePalette(), Save(), set_rom(), and Undo().
|
private |
Definition at line 266 of file graphics_editor.h.
Referenced by Initialize().
|
private |
Definition at line 267 of file graphics_editor.h.
Referenced by Initialize(), and set_rom().
|
private |
Definition at line 268 of file graphics_editor.h.
Referenced by Initialize(), PrepareForSessionTeardown(), set_rom(), SetDependencies(), SetGameData(), SetMainGraphicsUsageCallback(), and SetRoomsetGraphicsUsageCallback().
|
private |
Definition at line 269 of file graphics_editor.h.
Referenced by Initialize(), PrepareForSessionTeardown(), and SetMainGraphicsUsageCallback().
|
private |
Definition at line 270 of file graphics_editor.h.
Referenced by Initialize(), PrepareForSessionTeardown(), and SetRoomsetGraphicsUsageCallback().
|
private |
Definition at line 271 of file graphics_editor.h.
Referenced by Initialize(), set_rom(), and SetGameData().
|
private |
Definition at line 272 of file graphics_editor.h.
Referenced by Initialize(), and set_rom().
|
private |
Definition at line 273 of file graphics_editor.h.
Referenced by Initialize(), and SetRoomUsageProvider().
|
private |
Definition at line 274 of file graphics_editor.h.
Referenced by Initialize(), Load(), set_rom(), SetGameData(), and SetRoomUsageProvider().
|
private |
Definition at line 291 of file graphics_editor.h.
Referenced by DecompressImportData(), DecompressSuperDonkey(), and DrawPaletteControls().
|
private |
Definition at line 292 of file graphics_editor.h.
Referenced by DecompressImportData(), and DrawFileImport().
|
private |
Definition at line 293 of file graphics_editor.h.
Referenced by DecompressSuperDonkey(), and DrawPaletteControls().
|
private |
Definition at line 294 of file graphics_editor.h.
Referenced by DrawCgxImport(), and DrawScrImport().
|
private |
Definition at line 295 of file graphics_editor.h.
Referenced by DrawScrImport().
|
private |
Definition at line 296 of file graphics_editor.h.
Referenced by DecompressSuperDonkey(), DrawClipboardImport(), and DrawPrototypeViewer().
|
private |
Definition at line 297 of file graphics_editor.h.
Referenced by DrawFileImport().
|
private |
Definition at line 298 of file graphics_editor.h.
Referenced by DrawClipboardImport().
|
private |
Definition at line 299 of file graphics_editor.h.
Referenced by DrawClipboardImport().
|
private |
Definition at line 300 of file graphics_editor.h.
Referenced by DrawPaletteControls().
|
private |
Definition at line 301 of file graphics_editor.h.
Referenced by DrawClipboardImport(), and DrawPrototypeViewer().
|
private |
Definition at line 302 of file graphics_editor.h.
Referenced by DecompressImportData(), and DrawPrototypeViewer().
|
private |
Definition at line 303 of file graphics_editor.h.
Referenced by DrawCgxImport(), DrawClipboardImport(), DrawFileImport(), DrawMemoryEditor(), DrawObjImport(), DrawPaletteControls(), DrawScrImport(), and DrawTilemapImport().
|
private |
Definition at line 304 of file graphics_editor.h.
Referenced by DecompressSuperDonkey(), and DrawPrototypeViewer().
|
private |
Definition at line 305 of file graphics_editor.h.
Referenced by DecompressImportData(), DecompressSuperDonkey(), DrawCgxImport(), DrawPaletteControls(), and DrawPrototypeViewer().
|
private |
Definition at line 306 of file graphics_editor.h.
Referenced by DrawCgxImport(), and DrawPrototypeViewer().
|
private |
Definition at line 307 of file graphics_editor.h.
Referenced by DrawPrototypeViewer(), and DrawScrImport().
|
private |
Definition at line 308 of file graphics_editor.h.
Referenced by DrawObjImport().
|
private |
Definition at line 309 of file graphics_editor.h.
Referenced by DrawTilemapImport().
|
private |
Definition at line 311 of file graphics_editor.h.
Referenced by DrawExperimentalFeatures(), and DrawFileImport().
|
private |
Definition at line 312 of file graphics_editor.h.
Referenced by DrawPaletteControls().
|
private |
Definition at line 313 of file graphics_editor.h.
Referenced by DrawPaletteControls().
|
private |
Definition at line 314 of file graphics_editor.h.
Referenced by DrawCgxImport().
|
private |
Definition at line 315 of file graphics_editor.h.
Referenced by DrawCgxImport().
|
private |
Definition at line 316 of file graphics_editor.h.
Referenced by DrawScrImport().
|
private |
Definition at line 317 of file graphics_editor.h.
Referenced by DrawScrImport().
|
private |
Definition at line 318 of file graphics_editor.h.
Referenced by DrawObjImport().
|
private |
Definition at line 319 of file graphics_editor.h.
Referenced by DrawTilemapImport().
|
private |
Definition at line 320 of file graphics_editor.h.
|
private |
Definition at line 322 of file graphics_editor.h.
Referenced by DecompressImportData(), DecompressSuperDonkey(), DrawClipboardImport(), DrawFileImport(), DrawMemoryEditor(), DrawObjImport(), and DrawPaletteControls().
|
private |
Definition at line 323 of file graphics_editor.h.
Referenced by DrawTilemapImport().
|
private |
Definition at line 324 of file graphics_editor.h.
Referenced by DecompressImportData().
|
private |
Definition at line 325 of file graphics_editor.h.
Referenced by DrawCgxImport(), and DrawScrImport().
|
private |
Definition at line 326 of file graphics_editor.h.
Referenced by DrawCgxImport().
|
private |
Definition at line 327 of file graphics_editor.h.
Referenced by DrawCgxImport().
|
private |
Definition at line 328 of file graphics_editor.h.
Referenced by DrawCgxImport(), DrawPaletteControls(), and DrawScrImport().
|
private |
Definition at line 329 of file graphics_editor.h.
Referenced by DrawScrImport().
|
private |
Definition at line 330 of file graphics_editor.h.
Referenced by DrawScrImport().
|
private |
Definition at line 331 of file graphics_editor.h.
Referenced by DrawCgxImport(), and DrawPrototypeViewer().
|
private |
Definition at line 332 of file graphics_editor.h.
Referenced by DrawPrototypeViewer(), and DrawScrImport().
|
private |
Definition at line 333 of file graphics_editor.h.
Referenced by DecompressImportData(), and DrawPrototypeViewer().
|
private |
Definition at line 334 of file graphics_editor.h.
Referenced by DecompressSuperDonkey(), and DrawPrototypeViewer().
|
private |
Definition at line 335 of file graphics_editor.h.
Referenced by DecompressSuperDonkey(), and DrawPaletteControls().
|
private |
Definition at line 336 of file graphics_editor.h.
Referenced by DecompressImportData(), and DecompressSuperDonkey().
|
private |
Definition at line 337 of file graphics_editor.h.
Referenced by DecompressImportData(), and DrawPaletteControls().
|
private |
Definition at line 338 of file graphics_editor.h.
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 339 of file graphics_editor.h.
Referenced by DrawPrototypeViewer().
|
private |
Definition at line 340 of file graphics_editor.h.
|
private |
Definition at line 343 of file graphics_editor.h.
Referenced by DrawCgxImport(), DrawPrototypeViewer(), and DrawScrImport().
|
private |
Definition at line 346 of file graphics_editor.h.
Referenced by DrawCgxImport(), DrawClipboardImport(), DrawFileImport(), DrawObjImport(), DrawPaletteControls(), DrawPrototypeViewer(), DrawScrImport(), DrawTilemapImport(), Initialize(), and Update().
|
private |
Definition at line 349 of file graphics_editor.h.
Referenced by DrawPrototypeViewer(), Initialize(), PlanGraphicsSave(), PrepareGraphicsSave(), rom(), Save(), set_rom(), and SetGameData().
|
private |
Definition at line 350 of file graphics_editor.h.
Referenced by Initialize(), set_rom(), and SetGameData().