Popup window to edit Tile16 data. More...
#include <tile16_editor.h>

Classes | |
| struct | LayoutScratch |
Public Member Functions | |
| Tile16Editor (Rom *rom, gfx::Tilemap *tile16_blockset) | |
| absl::Status | Initialize (gfx::Bitmap &tile16_blockset_bmp, gfx::Bitmap ¤t_gfx_bmp, std::array< uint8_t, 0x200 > &all_tiles_types) |
| absl::Status | Update () |
| absl::Status | UpdateAsPanel () |
| Update the editor content without MenuBar (for WindowContent usage) | |
| void | DrawContextMenu () |
| Draw context menu with editor actions. | |
| void | DrawTile16Editor () |
| absl::Status | UpdateBlockset () |
| void | DrawScratchSpace () |
| absl::Status | SaveLayoutToScratch (int slot) |
| absl::Status | LoadLayoutFromScratch (int slot) |
| absl::Status | DrawToCurrentTile16 (ImVec2 pos, const gfx::Bitmap *source_tile=nullptr) |
| absl::Status | HandleTile16CanvasClick (const ImVec2 &tile_position, bool left_click, bool right_click) |
| absl::Status | UpdateTile16Edit () |
| absl::Status | LoadTile8 () |
| absl::Status | SetCurrentTile (int id) |
| void | RequestTileSwitch (int target_tile_id) |
| absl::Status | CopyTile16ToClipboard (int tile_id) |
| absl::Status | PasteTile16FromClipboard () |
| absl::Status | SaveTile16ToScratchSpace (int slot) |
| absl::Status | LoadTile16FromScratchSpace (int slot) |
| absl::Status | ClearScratchSpace (int slot) |
| absl::Status | FlipTile16Horizontal () |
| absl::Status | FlipTile16Vertical () |
| absl::Status | RotateTile16 () |
| absl::Status | FillTile16WithTile8 (int tile8_id) |
| absl::Status | ClearTile16 () |
| absl::Status | CyclePalette (bool forward=true) |
| absl::Status | ApplyPaletteToAll (uint8_t palette_id) |
| absl::Status | ApplyPaletteToQuadrant (int quadrant, uint8_t palette_id) |
| absl::Status | PreviewPaletteChange (uint8_t palette_id) |
| absl::Status | Undo () |
| absl::Status | Redo () |
| void | SaveUndoState () |
| void | EnableLivePreview (bool enable) |
| absl::Status | UpdateLivePreview () |
| absl::Status | ValidateTile16Data () |
| bool | IsTile16Valid (int tile_id) const |
| absl::Status | SaveTile16ToROM () |
| Write current tile16 data directly to ROM (bypasses pending system) | |
| absl::Status | UpdateOverworldTilemap () |
| Update the overworld tilemap to reflect tile changes. | |
| absl::Status | CommitChangesToBlockset () |
| Commit pending changes to the blockset atlas. | |
| absl::Status | CommitChangesToOverworld () |
Single-tile commit: ROM + blockset + parent refresh callback. Prefer CommitAllChanges() from the main UI; kept for integration tests. | |
| absl::Status | DiscardChanges () |
| Discard current tile's changes (single tile) | |
| bool | has_pending_changes () const |
| Check if any tiles have uncommitted changes. | |
| int | pending_changes_count () const |
| Get count of tiles with pending changes. | |
| bool | is_tile_modified (int tile_id) const |
| Check if a specific tile has pending changes. | |
| const gfx::Bitmap * | GetPendingTileBitmap (int tile_id) const |
| Get preview bitmap for a pending tile (nullptr if not modified) | |
| absl::Status | CommitAllChanges () |
| Write all pending changes to ROM and notify parent. | |
| void | DiscardAllChanges () |
| Discard all pending changes (revert to ROM state) | |
| void | DiscardCurrentTileChanges () |
| Discard only the current tile's pending changes. | |
| void | MarkCurrentTileModified () |
| Mark the current tile as having pending changes. | |
| absl::Status | UpdateTile8Palette (int tile8_id) |
| Update palette for a specific tile8. | |
| absl::Status | RefreshAllPalettes () |
| Refresh all tile8 palettes after a palette change. | |
| void | DrawPaletteSettings () |
| Draw palette settings UI. | |
| int | GetPaletteSlotForSheet (int sheet_index) const |
| Get base palette slot for a graphics sheet. | |
| int | GetActualPaletteSlot (int palette_button, int sheet_index) const |
| Calculate actual palette slot from button + sheet. | |
| int | GetPaletteBaseForSheet (int sheet_index) const |
| Get palette base row for a graphics sheet. | |
| int | GetSheetIndexForTile8 (int tile8_id) const |
| Determine which graphics sheet contains a tile8. | |
| int | GetActualPaletteSlotForCurrentTile16 () const |
| Get the palette slot for the current tile being edited. | |
| gfx::SnesPalette | CreateRemappedPaletteForViewing (const gfx::SnesPalette &source, int target_row) const |
| Create a remapped palette for viewing with user-selected palette. | |
| int | GetEncodedPaletteRow (uint8_t pixel_value) const |
| Get the encoded palette row for a pixel value. | |
| absl::Status | UpdateROMTile16Data () |
| absl::Status | RefreshTile16Blockset () |
| gfx::Tile16 * | GetCurrentTile16Data () |
| absl::Status | RegenerateTile16BitmapFromROM () |
| absl::Status | UpdateBlocksetBitmap () |
| absl::Status | PickTile8FromTile16 (const ImVec2 &position) |
| void | DrawManualTile8Inputs () |
| void | SetRom (Rom *rom) |
| Rom * | rom () const |
| void | SetGameData (zelda3::GameData *game_data) |
| zelda3::GameData * | game_data () const |
| void | set_palette (const gfx::SnesPalette &palette) |
| void | set_on_changes_committed (std::function< absl::Status()> callback) |
| void | set_on_current_tile_changed (std::function< void(int)> callback) |
| int | current_palette () const |
| void | set_current_palette (int palette) |
| int | current_tile16 () const |
| int | current_tile8 () const |
| int | active_quadrant () const |
| void | set_active_quadrant (int quadrant) |
| Tile16EditMode | edit_mode () const |
| void | set_edit_mode (Tile16EditMode mode) |
| void | AnalyzeTile8SourceData () const |
Private Member Functions | |
| void | FinalizePendingUndo () |
| Finalize any pending undo snapshot by capturing current state as "after" and pushing a Tile16EditAction to undo_manager_. | |
| void | RestoreFromSnapshot (const Tile16Snapshot &snapshot) |
| Restore editor state from a Tile16Snapshot (used by undo actions). | |
| void | ApplyPaletteToCurrentTile16Bitmap () |
| const gfx::SnesPalette * | ResolveDisplayPalette () const |
| bool | BitmapHasEncodedPaletteRows (const gfx::Bitmap &bitmap) const |
| absl::Status | BuildTile16BitmapFromData (const gfx::Tile16 &tile_data, gfx::Bitmap *output_bitmap) const |
| void | CopyTileBitmapToBlockset (int tile_id, const gfx::Bitmap &tile_bitmap) |
| absl::Status | RebuildTile8UsageCache () |
| void | DrawTile8UsageOverlay () |
| void | HandleKeyboardShortcuts () |
| bool | HasCurrentGfxBitmap () const |
| bool | HasTile16BlocksetBitmap () const |
| void | CopyTile16ToAtlas (int tile_id) |
| void | DrawEditorHeader (bool show_debug_info) |
| void | DrawEditorHeaderToggles (bool *show_debug_info, bool *show_advanced_controls) |
| void | DrawStagedStateBar (bool has_pending, bool current_tile_pending, int pending_count) |
| absl::Status | DrawBrushAndTilePaletteControls (bool show_debug_info) |
| absl::Status | DrawTile8SourcePanel () |
| absl::Status | HandleTile8SourceSelection (bool right_clicked) |
| absl::Status | DrawPrimaryActionControls () |
| absl::Status | DrawBottomActionRail (bool has_pending, bool current_tile_pending, int pending_count) |
Static Private Attributes | |
| static constexpr int | kTilesPerPage = 64 |
| static constexpr int | kTilesPerRow = 8 |
Additional Inherited Members | |
Static Protected Attributes inherited from yaze::gfx::GfxContext | |
| static std::unordered_map< uint8_t, gfx::Paletteset > | palettesets_ |
Popup window to edit Tile16 data.
Provides visual editing of 16x16 tiles composed of four 8x8 sub-tiles. Uses a pending changes system to prevent accidental ROM modifications.
Definition at line 134 of file tile16_editor.h.
|
inline |
Definition at line 136 of file tile16_editor.h.
| absl::Status yaze::editor::Tile16Editor::Initialize | ( | gfx::Bitmap & | tile16_blockset_bmp, |
| gfx::Bitmap & | current_gfx_bmp, | ||
| std::array< uint8_t, 0x200 > & | all_tiles_types ) |
Definition at line 86 of file tile16_editor.cc.
References yaze::gui::AddTableColumn(), all_tiles_types_, yaze::gui::TileSelectorWidget::AttachCanvas(), blockset_canvas_, blockset_selector_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_gfx_bmp_, current_tile16_, current_tile16_bmp_, current_tile8_, yaze::gui::Canvas::custom_labels_enabled(), yaze::gfx::Arena::Get(), yaze::util::HexByte(), yaze::gui::Canvas::InitializeDefaults(), yaze::gui::Canvas::InitializePaletteEditor(), yaze::editor::kTile16PixelCount, yaze::editor::kTile16Size, map_blockset_loaded_, yaze::gui::Canvas::mutable_labels(), yaze::gfx::Bitmap::palette(), priority_tile, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, rom_, yaze::gui::Canvas::SetAutoResize(), SetCurrentTile(), yaze::gfx::Bitmap::SetPalette(), yaze::gui::TileSelectorWidget::SetTileCount(), tile16_blockset_, tile16_blockset_bmp_, tile16_edit_canvas_, tile8_source_canvas_, tile_edit_table_, x_flip, and y_flip.
Referenced by yaze::editor::OverworldEditor::Load(), and yaze::test::RomDependentTestSuite::RunTile16EditorTest().
| absl::Status yaze::editor::Tile16Editor::Update | ( | ) |
Definition at line 152 of file tile16_editor.cc.
References ClearScratchSpace(), CommitAllChanges(), CommitChangesToBlockset(), CopyTile16ToClipboard(), current_tile16_, yaze::gui::Canvas::custom_labels_enabled(), yaze::gui::DangerButton(), DrawPaletteSettings(), DrawTile16Editor(), EnableLivePreview(), HandleKeyboardShortcuts(), live_preview_enabled_, LoadTile16FromScratchSpace(), yaze::util::logf(), map_blockset_loaded_, PasteTile16FromClipboard(), pending_tile16_bitmaps_, pending_tile16_changes_, pending_tile_switch_target_, RETURN_IF_ERROR, SaveTile16ToScratchSpace(), scratch_space_, SetCurrentTile(), show_unsaved_changes_dialog_, status_, yaze::gui::SuccessButton(), tile8_source_canvas_, and UpdateLivePreview().
| absl::Status yaze::editor::Tile16Editor::UpdateAsPanel | ( | ) |
Update the editor content without MenuBar (for WindowContent usage)
This is the panel-friendly version that doesn't require ImGuiWindowFlags_MenuBar. Menu items are available through the context menu instead.
Definition at line 318 of file tile16_editor.cc.
References CommitAllChanges(), current_tile16_, yaze::gui::DangerButton(), DrawContextMenu(), DrawPaletteSettings(), DrawTile16Editor(), HandleKeyboardShortcuts(), ICON_MD_MENU, yaze::util::logf(), map_blockset_loaded_, pending_tile16_bitmaps_, pending_tile16_changes_, pending_tile_switch_target_, RETURN_IF_ERROR, SetCurrentTile(), show_unsaved_changes_dialog_, yaze::gui::SuccessButton(), and UpdateLivePreview().
| void yaze::editor::Tile16Editor::DrawContextMenu | ( | ) |
Draw context menu with editor actions.
Contains the same actions as the MenuBar but in context menu form. Call this when right-clicking or from a menu button.
Definition at line 426 of file tile16_editor.cc.
References ClearScratchSpace(), ClearTile16(), CommitAllChanges(), CommitChangesToBlockset(), CopyTile16ToClipboard(), current_tile16_, yaze::gui::Canvas::custom_labels_enabled(), EnableLivePreview(), FlipTile16Horizontal(), FlipTile16Vertical(), live_preview_enabled_, LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), RotateTile16(), SaveTile16ToScratchSpace(), scratch_space_, status_, and tile8_source_canvas_.
Referenced by UpdateAsPanel().
| void yaze::editor::Tile16Editor::DrawTile16Editor | ( | ) |
Definition at line 313 of file tile16_editor.cc.
References status_, and UpdateTile16Edit().
Referenced by Update(), and UpdateAsPanel().

| absl::Status yaze::editor::Tile16Editor::UpdateBlockset | ( | ) |
Definition at line 500 of file tile16_editor.cc.
References yaze::gui::BeginCanvas(), yaze::gui::BeginChildWithScrollbar(), yaze::gui::BeginPadding(), blockset_canvas_, blockset_selector_, current_tile16_, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::gui::TileSelectorWidget::DrawFilterBar(), yaze::gui::EndCanvas(), yaze::gui::EndPadding(), yaze::gui::TileSelectorWidget::GetSelectedTileID(), yaze::gui::CanvasFrameOptions::grid_step, yaze::util::logf(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::CanvasFrameOptions::render_popups, RequestTileSwitch(), yaze::gui::TileSelectorWidget::SetSelectedTile(), tile16_blockset_bmp_, and yaze::gui::CanvasFrameOptions::use_child_window.
| void yaze::editor::Tile16Editor::DrawScratchSpace | ( | ) |
Definition at line 3448 of file tile16_editor.cc.
References layout_scratch_, LoadLayoutFromScratch(), SaveLayoutToScratch(), and status_.
Referenced by UpdateTile16Edit().

| absl::Status yaze::editor::Tile16Editor::SaveLayoutToScratch | ( | int | slot | ) |
Definition at line 3475 of file tile16_editor.cc.
References yaze::zelda3::ComputeTile16Count(), current_tile16_, layout_scratch_, and tile16_blockset_.
Referenced by DrawScratchSpace().

| absl::Status yaze::editor::Tile16Editor::LoadLayoutFromScratch | ( | int | slot | ) |
Definition at line 3501 of file tile16_editor.cc.
References blockset_selector_, layout_scratch_, RETURN_IF_ERROR, scroll_to_current_, selected_tiles_, selection_start_tile_, SetCurrentTile(), and yaze::gui::TileSelectorWidget::SetSelectedTile().
Referenced by DrawScratchSpace().

| absl::Status yaze::editor::Tile16Editor::DrawToCurrentTile16 | ( | ImVec2 | pos, |
| const gfx::Bitmap * | source_tile = nullptr ) |
Definition at line 674 of file tile16_editor.cc.
References active_quadrant_, ApplyPaletteToCurrentTile16Bitmap(), ASSIGN_OR_RETURN, yaze::gfx::Tilemap::atlas, BuildTile16BitmapFromData(), yaze::zelda3::BuildTile16StampMutations(), CopyTileBitmapToBlockset(), yaze::gfx::Bitmap::Create(), current_gfx_bmp_, current_gfx_individual_, current_palette_, yaze::zelda3::Tile16StampRequest::current_tile16, current_tile16_, current_tile16_bmp_, current_tile16_data_, yaze::zelda3::Tile16StampRequest::current_tile16_id, current_tile8_, yaze::gfx::Arena::Get(), HasTile16BlocksetBitmap(), yaze::gfx::Bitmap::is_active(), yaze::editor::kTile16Size, yaze::editor::kTile8Size, kTilesPerRow, last_edit_time_, live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), yaze::zelda3::Tile16StampRequest::max_tile16_id, yaze::zelda3::Tile16StampRequest::max_tile8_id, yaze::gfx::Bitmap::palette(), yaze::zelda3::Tile16StampRequest::palette_id, pending_tile16_bitmaps_, pending_tile16_changes_, preview_dirty_, yaze::zelda3::Tile16StampRequest::priority, priority_tile, yaze::zelda3::Tile16StampRequest::quadrant_index, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, SaveUndoState(), yaze::zelda3::Tile16StampRequest::selected_tile8_id, yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), yaze::zelda3::Tile16StampRequest::stamp_size, tile16_blockset_, tile16_blockset_bmp_, yaze::zelda3::Tile16StampRequest::tile16_row_stride, yaze::zelda3::Tile16StampRequest::tile8_row_stride, tile8_stamp_size_, tile8_usage_cache_dirty_, yaze::gfx::Arena::UPDATE, UpdateOverworldTilemap(), yaze::gfx::Bitmap::vector(), yaze::gfx::Bitmap::width(), x_flip, yaze::zelda3::Tile16StampRequest::x_flip, y_flip, and yaze::zelda3::Tile16StampRequest::y_flip.
Referenced by HandleTile16CanvasClick().
| absl::Status yaze::editor::Tile16Editor::HandleTile16CanvasClick | ( | const ImVec2 & | tile_position, |
| bool | left_click, | ||
| bool | right_click ) |
Definition at line 781 of file tile16_editor.cc.
References DrawToCurrentTile16(), edit_mode_, yaze::editor::kPaint, yaze::editor::kPick, yaze::editor::kUsageProbe, yaze::util::logf(), PickTile8FromTile16(), and RETURN_IF_ERROR.
Referenced by UpdateTile16Edit().

| absl::Status yaze::editor::Tile16Editor::UpdateTile16Edit | ( | ) |
Definition at line 812 of file tile16_editor.cc.
References AnalyzeTile8SourceData(), auto_normalize_pixels_, yaze::gui::BeginCanvas(), blockset_canvas_, yaze::gui::CanvasFrameOptions::canvas_size, yaze::zelda3::ComputeTile16Count(), yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_gfx_bmp_, current_gfx_individual_, current_page_, current_palette_, current_tile16_, current_tile16_bmp_, current_tile8_, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::gui::Canvas::DrawBitmap(), DrawBottomActionRail(), DrawBrushAndTilePaletteControls(), DrawEditorHeader(), DrawEditorHeaderToggles(), DrawManualTile8Inputs(), DrawPaletteSettings(), DrawPrimaryActionControls(), DrawScratchSpace(), DrawStagedStateBar(), DrawTile8SourcePanel(), DrawTile8UsageOverlay(), yaze::gui::Canvas::DrawTilePainter(), yaze::gui::Canvas::DrawTileSelector(), edit_mode_, yaze::gfx::SnesPalette::empty(), yaze::gui::EndCanvas(), yaze::gfx::Arena::Get(), GetActualPaletteSlot(), GetActualPaletteSlotForCurrentTile16(), yaze::gui::Canvas::GetGlobalScale(), GetSheetIndexForTile8(), yaze::gui::CanvasFrameOptions::grid_step, HandleTile16CanvasClick(), has_pending_changes(), HOVER_HINT, yaze::gfx::Bitmap::is_active(), is_tile_modified(), yaze::gui::Canvas::IsMouseHovering(), jump_to_tile_id_, yaze::editor::kPaint, yaze::editor::kPick, yaze::editor::kTile8DisplayScale, yaze::editor::kTile8PixelCount, kTilesPerPage, kTilesPerRow, yaze::editor::kUsageProbe, yaze::util::logf(), yaze::gfx::Bitmap::mutable_data(), overworld_palette_, yaze::gfx::Bitmap::palette(), palette_, pending_changes_count(), priority_tile, yaze::gfx::Arena::QueueTextureCommand(), RefreshTile16Blockset(), yaze::gui::CanvasFrameOptions::render_popups, RequestTileSwitch(), RETURN_IF_ERROR, scroll_to_current_, yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::SetPaletteWithTransparent(), show_palette_settings_, yaze::gui::Canvas::ShowAdvancedCanvasProperties(), yaze::gui::Canvas::ShowScalingControls(), yaze::gfx::SnesPalette::size(), yaze::gfx::Bitmap::texture(), tile16_blockset_, tile16_blockset_bmp_, tile16_edit_canvas_, tile8_preview_bmp_, tile8_source_canvas_, tile8_stamp_size_, yaze::gfx::Arena::UPDATE, yaze::gfx::Bitmap::UpdateSurfacePixels(), yaze::gui::CanvasFrameOptions::use_child_window, x_flip, y_flip, and yaze::gui::Canvas::zero_point().
Referenced by DrawTile16Editor().
| absl::Status yaze::editor::Tile16Editor::LoadTile8 | ( | ) |
Definition at line 1893 of file tile16_editor.cc.
References auto_normalize_pixels_, current_gfx_bmp_, current_gfx_individual_, yaze::gfx::Bitmap::data(), yaze::gfx::SnesPalette::empty(), HasCurrentGfxBitmap(), yaze::gfx::Bitmap::height(), yaze::editor::kTile8DisplayScale, yaze::util::logf(), palette_normalization_mask_, RefreshAllPalettes(), ResolveDisplayPalette(), RETURN_IF_ERROR, rom_, yaze::gui::Canvas::SetCanvasSize(), yaze::gfx::Bitmap::size(), tile8_source_canvas_, and yaze::gfx::Bitmap::width().
Referenced by DrawPaletteSettings(), FillTile16WithTile8(), RegenerateTile16BitmapFromROM(), and set_palette().
| absl::Status yaze::editor::Tile16Editor::SetCurrentTile | ( | int | id | ) |
Definition at line 1964 of file tile16_editor.cc.
References ApplyPaletteToCurrentTile16Bitmap(), ASSIGN_OR_RETURN, auto_normalize_pixels_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_tile16_, current_tile16_bmp_, current_tile16_data_, FinalizePendingUndo(), yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::gfx::Bitmap::is_active(), jump_to_tile_id_, yaze::zelda3::kTile16Ptr, yaze::editor::kTile16Size, yaze::util::logf(), on_current_tile_changed_, palette_normalization_mask_, pending_tile16_bitmaps_, pending_tile16_changes_, yaze::gfx::Arena::QueueTextureCommand(), yaze::Rom::ReadTile16(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, rom_, yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::surface(), and tile16_blockset_.
Referenced by DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawManualTile8Inputs(), Initialize(), LoadLayoutFromScratch(), yaze::editor::TilePaintingManager::PickTile16FromHoveredCanvas(), RequestTileSwitch(), yaze::test::RomDependentTestSuite::RunTile16EditorTest(), Update(), and UpdateAsPanel().
| void yaze::editor::Tile16Editor::RequestTileSwitch | ( | int | target_tile_id | ) |
Definition at line 2032 of file tile16_editor.cc.
References current_tile16_, is_tile_modified(), yaze::util::logf(), pending_tile_switch_target_, rom_, SetCurrentTile(), show_unsaved_changes_dialog_, and tile16_blockset_.
Referenced by yaze::editor::OverworldEditor::RequestTile16Selection(), UpdateBlockset(), and UpdateTile16Edit().

| absl::Status yaze::editor::Tile16Editor::CopyTile16ToClipboard | ( | int | tile_id | ) |
Definition at line 2069 of file tile16_editor.cc.
References ASSIGN_OR_RETURN, yaze::gfx::Tilemap::atlas, yaze::editor::Tile16ClipboardData::bitmap, clipboard_tile16_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_tile16_, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::editor::Tile16ClipboardData::has_data, yaze::gfx::Bitmap::is_active(), yaze::zelda3::kTile16Ptr, yaze::editor::kTile16Size, yaze::gfx::Bitmap::palette(), pending_tile16_bitmaps_, pending_tile16_changes_, yaze::gfx::Arena::QueueTextureCommand(), yaze::Rom::ReadTile16(), rom_, yaze::gfx::Bitmap::SetPalette(), tile16_blockset_, yaze::editor::Tile16ClipboardData::tile_data, and yaze::gfx::Bitmap::vector().
Referenced by DrawContextMenu(), DrawPrimaryActionControls(), HandleKeyboardShortcuts(), and Update().
| absl::Status yaze::editor::Tile16Editor::PasteTile16FromClipboard | ( | ) |
Definition at line 2119 of file tile16_editor.cc.
References ApplyPaletteToCurrentTile16Bitmap(), yaze::editor::Tile16ClipboardData::bitmap, clipboard_tile16_, yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Arena::Get(), yaze::editor::Tile16ClipboardData::has_data, yaze::gfx::Bitmap::is_active(), yaze::editor::kTile16Size, live_preview_enabled_, MarkCurrentTileModified(), yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), yaze::gfx::Bitmap::SetPalette(), yaze::editor::Tile16ClipboardData::tile_data, UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and yaze::gfx::Bitmap::vector().
Referenced by DrawContextMenu(), DrawPrimaryActionControls(), HandleKeyboardShortcuts(), and Update().
| absl::Status yaze::editor::Tile16Editor::SaveTile16ToScratchSpace | ( | int | slot | ) |
Definition at line 2148 of file tile16_editor.cc.
References yaze::gfx::Arena::CREATE, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), yaze::editor::kNumScratchSlots, yaze::editor::kTile16Size, yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), scratch_space_, and yaze::gfx::Bitmap::vector().
Referenced by DrawContextMenu(), and Update().
| absl::Status yaze::editor::Tile16Editor::LoadTile16FromScratchSpace | ( | int | slot | ) |
Definition at line 2169 of file tile16_editor.cc.
References ApplyPaletteToCurrentTile16Bitmap(), yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Arena::Get(), yaze::editor::kNumScratchSlots, yaze::editor::kTile16Size, live_preview_enabled_, MarkCurrentTileModified(), yaze::gfx::Arena::QueueTextureCommand(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), scratch_space_, yaze::gfx::Bitmap::SetPalette(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawContextMenu(), and Update().
| absl::Status yaze::editor::Tile16Editor::ClearScratchSpace | ( | int | slot | ) |
Definition at line 2202 of file tile16_editor.cc.
References yaze::editor::kNumScratchSlots, and scratch_space_.
Referenced by DrawContextMenu(), and Update().
| absl::Status yaze::editor::Tile16Editor::FlipTile16Horizontal | ( | ) |
Definition at line 2212 of file tile16_editor.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::zelda3::HorizontalFlipTile16(), yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawContextMenu(), and HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16Editor::FlipTile16Vertical | ( | ) |
Definition at line 2233 of file tile16_editor.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and yaze::zelda3::VerticalFlipTile16().
Referenced by DrawContextMenu(), and HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16Editor::RotateTile16 | ( | ) |
Definition at line 2254 of file tile16_editor.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, yaze::zelda3::RotateTile16Clockwise(), SaveUndoState(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawContextMenu(), and HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16Editor::FillTile16WithTile8 | ( | int | tile8_id | ) |
Definition at line 2277 of file tile16_editor.cc.
References current_gfx_individual_, current_palette_, current_tile16_data_, HasCurrentGfxBitmap(), live_preview_enabled_, LoadTile8(), MarkCurrentTileModified(), priority_tile, RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), x_flip, and y_flip.
Referenced by HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16Editor::ClearTile16 | ( | ) |
Definition at line 2312 of file tile16_editor.cc.
References current_palette_, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawContextMenu(), DrawPrimaryActionControls(), and HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16Editor::CyclePalette | ( | bool | forward = true | ) |
Definition at line 2338 of file tile16_editor.cc.
References current_palette_, yaze::util::logf(), RefreshAllPalettes(), and RETURN_IF_ERROR.
Referenced by HandleKeyboardShortcuts().

| absl::Status yaze::editor::Tile16Editor::ApplyPaletteToAll | ( | uint8_t | palette_id | ) |
Definition at line 2403 of file tile16_editor.cc.
References current_palette_, current_tile16_, GetCurrentTile16Data(), live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), yaze::zelda3::SetTile16AllQuadrantPalettes(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawBrushAndTilePaletteControls().
| absl::Status yaze::editor::Tile16Editor::ApplyPaletteToQuadrant | ( | int | quadrant, |
| uint8_t | palette_id ) |
Definition at line 2436 of file tile16_editor.cc.
References current_palette_, current_tile16_, GetCurrentTile16Data(), live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, SaveUndoState(), yaze::zelda3::SetTile16QuadrantPalette(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by DrawBrushAndTilePaletteControls().
| absl::Status yaze::editor::Tile16Editor::PreviewPaletteChange | ( | uint8_t | palette_id | ) |
Definition at line 2356 of file tile16_editor.cc.
References auto_normalize_pixels_, BitmapHasEncodedPaletteRows(), yaze::gfx::Bitmap::Create(), current_tile16_bmp_, current_tile8_, yaze::gfx::SnesPalette::empty(), yaze::gfx::Arena::Get(), GetActualPaletteSlot(), GetSheetIndexForTile8(), yaze::gfx::Bitmap::is_active(), preview_dirty_, preview_tile16_, yaze::gfx::Arena::QueueTextureCommand(), ResolveDisplayPalette(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::SetPaletteWithTransparent(), show_palette_preview_, yaze::gfx::SnesPalette::size(), yaze::gfx::Arena::UPDATE, and yaze::gfx::Bitmap::vector().
| absl::Status yaze::editor::Tile16Editor::Undo | ( | ) |
Definition at line 2537 of file tile16_editor.cc.
References FinalizePendingUndo(), yaze::editor::UndoManager::Undo(), and undo_manager_.
Referenced by DrawBottomActionRail(), and HandleKeyboardShortcuts().

| absl::Status yaze::editor::Tile16Editor::Redo | ( | ) |
Definition at line 2542 of file tile16_editor.cc.
References yaze::editor::UndoManager::Redo(), and undo_manager_.
Referenced by HandleKeyboardShortcuts().

| void yaze::editor::Tile16Editor::SaveUndoState | ( | ) |
Definition at line 2516 of file tile16_editor.cc.
References yaze::editor::Tile16Snapshot::bitmap_data, yaze::editor::Tile16Snapshot::bitmap_palette, current_palette_, current_tile16_, current_tile16_bmp_, current_tile16_data_, FinalizePendingUndo(), yaze::gfx::Bitmap::is_active(), yaze::editor::Tile16Snapshot::palette, yaze::gfx::Bitmap::palette(), pending_undo_before_, yaze::editor::Tile16Snapshot::priority, priority_tile, yaze::editor::Tile16Snapshot::tile_data, yaze::editor::Tile16Snapshot::tile_id, yaze::gfx::Bitmap::vector(), x_flip, yaze::editor::Tile16Snapshot::x_flip, y_flip, and yaze::editor::Tile16Snapshot::y_flip.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawToCurrentTile16(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), and RotateTile16().

|
inline |
Definition at line 208 of file tile16_editor.h.
References live_preview_enabled_.
Referenced by DrawContextMenu(), and Update().
| absl::Status yaze::editor::Tile16Editor::UpdateLivePreview | ( | ) |
Definition at line 3654 of file tile16_editor.cc.
References auto_normalize_pixels_, BitmapHasEncodedPaletteRows(), yaze::gfx::Bitmap::Create(), current_palette_, current_tile16_bmp_, current_tile8_, yaze::gfx::SnesPalette::empty(), yaze::gfx::Arena::Get(), GetActualPaletteSlot(), GetSheetIndexForTile8(), yaze::gfx::Bitmap::is_active(), live_preview_enabled_, preview_dirty_, preview_tile16_, yaze::gfx::Arena::QueueTextureCommand(), ResolveDisplayPalette(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::SetPaletteWithTransparent(), yaze::gfx::SnesPalette::size(), yaze::gfx::Arena::UPDATE, and yaze::gfx::Bitmap::vector().
Referenced by Update(), and UpdateAsPanel().
| absl::Status yaze::editor::Tile16Editor::ValidateTile16Data | ( | ) |
Definition at line 2546 of file tile16_editor.cc.
References current_palette_, and tile16_blockset_.
| bool yaze::editor::Tile16Editor::IsTile16Valid | ( | int | tile_id | ) | const |
Definition at line 2562 of file tile16_editor.cc.
References tile16_blockset_.
| absl::Status yaze::editor::Tile16Editor::SaveTile16ToROM | ( | ) |
Write current tile16 data directly to ROM (bypasses pending system)
Definition at line 2567 of file tile16_editor.cc.
References CommitChangesToBlockset(), current_tile16_, current_tile16_bmp_, has_rom_write_history_, yaze::gfx::Bitmap::is_active(), last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), pending_tile16_bitmaps_, pending_tile16_changes_, RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), tile8_usage_cache_dirty_, UpdateOverworldTilemap(), and UpdateROMTile16Data().
| absl::Status yaze::editor::Tile16Editor::UpdateOverworldTilemap | ( | ) |
Update the overworld tilemap to reflect tile changes.
Definition at line 2599 of file tile16_editor.cc.
References CopyTile16ToAtlas(), current_tile16_, and tile16_blockset_.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawManualTile8Inputs(), DrawToCurrentTile16(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), RotateTile16(), and SaveTile16ToROM().

| absl::Status yaze::editor::Tile16Editor::CommitChangesToBlockset | ( | ) |
Commit pending changes to the blockset atlas.
Definition at line 2614 of file tile16_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::modified(), yaze::gfx::Arena::QueueTextureCommand(), tile16_blockset_, and yaze::gfx::Arena::UPDATE.
Referenced by DrawContextMenu(), HandleKeyboardShortcuts(), SaveTile16ToROM(), and Update().

| absl::Status yaze::editor::Tile16Editor::CommitChangesToOverworld | ( | ) |
Single-tile commit: ROM + blockset + parent refresh callback. Prefer CommitAllChanges() from the main UI; kept for integration tests.
Definition at line 2634 of file tile16_editor.cc.
References CopyTile16ToAtlas(), current_tile16_, has_rom_write_history_, last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), on_changes_committed_, pending_tile16_bitmaps_, pending_tile16_changes_, RETURN_IF_ERROR, tile8_usage_cache_dirty_, UpdateBlocksetBitmap(), and UpdateROMTile16Data().

| absl::Status yaze::editor::Tile16Editor::DiscardChanges | ( | ) |
Discard current tile's changes (single tile)
Definition at line 2662 of file tile16_editor.cc.
References current_tile16_, yaze::util::logf(), pending_tile16_bitmaps_, pending_tile16_changes_, RETURN_IF_ERROR, SetCurrentTile(), and tile8_usage_cache_dirty_.

|
inline |
Check if any tiles have uncommitted changes.
Definition at line 252 of file tile16_editor.h.
References pending_tile16_changes_.
Referenced by yaze::editor::OverworldEditor::Update(), yaze::editor::MapRefreshCoordinator::UpdateBlocksetWithPendingTileChanges(), and UpdateTile16Edit().
|
inline |
Get count of tiles with pending changes.
Definition at line 255 of file tile16_editor.h.
References pending_tile16_changes_.
Referenced by UpdateTile16Edit().
|
inline |
Check if a specific tile has pending changes.
Definition at line 260 of file tile16_editor.h.
References pending_tile16_changes_.
Referenced by yaze::editor::OverworldEditor::RequestTile16Selection(), RequestTileSwitch(), yaze::editor::MapRefreshCoordinator::UpdateBlocksetWithPendingTileChanges(), and UpdateTile16Edit().
|
inline |
Get preview bitmap for a pending tile (nullptr if not modified)
Definition at line 266 of file tile16_editor.h.
References pending_tile16_bitmaps_.
Referenced by yaze::editor::MapRefreshCoordinator::UpdateBlocksetWithPendingTileChanges().
| absl::Status yaze::editor::Tile16Editor::CommitAllChanges | ( | ) |
Write all pending changes to ROM and notify parent.
Definition at line 2676 of file tile16_editor.cc.
References has_rom_write_history_, yaze::zelda3::kTile16Ptr, last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), on_changes_committed_, pending_tile16_bitmaps_, pending_tile16_changes_, RefreshTile16Blockset(), RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), tile8_usage_cache_dirty_, and yaze::Rom::WriteTile16().
Referenced by DrawBottomActionRail(), DrawContextMenu(), DrawManualTile8Inputs(), HandleKeyboardShortcuts(), Update(), and UpdateAsPanel().

| void yaze::editor::Tile16Editor::DiscardAllChanges | ( | ) |
Discard all pending changes (revert to ROM state)
Definition at line 2716 of file tile16_editor.cc.
References current_tile16_, yaze::util::logf(), pending_tile16_bitmaps_, pending_tile16_changes_, SetCurrentTile(), and tile8_usage_cache_dirty_.
Referenced by DrawBottomActionRail().

| void yaze::editor::Tile16Editor::DiscardCurrentTileChanges | ( | ) |
Discard only the current tile's pending changes.
Definition at line 2736 of file tile16_editor.cc.
References current_tile16_, yaze::util::logf(), pending_tile16_bitmaps_, pending_tile16_changes_, SetCurrentTile(), and tile8_usage_cache_dirty_.
Referenced by DrawBottomActionRail().

| void yaze::editor::Tile16Editor::MarkCurrentTileModified | ( | ) |
Mark the current tile as having pending changes.
Definition at line 2753 of file tile16_editor.cc.
References current_tile16_, current_tile16_bmp_, current_tile16_data_, yaze::util::logf(), pending_tile16_bitmaps_, pending_tile16_changes_, preview_dirty_, and tile8_usage_cache_dirty_.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawManualTile8Inputs(), DrawToCurrentTile16(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), and RotateTile16().

| absl::Status yaze::editor::Tile16Editor::UpdateTile8Palette | ( | int | tile8_id | ) |
Update palette for a specific tile8.
Definition at line 3094 of file tile16_editor.cc.
References current_gfx_individual_, current_palette_, yaze::gfx::SnesPalette::empty(), GetActualPaletteSlot(), GetSheetIndexForTile8(), yaze::util::logf(), ResolveDisplayPalette(), rom_, and yaze::gfx::SnesPalette::size().
Referenced by HandleTile8SourceSelection(), and PickTile8FromTile16().
| absl::Status yaze::editor::Tile16Editor::RefreshAllPalettes | ( | ) |
Refresh all tile8 palettes after a palette change.
Definition at line 3125 of file tile16_editor.cc.
References auto_normalize_pixels_, CreateRemappedPaletteForViewing(), current_gfx_bmp_, current_gfx_individual_, current_palette_, current_tile16_bmp_, yaze::gfx::SnesPalette::empty(), yaze::gfx::Arena::Get(), HasCurrentGfxBitmap(), yaze::gfx::Bitmap::is_active(), yaze::util::logf(), yaze::gfx::Arena::QueueTextureCommand(), RegenerateTile16BitmapFromROM(), ResolveDisplayPalette(), rom_, yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), and yaze::gfx::Arena::UPDATE.
Referenced by CyclePalette(), DrawBrushAndTilePaletteControls(), HandleKeyboardShortcuts(), LoadTile8(), and PickTile8FromTile16().
| void yaze::editor::Tile16Editor::DrawPaletteSettings | ( | ) |
Draw palette settings UI.
Definition at line 3292 of file tile16_editor.cc.
References yaze::gui::Canvas::ApplyROMPalette(), auto_normalize_pixels_, current_gfx_bmp_, current_gfx_individual_, current_palette_, current_palette_group_, current_tile8_, yaze::gfx::SnesPalette::empty(), HOVER_HINT, LoadTile8(), yaze::util::logf(), yaze::gfx::Bitmap::palette(), palette_, palette_normalization_mask_, ResolveDisplayPalette(), rom_, show_palette_settings_, yaze::gui::Canvas::ShowColorAnalysis(), yaze::gui::Canvas::ShowPaletteEditor(), yaze::gfx::SnesPalette::size(), tile16_edit_canvas_, and tile8_source_canvas_.
Referenced by Update(), UpdateAsPanel(), and UpdateTile16Edit().
| int yaze::editor::Tile16Editor::GetPaletteSlotForSheet | ( | int | sheet_index | ) | const |
Get base palette slot for a graphics sheet.
| sheet_index | Graphics sheet index (0-7) |
Definition at line 2874 of file tile16_editor.cc.
References current_palette_.
| int yaze::editor::Tile16Editor::GetActualPaletteSlot | ( | int | palette_button, |
| int | sheet_index ) const |
Calculate actual palette slot from button + sheet.
| palette_button | User-selected palette (0-7) |
| sheet_index | Graphics sheet the tile8 belongs to |
This is the core palette mapping function. It combines:
Definition at line 2908 of file tile16_editor.cc.
References GetPaletteBaseForSheet().
Referenced by AnalyzeTile8SourceData(), DrawBrushAndTilePaletteControls(), GetActualPaletteSlotForCurrentTile16(), PreviewPaletteChange(), UpdateLivePreview(), UpdateTile16Edit(), and UpdateTile8Palette().

| int yaze::editor::Tile16Editor::GetPaletteBaseForSheet | ( | int | sheet_index | ) | const |
Get palette base row for a graphics sheet.
| sheet_index | Graphics sheet index (0-7) |
Definition at line 2945 of file tile16_editor.cc.
Referenced by CreateRemappedPaletteForViewing(), and GetActualPaletteSlot().
| int yaze::editor::Tile16Editor::GetSheetIndexForTile8 | ( | int | tile8_id | ) | const |
Determine which graphics sheet contains a tile8.
| tile8_id | Tile8 ID from the graphics buffer |
Definition at line 2919 of file tile16_editor.cc.
Referenced by CreateRemappedPaletteForViewing(), GetActualPaletteSlotForCurrentTile16(), PreviewPaletteChange(), UpdateLivePreview(), UpdateTile16Edit(), and UpdateTile8Palette().
| int yaze::editor::Tile16Editor::GetActualPaletteSlotForCurrentTile16 | ( | ) | const |
Get the palette slot for the current tile being edited.
Definition at line 2931 of file tile16_editor.cc.
References current_gfx_individual_, current_palette_, current_tile8_, GetActualPaletteSlot(), and GetSheetIndexForTile8().
Referenced by ApplyPaletteToCurrentTile16Bitmap(), DrawBrushAndTilePaletteControls(), DrawEditorHeader(), and UpdateTile16Edit().

| gfx::SnesPalette yaze::editor::Tile16Editor::CreateRemappedPaletteForViewing | ( | const gfx::SnesPalette & | source, |
| int | target_row ) const |
Create a remapped palette for viewing with user-selected palette.
| source | Full 256-color palette |
| target_row | User-selected palette row (0-7 maps to the sheet base) |
Definition at line 2975 of file tile16_editor.cc.
References yaze::gfx::SnesPalette::AddColor(), current_gfx_individual_, current_tile8_, GetPaletteBaseForSheet(), GetSheetIndexForTile8(), and yaze::gfx::SnesPalette::size().
Referenced by RefreshAllPalettes().

| int yaze::editor::Tile16Editor::GetEncodedPaletteRow | ( | uint8_t | pixel_value | ) | const |
Get the encoded palette row for a pixel value.
| pixel_value | Raw pixel value from the graphics buffer |
Definition at line 3018 of file tile16_editor.cc.
Referenced by AnalyzeTile8SourceData().
| absl::Status yaze::editor::Tile16Editor::UpdateROMTile16Data | ( | ) |
Definition at line 554 of file tile16_editor.cc.
References current_tile16_, GetCurrentTile16Data(), yaze::zelda3::kTile16Ptr, yaze::util::logf(), RETURN_IF_ERROR, rom_, and yaze::Rom::WriteTile16().
Referenced by CommitChangesToOverworld(), and SaveTile16ToROM().

| absl::Status yaze::editor::Tile16Editor::RefreshTile16Blockset | ( | ) |
Definition at line 568 of file tile16_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::gfx::Arena::Get(), yaze::util::logf(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Bitmap::set_modified(), tile16_blockset_, and yaze::gfx::Arena::UPDATE.
Referenced by CommitAllChanges(), and UpdateTile16Edit().

| gfx::Tile16 * yaze::editor::Tile16Editor::GetCurrentTile16Data | ( | ) |
Definition at line 547 of file tile16_editor.cc.
References current_tile16_data_, and rom_.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), DrawBrushAndTilePaletteControls(), DrawEditorHeader(), DrawManualTile8Inputs(), PickTile8FromTile16(), RegenerateTile16BitmapFromROM(), and UpdateROMTile16Data().
| absl::Status yaze::editor::Tile16Editor::RegenerateTile16BitmapFromROM | ( | ) |
Definition at line 642 of file tile16_editor.cc.
References ApplyPaletteToCurrentTile16Bitmap(), BuildTile16BitmapFromData(), yaze::gfx::Arena::CREATE, current_gfx_individual_, current_tile16_, current_tile16_bmp_, yaze::gfx::Arena::Get(), GetCurrentTile16Data(), HasCurrentGfxBitmap(), LoadTile8(), yaze::util::logf(), yaze::gfx::Arena::QueueTextureCommand(), and RETURN_IF_ERROR.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawManualTile8Inputs(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), RefreshAllPalettes(), RotateTile16(), and SetCurrentTile().
| absl::Status yaze::editor::Tile16Editor::UpdateBlocksetBitmap | ( | ) |
Definition at line 613 of file tile16_editor.cc.
References yaze::gfx::Tilemap::atlas, CopyTileBitmapToBlockset(), current_tile16_, current_tile16_bmp_, yaze::gfx::Arena::Get(), HasTile16BlocksetBitmap(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Arena::QueueTextureCommand(), tile16_blockset_, tile16_blockset_bmp_, and yaze::gfx::Arena::UPDATE.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), CommitChangesToOverworld(), DrawManualTile8Inputs(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), and RotateTile16().
| absl::Status yaze::editor::Tile16Editor::PickTile8FromTile16 | ( | const ImVec2 & | position | ) |
Definition at line 2834 of file tile16_editor.cc.
References active_quadrant_, current_palette_, current_tile16_, current_tile8_, GetCurrentTile16Data(), yaze::gfx::TileInfo::horizontal_mirror_, yaze::gfx::TileInfo::id_, yaze::util::logf(), yaze::gfx::TileInfo::over_, yaze::gfx::TileInfo::palette_, priority_tile, RefreshAllPalettes(), RETURN_IF_ERROR, rom_, UpdateTile8Palette(), yaze::gfx::TileInfo::vertical_mirror_, x_flip, and y_flip.
Referenced by HandleTile16CanvasClick().

| void yaze::editor::Tile16Editor::DrawManualTile8Inputs | ( | ) |
Definition at line 3534 of file tile16_editor.cc.
References CommitAllChanges(), current_tile16_, GetCurrentTile16Data(), yaze::gfx::TileInfo::horizontal_mirror_, yaze::gfx::TileInfo::id_, live_preview_enabled_, MarkCurrentTileModified(), yaze::gfx::TileInfo::over_, yaze::gfx::TileInfo::palette_, RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, rom_, SetCurrentTile(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and yaze::gfx::TileInfo::vertical_mirror_.
Referenced by UpdateTile16Edit().
|
inline |
Definition at line 362 of file tile16_editor.h.
Referenced by yaze::editor::OverworldEditor::Load().

|
inline |
|
inline |
Definition at line 364 of file tile16_editor.h.
References game_data(), and game_data_.
Referenced by yaze::editor::OverworldEditor::SetGameData().

|
inline |
Definition at line 365 of file tile16_editor.h.
References game_data_.
Referenced by ResolveDisplayPalette(), and SetGameData().
|
inline |
Definition at line 368 of file tile16_editor.h.
References current_gfx_bmp_, yaze::gfx::Bitmap::is_active(), LoadTile8(), yaze::util::logf(), overworld_palette_, palette_, rom_, and yaze::gfx::SnesPalette::size().
Referenced by yaze::editor::OverworldEditor::Load(), yaze::editor::MapRefreshCoordinator::RefreshMapPalette(), and yaze::editor::MapRefreshCoordinator::RefreshTile16Blockset().

|
inline |
Definition at line 400 of file tile16_editor.h.
References on_changes_committed_.
Referenced by yaze::editor::OverworldEditor::Load().
|
inline |
Optional: invoked after every successful SetCurrentTile (keeps overworld paint selection aligned with the Tile16 editor, including dialog paths).
Definition at line 406 of file tile16_editor.h.
References on_current_tile_changed_.
Referenced by yaze::editor::OverworldEditor::Load().
|
inline |
Definition at line 411 of file tile16_editor.h.
References current_palette_.
|
inline |
Definition at line 412 of file tile16_editor.h.
References current_palette_.
|
inline |
Definition at line 415 of file tile16_editor.h.
References current_tile16_.
Referenced by yaze::editor::OverworldEditor::RequestTile16Selection().
|
inline |
Definition at line 416 of file tile16_editor.h.
References current_tile8_.
|
inline |
Definition at line 417 of file tile16_editor.h.
References active_quadrant_.
|
inline |
Definition at line 418 of file tile16_editor.h.
References active_quadrant_.
|
inline |
Definition at line 421 of file tile16_editor.h.
References edit_mode_.
|
inline |
Definition at line 422 of file tile16_editor.h.
References edit_mode_.
| void yaze::editor::Tile16Editor::AnalyzeTile8SourceData | ( | ) | const |
Definition at line 3186 of file tile16_editor.cc.
References current_gfx_bmp_, current_gfx_individual_, current_palette_, yaze::gfx::Bitmap::data(), yaze::gfx::Bitmap::depth(), GetActualPaletteSlot(), GetEncodedPaletteRow(), HasCurrentGfxBitmap(), yaze::gfx::Bitmap::height(), yaze::util::logf(), overworld_palette_, yaze::gfx::Bitmap::palette(), palette_, yaze::gfx::Bitmap::size(), yaze::gfx::SnesPalette::size(), and yaze::gfx::Bitmap::width().
Referenced by UpdateTile16Edit().
|
private |
Finalize any pending undo snapshot by capturing current state as "after" and pushing a Tile16EditAction to undo_manager_.
Definition at line 2486 of file tile16_editor.cc.
References yaze::editor::Tile16Snapshot::bitmap_data, yaze::editor::Tile16Snapshot::bitmap_palette, current_palette_, current_tile16_, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), yaze::editor::Tile16Snapshot::palette, yaze::gfx::Bitmap::palette(), pending_undo_before_, yaze::editor::Tile16Snapshot::priority, priority_tile, yaze::editor::UndoManager::Push(), RestoreFromSnapshot(), yaze::editor::Tile16Snapshot::tile_data, yaze::editor::Tile16Snapshot::tile_id, undo_manager_, yaze::gfx::Bitmap::vector(), x_flip, yaze::editor::Tile16Snapshot::x_flip, y_flip, and yaze::editor::Tile16Snapshot::y_flip.
Referenced by SaveUndoState(), SetCurrentTile(), and Undo().
|
private |
Restore editor state from a Tile16Snapshot (used by undo actions).
Definition at line 2470 of file tile16_editor.cc.
References yaze::editor::Tile16Snapshot::bitmap_data, yaze::editor::Tile16Snapshot::bitmap_palette, yaze::gfx::Bitmap::Create(), current_palette_, current_tile16_, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Arena::Get(), yaze::editor::Tile16Snapshot::palette, pending_tile16_bitmaps_, pending_tile16_changes_, yaze::editor::Tile16Snapshot::priority, priority_tile, yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Bitmap::SetPalette(), yaze::editor::Tile16Snapshot::tile_data, yaze::editor::Tile16Snapshot::tile_id, yaze::gfx::Arena::UPDATE, x_flip, yaze::editor::Tile16Snapshot::x_flip, y_flip, and yaze::editor::Tile16Snapshot::y_flip.
Referenced by FinalizePendingUndo().

|
private |
Definition at line 3058 of file tile16_editor.cc.
References auto_normalize_pixels_, BitmapHasEncodedPaletteRows(), current_tile16_bmp_, yaze::gfx::SnesPalette::empty(), yaze::gfx::Arena::Get(), GetActualPaletteSlotForCurrentTile16(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Arena::QueueTextureCommand(), ResolveDisplayPalette(), yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::Bitmap::SetPaletteWithTransparent(), yaze::gfx::SnesPalette::size(), and yaze::gfx::Arena::UPDATE.
Referenced by DrawToCurrentTile16(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), RegenerateTile16BitmapFromROM(), and SetCurrentTile().
|
private |
Definition at line 3031 of file tile16_editor.cc.
References game_data(), yaze::gfx::PaletteGroupMap::overworld_main, overworld_palette_, palette_, yaze::zelda3::GameData::palette_groups, yaze::gfx::PaletteGroup::palette_ref(), and yaze::gfx::SnesPalette::size().
Referenced by ApplyPaletteToCurrentTile16Bitmap(), DrawPaletteSettings(), LoadTile8(), PreviewPaletteChange(), RefreshAllPalettes(), UpdateLivePreview(), and UpdateTile8Palette().

|
private |
Definition at line 3044 of file tile16_editor.cc.
References yaze::gfx::Bitmap::data(), yaze::gfx::Bitmap::is_active(), and yaze::gfx::Bitmap::size().
Referenced by ApplyPaletteToCurrentTile16Bitmap(), PreviewPaletteChange(), and UpdateLivePreview().

|
private |
Definition at line 587 of file tile16_editor.cc.
References current_gfx_individual_, and yaze::zelda3::RenderTile16BitmapFromMetadata().
Referenced by DrawToCurrentTile16(), and RegenerateTile16BitmapFromROM().

|
private |
Definition at line 593 of file tile16_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::zelda3::BlitTile16BitmapToAtlas(), HasTile16BlocksetBitmap(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Bitmap::set_modified(), tile16_blockset_, and tile16_blockset_bmp_.
Referenced by DrawToCurrentTile16(), and UpdateBlocksetBitmap().

|
private |
Definition at line 2768 of file tile16_editor.cc.
References yaze::zelda3::BuildTile8UsageIndex(), yaze::zelda3::ComputeTile16Count(), yaze::zelda3::kTile16Ptr, pending_tile16_changes_, yaze::Rom::ReadTile16(), RETURN_IF_ERROR, rom_, tile16_blockset_, tile8_usage_cache_, and tile8_usage_cache_dirty_.
Referenced by DrawTile8UsageOverlay().

|
private |
Definition at line 2789 of file tile16_editor.cc.
References blockset_canvas_, current_tile8_, yaze::gui::Canvas::GetGlobalScale(), highlight_tile8_usage_, yaze::zelda3::kMaxTile8UsageId, yaze::editor::kTile16Size, yaze::util::logf(), RebuildTile8UsageCache(), tile16_blockset_bmp_, tile8_usage_cache_, tile8_usage_cache_dirty_, yaze::gfx::Bitmap::width(), and yaze::gui::Canvas::zero_point().
Referenced by UpdateTile16Edit().
|
private |
Definition at line 3710 of file tile16_editor.cc.
References active_quadrant_, ClearTile16(), CommitAllChanges(), CommitChangesToBlockset(), CopyTile16ToClipboard(), current_gfx_individual_, current_palette_, current_tile16_, current_tile8_, CyclePalette(), edit_mode_, FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), yaze::editor::kPaint, yaze::editor::kPick, yaze::editor::kUsageProbe, yaze::editor::Tile16NumericShortcutResult::palette_id, PasteTile16FromClipboard(), yaze::editor::Tile16NumericShortcutResult::quadrant_focus, Redo(), RefreshAllPalettes(), yaze::editor::ResolveTile16NumericShortcut(), RotateTile16(), status_, and Undo().
Referenced by Update(), and UpdateAsPanel().
|
inlineprivate |
Definition at line 591 of file tile16_editor.h.
References current_gfx_bmp_, and yaze::gfx::Bitmap::is_active().
Referenced by AnalyzeTile8SourceData(), FillTile16WithTile8(), LoadTile8(), RefreshAllPalettes(), and RegenerateTile16BitmapFromROM().

|
inlineprivate |
Definition at line 595 of file tile16_editor.h.
References yaze::gfx::Bitmap::is_active(), and tile16_blockset_bmp_.
Referenced by CopyTileBitmapToBlockset(), DrawToCurrentTile16(), and UpdateBlocksetBitmap().

|
private |
Definition at line 3806 of file tile16_editor.cc.
References yaze::gfx::Tilemap::atlas, yaze::zelda3::BlitTile16BitmapToAtlas(), current_tile16_bmp_, yaze::gfx::Arena::Get(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Arena::QueueTextureCommand(), yaze::gfx::Bitmap::set_modified(), tile16_blockset_, and yaze::gfx::Arena::UPDATE.
Referenced by CommitChangesToOverworld(), and UpdateOverworldTilemap().
|
private |
Definition at line 1422 of file tile16_editor.cc.
References active_quadrant_, current_palette_, current_tile16_, edit_mode_, GetActualPaletteSlotForCurrentTile16(), GetCurrentTile16Data(), and highlight_tile8_usage_.
Referenced by UpdateTile16Edit().

|
private |
Definition at line 1488 of file tile16_editor.cc.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 1500 of file tile16_editor.cc.
References current_tile16_, has_rom_write_history_, last_rom_write_count_, and last_rom_write_time_.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 1540 of file tile16_editor.cc.
References active_quadrant_, ApplyPaletteToAll(), ApplyPaletteToQuadrant(), current_palette_, GetActualPaletteSlot(), GetActualPaletteSlotForCurrentTile16(), GetCurrentTile16Data(), yaze::gfx::TileInfo::horizontal_mirror_, HOVER_HINT, yaze::gfx::TileInfo::id_, yaze::util::logf(), yaze::gfx::TileInfo::over_, yaze::gfx::TileInfo::palette_, RefreshAllPalettes(), RETURN_IF_ERROR, and yaze::gfx::TileInfo::vertical_mirror_.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 1737 of file tile16_editor.cc.
References yaze::gui::BeginCanvas(), yaze::editor::ComputeTile8UsageHighlight(), current_gfx_bmp_, yaze::gui::CanvasFrameOptions::draw_context_menu, yaze::gui::CanvasFrameOptions::draw_grid, yaze::gui::CanvasFrameOptions::draw_overlay, yaze::gui::Canvas::DrawBitmap(), yaze::gui::Canvas::DrawTileSelector(), edit_mode_, yaze::gui::EndCanvas(), yaze::gui::CanvasFrameOptions::grid_step, HandleTile8SourceSelection(), highlight_tile8_usage_, yaze::editor::kTile8DisplayScale, yaze::editor::kUsageProbe, yaze::gui::CanvasFrameOptions::render_popups, RETURN_IF_ERROR, yaze::gui::Canvas::set_draggable(), tile8_source_canvas_, and yaze::gui::CanvasFrameOptions::use_child_window.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 1781 of file tile16_editor.cc.
References yaze::editor::ComputeTile8IndexFromCanvasMouse(), current_gfx_bmp_, current_gfx_individual_, current_tile8_, yaze::editor::kTile8DisplayScale, yaze::util::logf(), RETURN_IF_ERROR, tile8_source_canvas_, tile8_usage_cache_dirty_, UpdateTile8Palette(), yaze::gfx::Bitmap::width(), and yaze::gui::Canvas::zero_point().
Referenced by DrawTile8SourcePanel().
|
private |
Definition at line 1804 of file tile16_editor.cc.
References ClearTile16(), CopyTile16ToClipboard(), current_tile16_, PasteTile16FromClipboard(), and RETURN_IF_ERROR.
Referenced by UpdateTile16Edit().

|
private |
Definition at line 1821 of file tile16_editor.cc.
References yaze::editor::Tile16ActionControlState::can_discard_current, yaze::editor::Tile16ActionControlState::can_undo, yaze::editor::Tile16ActionControlState::can_write_pending, yaze::editor::UndoManager::CanUndo(), CommitAllChanges(), yaze::editor::ComputeTile16ActionControlState(), yaze::gui::DangerButton(), DiscardAllChanges(), DiscardCurrentTileChanges(), edit_mode_, RETURN_IF_ERROR, yaze::gui::SuccessButton(), Undo(), and undo_manager_.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 428 of file tile16_editor.h.
Referenced by CommitAllChanges(), CopyTile16ToClipboard(), DrawManualTile8Inputs(), DrawPaletteSettings(), GetCurrentTile16Data(), Initialize(), LoadTile8(), PickTile8FromTile16(), RebuildTile8UsageCache(), RefreshAllPalettes(), RequestTileSwitch(), rom(), SaveTile16ToROM(), set_palette(), SetCurrentTile(), SetRom(), UpdateROMTile16Data(), and UpdateTile8Palette().
|
private |
Definition at line 429 of file tile16_editor.h.
Referenced by game_data(), and SetGameData().
|
private |
Definition at line 430 of file tile16_editor.h.
Referenced by Initialize(), Update(), and UpdateAsPanel().
|
private |
Definition at line 431 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), FillTile16WithTile8(), FinalizePendingUndo(), Initialize(), PickTile8FromTile16(), RestoreFromSnapshot(), SaveUndoState(), and UpdateTile16Edit().
|
private |
Definition at line 432 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), FillTile16WithTile8(), FinalizePendingUndo(), Initialize(), PickTile8FromTile16(), RestoreFromSnapshot(), SaveUndoState(), and UpdateTile16Edit().
|
private |
Definition at line 433 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), FillTile16WithTile8(), FinalizePendingUndo(), Initialize(), PickTile8FromTile16(), RestoreFromSnapshot(), SaveUndoState(), and UpdateTile16Edit().
|
private |
Definition at line 435 of file tile16_editor.h.
|
private |
Definition at line 436 of file tile16_editor.h.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), CommitChangesToOverworld(), CopyTile16ToClipboard(), current_tile16(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawContextMenu(), DrawEditorHeader(), DrawManualTile8Inputs(), DrawPrimaryActionControls(), DrawStagedStateBar(), DrawToCurrentTile16(), FinalizePendingUndo(), HandleKeyboardShortcuts(), Initialize(), MarkCurrentTileModified(), PickTile8FromTile16(), RegenerateTile16BitmapFromROM(), RequestTileSwitch(), RestoreFromSnapshot(), SaveLayoutToScratch(), SaveTile16ToROM(), SaveUndoState(), SetCurrentTile(), Update(), UpdateAsPanel(), UpdateBlockset(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), UpdateROMTile16Data(), and UpdateTile16Edit().
|
private |
Definition at line 437 of file tile16_editor.h.
Referenced by CreateRemappedPaletteForViewing(), current_tile8(), DrawPaletteSettings(), DrawTile8UsageOverlay(), DrawToCurrentTile16(), GetActualPaletteSlotForCurrentTile16(), HandleKeyboardShortcuts(), HandleTile8SourceSelection(), Initialize(), PickTile8FromTile16(), PreviewPaletteChange(), UpdateLivePreview(), and UpdateTile16Edit().
|
private |
Definition at line 438 of file tile16_editor.h.
Referenced by AnalyzeTile8SourceData(), ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), current_palette(), CyclePalette(), DrawBrushAndTilePaletteControls(), DrawEditorHeader(), DrawPaletteSettings(), DrawToCurrentTile16(), FillTile16WithTile8(), FinalizePendingUndo(), GetActualPaletteSlotForCurrentTile16(), GetPaletteSlotForSheet(), HandleKeyboardShortcuts(), PickTile8FromTile16(), RefreshAllPalettes(), RestoreFromSnapshot(), SaveUndoState(), set_current_palette(), UpdateLivePreview(), UpdateTile16Edit(), UpdateTile8Palette(), and ValidateTile16Data().
|
private |
Definition at line 439 of file tile16_editor.h.
Referenced by active_quadrant(), DrawBrushAndTilePaletteControls(), DrawEditorHeader(), DrawToCurrentTile16(), HandleKeyboardShortcuts(), PickTile8FromTile16(), and set_active_quadrant().
|
private |
Definition at line 440 of file tile16_editor.h.
Referenced by DrawBottomActionRail(), DrawEditorHeader(), DrawTile8SourcePanel(), edit_mode(), HandleKeyboardShortcuts(), HandleTile16CanvasClick(), set_edit_mode(), and UpdateTile16Edit().
|
private |
Definition at line 443 of file tile16_editor.h.
Referenced by CopyTile16ToClipboard(), and PasteTile16FromClipboard().
|
private |
Definition at line 446 of file tile16_editor.h.
Referenced by ClearScratchSpace(), DrawContextMenu(), LoadTile16FromScratchSpace(), SaveTile16ToScratchSpace(), and Update().
|
private |
Definition at line 454 of file tile16_editor.h.
Referenced by DrawScratchSpace(), LoadLayoutFromScratch(), and SaveLayoutToScratch().
|
private |
Definition at line 457 of file tile16_editor.h.
Referenced by DrawBottomActionRail(), FinalizePendingUndo(), Redo(), and Undo().
|
private |
Definition at line 458 of file tile16_editor.h.
Referenced by FinalizePendingUndo(), and SaveUndoState().
|
private |
Definition at line 468 of file tile16_editor.h.
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawContextMenu(), DrawManualTile8Inputs(), DrawToCurrentTile16(), EnableLivePreview(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), RotateTile16(), Update(), and UpdateLivePreview().
|
private |
Definition at line 469 of file tile16_editor.h.
Referenced by PreviewPaletteChange(), and UpdateLivePreview().
|
private |
Definition at line 470 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), MarkCurrentTileModified(), PreviewPaletteChange(), and UpdateLivePreview().
|
private |
Definition at line 472 of file tile16_editor.h.
Referenced by UpdateTile16Edit().
|
private |
Definition at line 475 of file tile16_editor.h.
Referenced by LoadLayoutFromScratch().
|
private |
Definition at line 476 of file tile16_editor.h.
Referenced by LoadLayoutFromScratch().
|
private |
Definition at line 477 of file tile16_editor.h.
|
private |
Definition at line 480 of file tile16_editor.h.
|
private |
Definition at line 481 of file tile16_editor.h.
|
private |
Definition at line 482 of file tile16_editor.h.
|
private |
Definition at line 483 of file tile16_editor.h.
Referenced by PreviewPaletteChange().
|
private |
Definition at line 484 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), and UpdateTile16Edit().
|
private |
Definition at line 485 of file tile16_editor.h.
Referenced by DrawEditorHeader(), DrawTile8SourcePanel(), and DrawTile8UsageOverlay().
|
private |
Definition at line 487 of file tile16_editor.h.
Referenced by DrawTile8UsageOverlay(), and RebuildTile8UsageCache().
|
private |
Definition at line 488 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawTile8UsageOverlay(), DrawToCurrentTile16(), HandleTile8SourceSelection(), MarkCurrentTileModified(), RebuildTile8UsageCache(), and SaveTile16ToROM().
|
private |
Definition at line 491 of file tile16_editor.h.
Referenced by DrawPaletteSettings(), and UpdateTile16Edit().
|
private |
Definition at line 492 of file tile16_editor.h.
Referenced by DrawPaletteSettings().
|
private |
Definition at line 493 of file tile16_editor.h.
Referenced by DrawPaletteSettings(), LoadTile8(), and SetCurrentTile().
|
private |
Definition at line 495 of file tile16_editor.h.
Referenced by ApplyPaletteToCurrentTile16Bitmap(), DrawPaletteSettings(), LoadTile8(), PreviewPaletteChange(), RefreshAllPalettes(), SetCurrentTile(), UpdateLivePreview(), and UpdateTile16Edit().
|
private |
Definition at line 499 of file tile16_editor.h.
Referenced by DrawToCurrentTile16().
|
private |
Definition at line 500 of file tile16_editor.h.
|
private |
Definition at line 503 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), CopyTile16ToClipboard(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16(), has_pending_changes(), is_tile_modified(), MarkCurrentTileModified(), pending_changes_count(), RebuildTile8UsageCache(), RestoreFromSnapshot(), SaveTile16ToROM(), SetCurrentTile(), Update(), and UpdateAsPanel().
|
private |
Definition at line 504 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), CopyTile16ToClipboard(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16(), GetPendingTileBitmap(), MarkCurrentTileModified(), RestoreFromSnapshot(), SaveTile16ToROM(), SetCurrentTile(), Update(), and UpdateAsPanel().
|
private |
Definition at line 505 of file tile16_editor.h.
Referenced by RequestTileSwitch(), Update(), and UpdateAsPanel().
|
private |
Definition at line 506 of file tile16_editor.h.
Referenced by RequestTileSwitch(), Update(), and UpdateAsPanel().
|
private |
Definition at line 507 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), DrawStagedStateBar(), and SaveTile16ToROM().
|
private |
Definition at line 508 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), DrawStagedStateBar(), and SaveTile16ToROM().
|
private |
Definition at line 509 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), DrawStagedStateBar(), and SaveTile16ToROM().
|
private |
Definition at line 512 of file tile16_editor.h.
Referenced by SetCurrentTile(), and UpdateTile16Edit().
|
private |
Definition at line 513 of file tile16_editor.h.
Referenced by LoadLayoutFromScratch(), and UpdateTile16Edit().
|
private |
Definition at line 514 of file tile16_editor.h.
Referenced by UpdateTile16Edit().
|
staticconstexprprivate |
Definition at line 515 of file tile16_editor.h.
Referenced by UpdateTile16Edit().
|
staticconstexprprivate |
Definition at line 516 of file tile16_editor.h.
Referenced by DrawToCurrentTile16(), and UpdateTile16Edit().
|
private |
Definition at line 518 of file tile16_editor.h.
|
private |
Definition at line 519 of file tile16_editor.h.
|
private |
Definition at line 521 of file tile16_editor.h.
Referenced by Initialize().
|
private |
Definition at line 524 of file tile16_editor.h.
Referenced by DrawTile8UsageOverlay(), Initialize(), UpdateBlockset(), and UpdateTile16Edit().
|
private |
Definition at line 527 of file tile16_editor.h.
Referenced by Initialize(), LoadLayoutFromScratch(), and UpdateBlockset().
|
private |
Definition at line 530 of file tile16_editor.h.
Referenced by CopyTileBitmapToBlockset(), DrawTile8UsageOverlay(), DrawToCurrentTile16(), HasTile16BlocksetBitmap(), Initialize(), UpdateBlockset(), UpdateBlocksetBitmap(), and UpdateTile16Edit().
|
private |
Definition at line 534 of file tile16_editor.h.
Referenced by DrawPaletteSettings(), Initialize(), and UpdateTile16Edit().
|
private |
Definition at line 538 of file tile16_editor.h.
Referenced by ApplyPaletteToCurrentTile16Bitmap(), ClearTile16(), CopyTile16ToAtlas(), CopyTile16ToClipboard(), DrawToCurrentTile16(), FinalizePendingUndo(), FlipTile16Horizontal(), FlipTile16Vertical(), Initialize(), LoadTile16FromScratchSpace(), MarkCurrentTileModified(), PasteTile16FromClipboard(), PreviewPaletteChange(), RefreshAllPalettes(), RegenerateTile16BitmapFromROM(), RestoreFromSnapshot(), RotateTile16(), SaveTile16ToROM(), SaveTile16ToScratchSpace(), SaveUndoState(), SetCurrentTile(), UpdateBlocksetBitmap(), UpdateLivePreview(), and UpdateTile16Edit().
|
private |
Definition at line 541 of file tile16_editor.h.
Referenced by DrawContextMenu(), DrawPaletteSettings(), DrawTile8SourcePanel(), HandleTile8SourceSelection(), Initialize(), LoadTile8(), Update(), and UpdateTile16Edit().
|
private |
Definition at line 545 of file tile16_editor.h.
Referenced by AnalyzeTile8SourceData(), DrawPaletteSettings(), DrawTile8SourcePanel(), DrawToCurrentTile16(), HandleTile8SourceSelection(), HasCurrentGfxBitmap(), Initialize(), LoadTile8(), RefreshAllPalettes(), set_palette(), and UpdateTile16Edit().
|
private |
Definition at line 547 of file tile16_editor.h.
Referenced by Initialize().
|
private |
Definition at line 550 of file tile16_editor.h.
Referenced by CommitChangesToBlockset(), CopyTile16ToAtlas(), CopyTile16ToClipboard(), CopyTileBitmapToBlockset(), DrawToCurrentTile16(), Initialize(), IsTile16Valid(), RebuildTile8UsageCache(), RefreshTile16Blockset(), RequestTileSwitch(), SaveLayoutToScratch(), SetCurrentTile(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), UpdateTile16Edit(), and ValidateTile16Data().
|
private |
Definition at line 551 of file tile16_editor.h.
Referenced by AnalyzeTile8SourceData(), BuildTile16BitmapFromData(), CreateRemappedPaletteForViewing(), DrawPaletteSettings(), DrawToCurrentTile16(), FillTile16WithTile8(), GetActualPaletteSlotForCurrentTile16(), HandleKeyboardShortcuts(), HandleTile8SourceSelection(), LoadTile8(), RefreshAllPalettes(), RegenerateTile16BitmapFromROM(), UpdateTile16Edit(), and UpdateTile8Palette().
|
private |
Definition at line 553 of file tile16_editor.h.
|
private |
Definition at line 554 of file tile16_editor.h.
Referenced by AnalyzeTile8SourceData(), DrawPaletteSettings(), ResolveDisplayPalette(), set_palette(), and UpdateTile16Edit().
|
private |
Definition at line 555 of file tile16_editor.h.
Referenced by AnalyzeTile8SourceData(), ResolveDisplayPalette(), set_palette(), and UpdateTile16Edit().
|
private |
Definition at line 557 of file tile16_editor.h.
Referenced by DrawContextMenu(), DrawScratchSpace(), DrawTile16Editor(), HandleKeyboardShortcuts(), and Update().
|
private |
Definition at line 560 of file tile16_editor.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), and set_on_changes_committed().
|
private |
Definition at line 561 of file tile16_editor.h.
Referenced by set_on_current_tile_changed(), and SetCurrentTile().
|
private |
Definition at line 564 of file tile16_editor.h.
Referenced by ClearTile16(), CopyTile16ToClipboard(), DrawToCurrentTile16(), FillTile16WithTile8(), FinalizePendingUndo(), FlipTile16Horizontal(), FlipTile16Vertical(), GetCurrentTile16Data(), LoadTile16FromScratchSpace(), MarkCurrentTileModified(), PasteTile16FromClipboard(), RestoreFromSnapshot(), RotateTile16(), SaveTile16ToScratchSpace(), SaveUndoState(), and SetCurrentTile().