Domain session for Tile16 editing (no ImGui). More...
#include <tile16_edit_session.h>
Static Public Member Functions | |
| static Tile16LocalPos | Tile16PreviewDisplayPixelToTilePosition (Tile16LocalPos display_position) |
Static Public Attributes | |
| static constexpr int | kTilesPerPage = 64 |
| static constexpr int | kTilesPerRow = 8 |
Private Member Functions | |
| absl::Status | RunEdit (const std::function< absl::Status()> &operation) |
| absl::Status | ApplyDefinitions (const std::vector< Tile16Commit > &definitions) |
| absl::StatusOr< gfx::Tile16 > | ReadDocumentTile (int id) const |
| absl::Status | PasteTile16FromClipboardImpl () |
| absl::Status | LoadTile16FromScratchSpaceImpl (int slot) |
| absl::Status | FlipTile16HorizontalImpl () |
| absl::Status | FlipTile16VerticalImpl () |
| absl::Status | RotateTile16Impl () |
| absl::Status | FillTile16WithTile8Impl (int tile8_id) |
| absl::Status | ClearTile16Impl () |
| absl::Status | ApplyPaletteToAllImpl (uint8_t palette_id) |
| absl::Status | ApplyPaletteToQuadrantImpl (int quadrant, uint8_t palette_id) |
| absl::StatusOr< std::vector< zelda3::Tile16StampMutation > > | BuildStampMutations (Tile16LocalPos pos) const |
| absl::Status | DrawToCurrentTile16Impl (Tile16LocalPos pos, const gfx::Bitmap *source_tile) |
| gfx::SnesPalette | CreateRemappedPaletteForTile8 (const gfx::SnesPalette &source, int target_row, int tile8_id) const |
| bool | BitmapHasEncodedPaletteRows (const gfx::Bitmap &bitmap) const |
Domain session for Tile16 editing (no ImGui).
Owns document edits, palette coordination, undo, clipboard/scratch, and atlas updates. Save is a separate document operation. UI layers call into this session and render bitmaps/canvases separately.
Definition at line 39 of file tile16_edit_session.h.
|
inline |
Definition at line 41 of file tile16_edit_session.h.
| absl::Status yaze::editor::Tile16EditSession::InitializeBitmaps | ( | gfx::Bitmap & | tile16_blockset_bmp, |
| gfx::Bitmap & | current_gfx_bmp, | ||
| std::array< uint8_t, 0x200 > & | all_tiles_types ) |
Definition at line 95 of file tile16_edit_session.cc.
References all_tiles_types(), all_tiles_types_, yaze::editor::UndoManager::Clear(), yaze::gfx::Bitmap::Create(), yaze::gfx::Arena::CREATE, current_gfx_bmp(), current_gfx_bmp_, current_tile16_bmp_, document_edits_, edited_tile_bitmaps_, yaze::gfx::Arena::Get(), yaze::editor::kTile16PixelCount, yaze::editor::kTile16Size, map_blockset_loaded_, yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, SetCurrentTile(), yaze::gfx::Bitmap::SetPalette(), tile16_blockset_, tile16_blockset_bmp(), tile16_blockset_bmp_, tile8_usage_cache_dirty_, and undo_manager_.
Referenced by yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 50 of file tile16_edit_session.h.
References before_edit_, document_definitions_, history_, and undo_manager_.
|
inline |
Definition at line 56 of file tile16_edit_session.h.
References history_, and undo_manager_.
Referenced by yaze::editor::Tile16Editor::HandleKeyboardShortcuts().
| absl::Status yaze::editor::Tile16EditSession::ReplaceCurrentTile | ( | const gfx::Tile16 & | data | ) |
Definition at line 152 of file tile16_edit_history.cc.
References current_tile16_data_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, RunEdit(), and yaze::zelda3::SyncTile16TilesInfo().
Referenced by yaze::editor::Tile16Editor::ReplaceCurrentTile().

| absl::Status yaze::editor::Tile16EditSession::LoadTile8 | ( | ) |
Definition at line 442 of file tile16_edit_session.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::util::logf(), on_tile8_sheet_resized_, palette_normalization_mask_, RefreshAllPalettes(), ResolveDisplayPalette(), RETURN_IF_ERROR, rom_, yaze::gfx::Bitmap::size(), tile8_source_display_scale_, and yaze::gfx::Bitmap::width().
Referenced by FillTile16WithTile8Impl(), yaze::editor::Tile16Editor::LoadTile8(), RegenerateTile16BitmapFromROM(), and set_palette().
| absl::Status yaze::editor::Tile16EditSession::SetCurrentTile | ( | int | id | ) |
Definition at line 515 of file tile16_edit_session.cc.
References ASSIGN_OR_RETURN, current_tile16_, current_tile16_bmp_, current_tile16_data_, document_edits_, edited_tile_bitmaps_, jump_to_tile_id_, yaze::util::logf(), on_current_tile_changed_, on_tile_selection_changed_, ReadDocumentTile(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, rom_, and tile16_blockset_.
Referenced by ApplyDefinitions(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), InitializeBitmaps(), LoadLayoutFromScratch(), RequestTileSwitch(), RunEdit(), and yaze::editor::Tile16Editor::SetCurrentTile().

| void yaze::editor::Tile16EditSession::RequestTileSwitch | ( | int | target_tile_id | ) |
Definition at line 550 of file tile16_edit_session.cc.
References current_tile16_, yaze::util::logf(), rom_, SetCurrentTile(), and tile16_blockset_.
Referenced by yaze::editor::Tile16Editor::RequestTileSwitch().

| absl::Status yaze::editor::Tile16EditSession::CopyTile16ToClipboard | ( | int | tile_id | ) |
Definition at line 575 of file tile16_edit_session.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_, document_edits_, edited_tile_bitmaps_, yaze::gfx::Arena::Get(), yaze::gfx::GetTilemapData(), yaze::editor::Tile16ClipboardData::has_data, yaze::gfx::Bitmap::is_active(), yaze::editor::kTile16Size, yaze::gfx::Bitmap::palette(), yaze::gfx::Arena::QueueTextureCommand(), ReadDocumentTile(), rom_, yaze::gfx::Bitmap::SetPalette(), tile16_blockset_, yaze::editor::Tile16ClipboardData::tile_data, and yaze::gfx::Bitmap::vector().
Referenced by yaze::editor::Tile16Editor::CopyTile16ToClipboard().
| absl::Status yaze::editor::Tile16EditSession::PasteTile16FromClipboard | ( | ) |
Definition at line 52 of file tile16_edit_session.cc.
References PasteTile16FromClipboardImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::PasteTile16FromClipboard().

| absl::Status yaze::editor::Tile16EditSession::SaveTile16ToScratchSpace | ( | int | slot | ) |
Definition at line 651 of file tile16_edit_session.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 yaze::editor::Tile16Editor::SaveTile16ToScratchSpace().
| absl::Status yaze::editor::Tile16EditSession::LoadTile16FromScratchSpace | ( | int | slot | ) |
Definition at line 56 of file tile16_edit_session.cc.
References LoadTile16FromScratchSpaceImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::LoadTile16FromScratchSpace().

| absl::Status yaze::editor::Tile16EditSession::ClearScratchSpace | ( | int | slot | ) |
Definition at line 703 of file tile16_edit_session.cc.
References yaze::editor::kNumScratchSlots, and scratch_space_.
Referenced by yaze::editor::Tile16Editor::ClearScratchSpace().
| absl::Status yaze::editor::Tile16EditSession::FlipTile16Horizontal | ( | ) |
Definition at line 60 of file tile16_edit_session.cc.
References FlipTile16HorizontalImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::FlipTile16Horizontal().

| absl::Status yaze::editor::Tile16EditSession::FlipTile16Vertical | ( | ) |
Definition at line 64 of file tile16_edit_session.cc.
References FlipTile16VerticalImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::FlipTile16Vertical().

| absl::Status yaze::editor::Tile16EditSession::RotateTile16 | ( | ) |
Definition at line 68 of file tile16_edit_session.cc.
References RotateTile16Impl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::RotateTile16().

| absl::Status yaze::editor::Tile16EditSession::FillTile16WithTile8 | ( | int | tile8_id | ) |
Definition at line 72 of file tile16_edit_session.cc.
References FillTile16WithTile8Impl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::FillTile16WithTile8().

| absl::Status yaze::editor::Tile16EditSession::ClearTile16 | ( | ) |
Definition at line 76 of file tile16_edit_session.cc.
References ClearTile16Impl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::ClearTile16().

| absl::Status yaze::editor::Tile16EditSession::CyclePalette | ( | bool | forward = true | ) |
Definition at line 829 of file tile16_edit_session.cc.
References current_palette_, yaze::util::logf(), RefreshAllPalettes(), and RETURN_IF_ERROR.
Referenced by yaze::editor::Tile16Editor::CyclePalette().

| absl::Status yaze::editor::Tile16EditSession::ApplyPaletteToAll | ( | uint8_t | palette_id | ) |
Definition at line 80 of file tile16_edit_session.cc.
References ApplyPaletteToAllImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::ApplyPaletteToAll().

| absl::Status yaze::editor::Tile16EditSession::ApplyPaletteToQuadrant | ( | int | quadrant, |
| uint8_t | palette_id ) |
Definition at line 84 of file tile16_edit_session.cc.
References ApplyPaletteToQuadrantImpl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::ApplyPaletteToQuadrant().

| absl::Status yaze::editor::Tile16EditSession::PreviewPaletteChange | ( | uint8_t | palette_id | ) |
Definition at line 847 of file tile16_edit_session.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().
Referenced by yaze::editor::Tile16Editor::PreviewPaletteChange().
| absl::Status yaze::editor::Tile16EditSession::Undo | ( | ) |
Definition at line 959 of file tile16_edit_session.cc.
References before_edit_, history_, and yaze::editor::UndoManager::Undo().
Referenced by yaze::editor::Tile16Editor::Undo().

| absl::Status yaze::editor::Tile16EditSession::Redo | ( | ) |
Definition at line 964 of file tile16_edit_session.cc.
References before_edit_, history_, and yaze::editor::UndoManager::Redo().
Referenced by yaze::editor::Tile16Editor::Redo().

|
inline |
Definition at line 82 of file tile16_edit_session.h.
References yaze::editor::UndoManager::CanUndo(), and history_.
Referenced by yaze::editor::Tile16Editor::DrawCompactActionStatusRow().

|
inline |
Definition at line 83 of file tile16_edit_session.h.
References yaze::editor::UndoManager::CanRedo(), and history_.
Referenced by yaze::editor::Tile16Editor::DrawCompactActionStatusRow().

|
inline |
Definition at line 85 of file tile16_edit_session.h.
References live_preview_enabled_.
Referenced by yaze::editor::Tile16Editor::EnableLivePreview().
|
inline |
Definition at line 86 of file tile16_edit_session.h.
References live_preview_enabled_.
| absl::Status yaze::editor::Tile16EditSession::UpdateLivePreview | ( | ) |
Definition at line 1671 of file tile16_edit_session.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 yaze::editor::Tile16Editor::UpdateLivePreview().
| absl::Status yaze::editor::Tile16EditSession::ValidateTile16Data | ( | ) |
Definition at line 970 of file tile16_edit_session.cc.
References current_palette_, and tile16_blockset_.
Referenced by yaze::editor::Tile16Editor::ValidateTile16Data().
| bool yaze::editor::Tile16EditSession::IsTile16Valid | ( | int | tile_id | ) | const |
Definition at line 986 of file tile16_edit_session.cc.
References tile16_blockset_.
Referenced by yaze::editor::Tile16Editor::IsTile16Valid().
| absl::Status yaze::editor::Tile16EditSession::SaveTile16ToROM | ( | ) |
Definition at line 991 of file tile16_edit_session.cc.
References CommitChangesToBlockset(), current_tile16_, current_tile16_bmp_, document_definitions_, document_edits_, edited_tile_bitmaps_, has_rom_write_history_, yaze::gfx::Bitmap::is_active(), last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), tile8_usage_cache_dirty_, UpdateOverworldTilemap(), and UpdateROMTile16Data().
Referenced by yaze::editor::Tile16Editor::SaveTile16ToROM().
| absl::Status yaze::editor::Tile16EditSession::UpdateOverworldTilemap | ( | ) |
Definition at line 1028 of file tile16_edit_session.cc.
References CopyTile16ToAtlas(), current_tile16_, and tile16_blockset_.
Referenced by ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), ClearTile16Impl(), DrawToCurrentTile16Impl(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), LoadTile16FromScratchSpaceImpl(), PasteTile16FromClipboardImpl(), RotateTile16Impl(), SaveTile16ToROM(), and yaze::editor::Tile16Editor::UpdateOverworldTilemap().

| absl::Status yaze::editor::Tile16EditSession::CommitChangesToBlockset | ( | ) |
Definition at line 1043 of file tile16_edit_session.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 yaze::editor::Tile16Editor::CommitChangesToBlockset(), and SaveTile16ToROM().

| absl::Status yaze::editor::Tile16EditSession::CommitChangesToOverworld | ( | ) |
Definition at line 1063 of file tile16_edit_session.cc.
References CopyTile16ToAtlas(), current_tile16_, current_tile16_data_, document_definitions_, document_edits_, edited_tile_bitmaps_, has_rom_write_history_, last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), on_changes_committed_, RETURN_IF_ERROR, tile8_usage_cache_dirty_, UpdateBlocksetBitmap(), and UpdateROMTile16Data().
Referenced by yaze::editor::Tile16Editor::CommitChangesToOverworld().

| absl::Status yaze::editor::Tile16EditSession::DiscardChanges | ( | ) |
Definition at line 1099 of file tile16_edit_session.cc.
References current_tile16_, document_definitions_, document_edits_, edited_tile_bitmaps_, yaze::util::logf(), RETURN_IF_ERROR, SetCurrentTile(), and tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::DiscardChanges().

|
inline |
Definition at line 100 of file tile16_edit_session.h.
References document_edits_.
Referenced by yaze::editor::Tile16Editor::has_pending_changes().
|
inline |
Definition at line 101 of file tile16_edit_session.h.
References document_edits_.
Referenced by yaze::editor::Tile16Editor::pending_changes_count().
|
inline |
Definition at line 104 of file tile16_edit_session.h.
References document_edits_.
Referenced by yaze::editor::Tile16Editor::is_tile_modified().
|
inline |
Definition at line 107 of file tile16_edit_session.h.
References edited_tile_bitmaps_.
Referenced by yaze::editor::Tile16Editor::GetPendingTileBitmap().
|
inline |
Definition at line 111 of file tile16_edit_session.h.
References document_edits_.
|
inline |
Definition at line 114 of file tile16_edit_session.h.
References edited_tile_bitmaps_.
| absl::Status yaze::editor::Tile16EditSession::CommitAllChanges | ( | ) |
Definition at line 1118 of file tile16_edit_session.cc.
References document_definitions_, document_edits_, edited_tile_bitmaps_, has_rom_write_history_, yaze::zelda3::kTile16Ptr, last_rom_write_count_, last_rom_write_time_, yaze::util::logf(), on_changes_committed_, RefreshTile16Blockset(), RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), tile8_usage_cache_dirty_, and yaze::Rom::WriteTile16().
Referenced by yaze::editor::Tile16Editor::CommitAllChanges().

| void yaze::editor::Tile16EditSession::DiscardAllChanges | ( | ) |
Definition at line 1166 of file tile16_edit_session.cc.
References current_tile16_, document_definitions_, document_edits_, edited_tile_bitmaps_, yaze::util::logf(), SetCurrentTile(), and tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::DiscardAllChanges().

| void yaze::editor::Tile16EditSession::DiscardCurrentTileChanges | ( | ) |
Definition at line 1188 of file tile16_edit_session.cc.
References current_tile16_, document_definitions_, document_edits_, edited_tile_bitmaps_, yaze::util::logf(), SetCurrentTile(), and tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::DiscardCurrentTileChanges().

| void yaze::editor::Tile16EditSession::MarkCurrentTileModified | ( | ) |
Definition at line 1208 of file tile16_edit_session.cc.
References current_tile16_, current_tile16_bmp_, current_tile16_data_, document_edits_, edited_tile_bitmaps_, yaze::util::logf(), preview_dirty_, and tile8_usage_cache_dirty_.
Referenced by ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), ClearTile16Impl(), DrawToCurrentTile16Impl(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), LoadTile16FromScratchSpaceImpl(), yaze::editor::Tile16Editor::MarkCurrentTileModified(), PasteTile16FromClipboardImpl(), ReplaceCurrentTile(), and RotateTile16Impl().

| absl::Status yaze::editor::Tile16EditSession::UpdateTile8Palette | ( | int | tile8_id | ) |
Definition at line 1426 of file tile16_edit_session.cc.
References CreateRemappedPaletteForTile8(), current_gfx_bmp_, current_gfx_individual_, current_palette_, yaze::gfx::SnesPalette::empty(), yaze::gfx::Arena::Get(), GetActualPaletteSlot(), GetSheetIndexForTile8(), HasCurrentGfxBitmap(), yaze::util::logf(), yaze::gfx::Arena::QueueTextureCommand(), ResolveDisplayPalette(), rom_, yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), and yaze::gfx::Arena::UPDATE.
Referenced by PickTile8FromTile16(), and yaze::editor::Tile16Editor::UpdateTile8Palette().
| absl::Status yaze::editor::Tile16EditSession::RefreshAllPalettes | ( | ) |
Definition at line 1465 of file tile16_edit_session.cc.
References 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(), LoadTile8(), PickTile8FromTile16(), and yaze::editor::Tile16Editor::RefreshAllPalettes().
| int yaze::editor::Tile16EditSession::GetActualPaletteSlot | ( | int | palette_button, |
| int | sheet_index ) const |
Definition at line 1287 of file tile16_edit_session.cc.
Referenced by AnalyzeTile8SourceData(), yaze::editor::Tile16Editor::GetActualPaletteSlot(), GetActualPaletteSlotForCurrentTile16(), PreviewPaletteChange(), UpdateLivePreview(), and UpdateTile8Palette().
| int yaze::editor::Tile16EditSession::GetSheetIndexForTile8 | ( | int | tile8_id | ) | const |
Definition at line 1295 of file tile16_edit_session.cc.
Referenced by yaze::editor::Tile16Editor::GetSheetIndexForTile8(), PreviewPaletteChange(), UpdateLivePreview(), and UpdateTile8Palette().
| int yaze::editor::Tile16EditSession::GetActualPaletteSlotForCurrentTile16 | ( | ) | const |
Definition at line 1304 of file tile16_edit_session.cc.
References current_palette_, and GetActualPaletteSlot().
Referenced by ApplyPaletteToCurrentTile16Bitmap(), and yaze::editor::Tile16Editor::GetActualPaletteSlotForCurrentTile16().

| gfx::SnesPalette yaze::editor::Tile16EditSession::CreateRemappedPaletteForViewing | ( | const gfx::SnesPalette & | source, |
| int | target_row ) const |
Definition at line 1308 of file tile16_edit_session.cc.
References CreateRemappedPaletteForTile8(), and current_tile8_.
Referenced by yaze::editor::Tile16Editor::CreateRemappedPaletteForViewing(), and RefreshAllPalettes().

| int yaze::editor::Tile16EditSession::GetEncodedPaletteRow | ( | uint8_t | pixel_value | ) | const |
Definition at line 1350 of file tile16_edit_session.cc.
Referenced by AnalyzeTile8SourceData(), and yaze::editor::Tile16Editor::GetEncodedPaletteRow().
| absl::Status yaze::editor::Tile16EditSession::UpdateROMTile16Data | ( | ) |
Definition at line 156 of file tile16_edit_session.cc.
References current_tile16_, document_definitions_, GetCurrentTile16Data(), yaze::zelda3::kTile16Ptr, yaze::util::logf(), RETURN_IF_ERROR, rom_, and yaze::Rom::WriteTile16().
Referenced by CommitChangesToOverworld(), SaveTile16ToROM(), and yaze::editor::Tile16Editor::UpdateROMTile16Data().

| absl::Status yaze::editor::Tile16EditSession::RefreshTile16Blockset | ( | ) |
Definition at line 175 of file tile16_edit_session.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 yaze::editor::Tile16Editor::RefreshTile16Blockset().

| gfx::Tile16 * yaze::editor::Tile16EditSession::GetCurrentTile16Data | ( | ) |
Definition at line 149 of file tile16_edit_session.cc.
References current_tile16_data_, and rom_.
Referenced by ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), yaze::editor::Tile16Editor::GetCurrentTile16Data(), PickTile8FromTile16(), RegenerateTile16BitmapFromROM(), and UpdateROMTile16Data().
| absl::Status yaze::editor::Tile16EditSession::RegenerateTile16BitmapFromROM | ( | ) |
Definition at line 249 of file tile16_edit_session.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 ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), ClearTile16Impl(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), LoadTile16FromScratchSpaceImpl(), PasteTile16FromClipboardImpl(), RefreshAllPalettes(), yaze::editor::Tile16Editor::RegenerateTile16BitmapFromROM(), ReplaceCurrentTile(), RotateTile16Impl(), and SetCurrentTile().
| absl::Status yaze::editor::Tile16EditSession::UpdateBlocksetBitmap | ( | ) |
Definition at line 220 of file tile16_edit_session.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 ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), ClearTile16Impl(), CommitChangesToOverworld(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), LoadTile16FromScratchSpaceImpl(), PasteTile16FromClipboardImpl(), RotateTile16Impl(), and yaze::editor::Tile16Editor::UpdateBlocksetBitmap().
| absl::Status yaze::editor::Tile16EditSession::PickTile8FromTile16 | ( | Tile16LocalPos | position | ) |
Definition at line 1243 of file tile16_edit_session.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_, yaze::zelda3::Tile16QuadrantInfo(), UpdateTile8Palette(), yaze::gfx::TileInfo::vertical_mirror_, yaze::editor::Tile16LocalPos::x, x_flip_, yaze::editor::Tile16LocalPos::y, and y_flip_.
Referenced by HandleTile16CanvasClick(), and yaze::editor::Tile16Editor::PickTile8FromTile16().
| absl::Status yaze::editor::Tile16EditSession::DrawToCurrentTile16 | ( | Tile16LocalPos | pos, |
| const gfx::Bitmap * | source_tile = nullptr ) |
Definition at line 90 of file tile16_edit_session.cc.
References DrawToCurrentTile16Impl(), and RunEdit().
Referenced by yaze::editor::Tile16Editor::DrawToCurrentTile16(), and HandleTile16CanvasClick().

| absl::Status yaze::editor::Tile16EditSession::BuildStampPreview | ( | Tile16LocalPos | pos, |
| gfx::Bitmap * | output ) const |
Definition at line 328 of file tile16_edit_session.cc.
References ASSIGN_OR_RETURN, BuildStampMutations(), yaze::gfx::Bitmap::Create(), current_gfx_individual_, current_tile16_, current_tile16_bmp_, kTilesPerRow, yaze::gfx::Bitmap::palette(), yaze::zelda3::RenderTile16PixelsFromMetadata(), yaze::gfx::Bitmap::SetPalette(), and tile8_stamp_size_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
| absl::Status yaze::editor::Tile16EditSession::HandleTile16CanvasClick | ( | Tile16LocalPos | tile_position, |
| bool | left_click, | ||
| bool | right_click ) |
Definition at line 407 of file tile16_edit_session.cc.
References DrawToCurrentTile16(), edit_mode_, yaze::editor::kPaint, yaze::editor::kPick, yaze::editor::kUsageProbe, yaze::util::logf(), PickTile8FromTile16(), RETURN_IF_ERROR, yaze::editor::Tile16LocalPos::x, and yaze::editor::Tile16LocalPos::y.
Referenced by yaze::editor::Tile16Editor::HandleTile16CanvasClick().

|
static |
Definition at line 437 of file tile16_edit_session.cc.
References yaze::editor::Tile16LocalPos::x, and yaze::editor::Tile16LocalPos::y.
Referenced by yaze::editor::Tile16Editor::Tile16PreviewDisplayPixelToTilePosition().
| absl::Status yaze::editor::Tile16EditSession::SaveLayoutToScratch | ( | int | slot | ) |
Definition at line 1626 of file tile16_edit_session.cc.
References yaze::zelda3::ComputeTile16Count(), current_tile16_, layout_scratch_, and tile16_blockset_.
Referenced by yaze::editor::Tile16Editor::SaveLayoutToScratch().

| absl::Status yaze::editor::Tile16EditSession::LoadLayoutFromScratch | ( | int | slot | ) |
Definition at line 1652 of file tile16_edit_session.cc.
References layout_scratch_, RETURN_IF_ERROR, scroll_to_current_, and SetCurrentTile().
Referenced by yaze::editor::Tile16Editor::LoadLayoutFromScratch().

|
inline |
Definition at line 152 of file tile16_edit_session.h.
Referenced by yaze::editor::Tile16Editor::SetRom().

|
inline |
Definition at line 153 of file tile16_edit_session.h.
References rom_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::Tile16Editor::Initialize(), yaze::editor::Tile16Editor::rom(), and SetRom().
|
inline |
Definition at line 154 of file tile16_edit_session.h.
References game_data(), and game_data_.
Referenced by yaze::editor::Tile16Editor::SetGameData().

|
inline |
Definition at line 155 of file tile16_edit_session.h.
References game_data_.
Referenced by yaze::editor::Tile16Editor::game_data(), ResolveDisplayPalette(), and SetGameData().
| void yaze::editor::Tile16EditSession::set_palette | ( | const gfx::SnesPalette & | palette | ) |
Definition at line 120 of file tile16_edit_session.cc.
References current_gfx_bmp_, yaze::gfx::Bitmap::is_active(), LoadTile8(), yaze::util::logf(), overworld_palette_, palette(), palette_, rom_, and yaze::gfx::SnesPalette::size().
Referenced by yaze::editor::Tile16Editor::set_palette().
|
inline |
Definition at line 159 of file tile16_edit_session.h.
References on_document_changed_.
Referenced by yaze::editor::Tile16Editor::set_on_document_changed().
|
inline |
Definition at line 163 of file tile16_edit_session.h.
References on_changes_committed_.
Referenced by yaze::editor::Tile16Editor::set_on_changes_committed().
|
inline |
Definition at line 167 of file tile16_edit_session.h.
References on_current_tile_changed_.
Referenced by yaze::editor::Tile16Editor::set_on_current_tile_changed().
|
inline |
Optional: UI can sync blockset selector when current tile changes.
Definition at line 171 of file tile16_edit_session.h.
References on_tile_selection_changed_.
Referenced by yaze::editor::Tile16Editor::Initialize().
|
inline |
Optional: UI updates Tile8 source canvas size after LoadTile8.
Definition at line 175 of file tile16_edit_session.h.
References on_tile8_sheet_resized_.
Referenced by yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 180 of file tile16_edit_session.h.
References current_palette_.
Referenced by yaze::editor::Tile16Editor::current_palette(), yaze::editor::Tile16Editor::DrawBrushAndTilePaletteControls(), yaze::editor::Tile16Editor::DrawPaletteSettings(), and yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 181 of file tile16_edit_session.h.
References current_palette_, and palette().
Referenced by yaze::editor::Tile16Editor::DrawBrushAndTilePaletteControls(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), and yaze::editor::Tile16Editor::set_current_palette().

|
inline |
Definition at line 184 of file tile16_edit_session.h.
References tile8_preview_bmp_.
Referenced by yaze::editor::Tile16Editor::Tile8PreviewBitmapForTesting().
|
inline |
Definition at line 185 of file tile16_edit_session.h.
References tile8_preview_bmp_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 186 of file tile16_edit_session.h.
References current_tile16_.
Referenced by yaze::editor::Tile16Editor::current_tile16(), yaze::editor::Tile16Editor::DrawCompactActionStatusRow(), yaze::editor::Tile16Editor::DrawContextMenu(), yaze::editor::Tile16Editor::DrawManualTile8Inputs(), yaze::editor::Tile16Editor::DrawPrimaryActionControls(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::DrawTile16NavigationHeader(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), yaze::editor::Tile16Editor::Initialize(), yaze::editor::Tile16Editor::LoadLayoutFromScratch(), yaze::editor::Tile16Editor::OpenGraphicsForActiveQuadrant(), and yaze::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 187 of file tile16_edit_session.h.
References current_tile8_.
Referenced by yaze::editor::Tile16Editor::current_tile8(), yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::DrawTile8UsageOverlay(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), yaze::editor::Tile16Editor::HandleTile8SourceSelection(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 188 of file tile16_edit_session.h.
References current_tile8_.
Referenced by yaze::editor::Tile16Editor::HandleTile8SourceSelection().
|
inline |
Definition at line 189 of file tile16_edit_session.h.
References active_quadrant_.
Referenced by yaze::editor::Tile16Editor::active_quadrant(), yaze::editor::Tile16Editor::DrawBrushAndTilePaletteControls(), yaze::editor::Tile16Editor::OpenGraphicsForActiveQuadrant(), and yaze::editor::Tile16Editor::UpdateAsPanel().
|
inline |
Definition at line 190 of file tile16_edit_session.h.
References active_quadrant_.
Referenced by yaze::editor::Tile16Editor::DrawBrushAndTilePaletteControls(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), and yaze::editor::Tile16Editor::set_active_quadrant().
|
inline |
Definition at line 193 of file tile16_edit_session.h.
References edit_mode_.
Referenced by yaze::editor::Tile16Editor::DrawCompactActionStatusRow(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::DrawTile8SourcePanel(), and yaze::editor::Tile16Editor::edit_mode().
|
inline |
Definition at line 194 of file tile16_edit_session.h.
References edit_mode_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), and yaze::editor::Tile16Editor::set_edit_mode().
|
inline |
Definition at line 196 of file tile16_edit_session.h.
References x_flip_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 197 of file tile16_edit_session.h.
References y_flip_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 198 of file tile16_edit_session.h.
References priority_tile_.
|
inline |
Definition at line 199 of file tile16_edit_session.h.
References x_flip_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 200 of file tile16_edit_session.h.
References y_flip_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 201 of file tile16_edit_session.h.
References priority_tile_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 203 of file tile16_edit_session.h.
References map_blockset_loaded_.
Referenced by yaze::editor::Tile16Editor::UpdateAsPanel().
|
inline |
Definition at line 204 of file tile16_edit_session.h.
References map_blockset_loaded_.
|
inline |
Definition at line 206 of file tile16_edit_session.h.
References has_rom_write_history_.
|
inline |
Definition at line 207 of file tile16_edit_session.h.
References last_rom_write_count_.
|
inline |
Definition at line 208 of file tile16_edit_session.h.
References last_rom_write_time_.
|
inline |
Definition at line 212 of file tile16_edit_session.h.
References jump_to_tile_id_.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
inline |
Definition at line 213 of file tile16_edit_session.h.
References jump_to_tile_id_.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
inline |
Definition at line 214 of file tile16_edit_session.h.
References scroll_to_current_.
|
inline |
Definition at line 215 of file tile16_edit_session.h.
References scroll_to_current_.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
inline |
Definition at line 216 of file tile16_edit_session.h.
References current_page_.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
inline |
Definition at line 217 of file tile16_edit_session.h.
References current_page_.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
inline |
Definition at line 221 of file tile16_edit_session.h.
References current_tile16_bmp_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 222 of file tile16_edit_session.h.
References current_tile16_bmp_.
|
inline |
Definition at line 223 of file tile16_edit_session.h.
References current_tile16_data_.
Referenced by yaze::editor::Tile16Editor::DrawManualTile8Inputs().
|
inline |
Definition at line 224 of file tile16_edit_session.h.
References current_tile16_data_.
|
inline |
Definition at line 228 of file tile16_edit_session.h.
References tile16_blockset_bmp_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::DrawTile8UsageOverlay(), InitializeBitmaps(), and yaze::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 229 of file tile16_edit_session.h.
References current_gfx_bmp_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::DrawTile8SourcePanel(), yaze::editor::Tile16Editor::HandleTile8SourceSelection(), and InitializeBitmaps().
|
inline |
Definition at line 230 of file tile16_edit_session.h.
References tile16_blockset_.
Referenced by yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 231 of file tile16_edit_session.h.
References current_gfx_individual_.
|
inline |
Definition at line 234 of file tile16_edit_session.h.
References current_gfx_individual_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), yaze::editor::Tile16Editor::HandleKeyboardShortcuts(), and yaze::editor::Tile16Editor::HandleTile8SourceSelection().
|
inline |
Definition at line 238 of file tile16_edit_session.h.
References clipboard_tile16_.
|
inline |
Definition at line 239 of file tile16_edit_session.h.
References scratch_space_.
Referenced by yaze::editor::Tile16Editor::DrawContextMenu().
|
inline |
Definition at line 240 of file tile16_edit_session.h.
References scratch_space_.
|
inline |
Definition at line 243 of file tile16_edit_session.h.
References layout_scratch_.
Referenced by yaze::editor::Tile16Editor::DrawScratchSpace(), and yaze::editor::Tile16Editor::LoadLayoutFromScratch().
|
inline |
Definition at line 245 of file tile16_edit_session.h.
References auto_tile_mode_.
|
inline |
Definition at line 246 of file tile16_edit_session.h.
References auto_tile_mode_.
|
inline |
Definition at line 247 of file tile16_edit_session.h.
References grid_snap_enabled_.
|
inline |
Definition at line 248 of file tile16_edit_session.h.
References grid_snap_enabled_.
|
inline |
Definition at line 249 of file tile16_edit_session.h.
References show_tile_info_.
|
inline |
Definition at line 250 of file tile16_edit_session.h.
References show_tile_info_.
|
inline |
Definition at line 251 of file tile16_edit_session.h.
References show_palette_preview_.
|
inline |
Definition at line 252 of file tile16_edit_session.h.
References show_palette_preview_.
|
inline |
Definition at line 253 of file tile16_edit_session.h.
References show_tile_grid_.
Referenced by yaze::editor::Tile16Editor::DrawContextMenu(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 254 of file tile16_edit_session.h.
References show_tile_grid_.
Referenced by yaze::editor::Tile16Editor::DrawContextMenu(), and yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 255 of file tile16_edit_session.h.
References show_tile_collision_ids_.
Referenced by yaze::editor::Tile16Editor::DrawContextMenu(), and yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 256 of file tile16_edit_session.h.
References show_tile_collision_ids_.
Referenced by yaze::editor::Tile16Editor::DrawContextMenu(), yaze::editor::Tile16Editor::DrawTile8SourcePanel(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 257 of file tile16_edit_session.h.
References tile8_stamp_size_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 258 of file tile16_edit_session.h.
References tile8_stamp_size_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 259 of file tile16_edit_session.h.
References tile8_stamp_size_.
|
inline |
Definition at line 260 of file tile16_edit_session.h.
References highlight_tile8_usage_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::DrawTile8UsageOverlay().
|
inline |
Definition at line 261 of file tile16_edit_session.h.
References highlight_tile8_usage_.
Referenced by yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), and yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 262 of file tile16_edit_session.h.
References tile8_source_display_scale_.
Referenced by yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 265 of file tile16_edit_session.h.
References tile8_source_display_scale_.
Referenced by yaze::editor::Tile16Editor::DrawTile8SourcePanel().
|
inline |
Definition at line 269 of file tile16_edit_session.h.
References show_palette_settings_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), and yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 270 of file tile16_edit_session.h.
References show_palette_settings_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), and yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 271 of file tile16_edit_session.h.
References current_palette_group_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
|
inline |
Definition at line 272 of file tile16_edit_session.h.
References current_palette_group_.
|
inline |
Definition at line 273 of file tile16_edit_session.h.
References palette_normalization_mask_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
|
inline |
Definition at line 276 of file tile16_edit_session.h.
References palette_normalization_mask_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
|
inline |
Definition at line 279 of file tile16_edit_session.h.
References auto_normalize_pixels_.
|
inline |
Definition at line 280 of file tile16_edit_session.h.
References auto_normalize_pixels_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
|
inline |
Definition at line 282 of file tile16_edit_session.h.
References palette_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings(), yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn(), set_current_palette(), and set_palette().
|
inline |
Definition at line 283 of file tile16_edit_session.h.
References overworld_palette_.
Referenced by yaze::editor::Tile16Editor::DrawBrushAndTilePaletteControls(), and yaze::editor::Tile16Editor::DrawTile16EditorWorkbenchColumn().
|
inline |
Definition at line 286 of file tile16_edit_session.h.
References all_tiles_types_.
Referenced by InitializeBitmaps().
| absl::Status yaze::editor::Tile16EditSession::RebuildTile8UsageCache | ( | ) |
Definition at line 1223 of file tile16_edit_session.cc.
References yaze::zelda3::BuildTile8UsageIndex(), yaze::zelda3::ComputeTile16Count(), document_edits_, ReadDocumentTile(), RETURN_IF_ERROR, rom_, tile16_blockset_, tile8_usage_cache_, and tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::DrawTile8UsageOverlay().

|
inline |
Definition at line 291 of file tile16_edit_session.h.
References tile8_usage_cache_.
Referenced by yaze::editor::Tile16Editor::DrawTile8UsageOverlay().
|
inline |
Definition at line 294 of file tile16_edit_session.h.
References tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::DrawTile8UsageOverlay().
|
inline |
Definition at line 295 of file tile16_edit_session.h.
References tile8_usage_cache_dirty_.
Referenced by yaze::editor::Tile16Editor::HandleTile8SourceSelection().
| void yaze::editor::Tile16EditSession::ApplyPaletteToCurrentTile16Bitmap | ( | ) |
Definition at line 1390 of file tile16_edit_session.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 DrawToCurrentTile16Impl(), LoadTile16FromScratchSpaceImpl(), PasteTile16FromClipboardImpl(), and RegenerateTile16BitmapFromROM().
| void yaze::editor::Tile16EditSession::AnalyzeTile8SourceData | ( | ) | const |
Definition at line 1521 of file tile16_edit_session.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 yaze::editor::Tile16Editor::AnalyzeTile8SourceData().
| const gfx::SnesPalette * yaze::editor::Tile16EditSession::ResolveDisplayPalette | ( | ) | const |
Definition at line 1363 of file tile16_edit_session.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(), yaze::editor::Tile16Editor::DrawPaletteSettings(), LoadTile8(), PreviewPaletteChange(), RefreshAllPalettes(), UpdateLivePreview(), and UpdateTile8Palette().

|
inline |
Definition at line 304 of file tile16_edit_session.h.
References current_gfx_bmp_, and yaze::gfx::Bitmap::is_active().
Referenced by AnalyzeTile8SourceData(), BuildStampMutations(), FillTile16WithTile8Impl(), LoadTile8(), RefreshAllPalettes(), RegenerateTile16BitmapFromROM(), and UpdateTile8Palette().

|
inline |
Definition at line 307 of file tile16_edit_session.h.
References yaze::gfx::Bitmap::is_active(), and tile16_blockset_bmp_.
Referenced by ApplyDefinitions(), CopyTileBitmapToBlockset(), DrawToCurrentTile16Impl(), and UpdateBlocksetBitmap().

| absl::Status yaze::editor::Tile16EditSession::BuildTile16BitmapFromData | ( | const gfx::Tile16 & | tile_data, |
| gfx::Bitmap * | output_bitmap ) const |
Definition at line 194 of file tile16_edit_session.cc.
References current_gfx_individual_, and yaze::zelda3::RenderTile16BitmapFromMetadata().
Referenced by ApplyDefinitions(), DrawToCurrentTile16Impl(), RegenerateTile16BitmapFromROM(), and RunEdit().

| void yaze::editor::Tile16EditSession::CopyTileBitmapToBlockset | ( | int | tile_id, |
| const gfx::Bitmap & | tile_bitmap ) |
Definition at line 200 of file tile16_edit_session.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 ApplyDefinitions(), DrawToCurrentTile16Impl(), RunEdit(), and UpdateBlocksetBitmap().

| void yaze::editor::Tile16EditSession::CopyTile16ToAtlas | ( | int | tile_id | ) |
Definition at line 1726 of file tile16_edit_session.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 101 of file tile16_edit_history.cc.
References ApplyDefinitions(), before_edit_, BuildTile16BitmapFromData(), CopyTileBitmapToBlockset(), current_tile16_, current_tile16_data_, document_edits_, history_, yaze::editor::UndoManager::Push(), ReadDocumentTile(), and SetCurrentTile().
Referenced by ApplyPaletteToAll(), ApplyPaletteToQuadrant(), ClearTile16(), DrawToCurrentTile16(), FillTile16WithTile8(), FlipTile16Horizontal(), FlipTile16Vertical(), LoadTile16FromScratchSpace(), PasteTile16FromClipboard(), ReplaceCurrentTile(), and RotateTile16().
|
private |
Definition at line 59 of file tile16_edit_history.cc.
References yaze::gfx::Tilemap::atlas, BuildTile16BitmapFromData(), CopyTileBitmapToBlockset(), current_tile16_, current_tile16_bmp_, document_definitions_, document_edits_, edited_tile_bitmaps_, yaze::gfx::Arena::Get(), HasTile16BlocksetBitmap(), yaze::gfx::Bitmap::is_active(), yaze::zelda3::kNumTile16Individual, on_document_changed_, yaze::gfx::Bitmap::palette(), preview_dirty_, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, rom_, yaze::Rom::set_dirty(), SetCurrentTile(), tile16_blockset_, tile16_blockset_bmp_, tile8_usage_cache_dirty_, and yaze::gfx::Arena::UPDATE.
Referenced by RunEdit().
|
private |
Definition at line 44 of file tile16_edit_history.cc.
References document_definitions_, document_edits_, yaze::zelda3::kTile16Ptr, yaze::Rom::ReadTile16(), and rom_.
Referenced by CopyTile16ToClipboard(), RebuildTile8UsageCache(), RunEdit(), and SetCurrentTile().

|
private |
Definition at line 624 of file tile16_edit_session.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, yaze::gfx::Bitmap::SetPalette(), yaze::editor::Tile16ClipboardData::tile_data, UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and yaze::gfx::Bitmap::vector().
Referenced by PasteTile16FromClipboard().
|
private |
Definition at line 672 of file tile16_edit_session.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, scratch_space_, yaze::gfx::Bitmap::SetPalette(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by LoadTile16FromScratchSpace().
|
private |
Definition at line 713 of file tile16_edit_session.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::zelda3::HorizontalFlipTile16(), yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by FlipTile16Horizontal().
|
private |
Definition at line 732 of file tile16_edit_session.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and yaze::zelda3::VerticalFlipTile16().
Referenced by FlipTile16Vertical().
|
private |
Definition at line 751 of file tile16_edit_session.cc.
References current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, yaze::zelda3::RotateTile16Clockwise(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by RotateTile16().
|
private |
Definition at line 772 of file tile16_edit_session.cc.
References current_gfx_individual_, current_palette_, current_tile16_data_, HasCurrentGfxBitmap(), live_preview_enabled_, LoadTile8(), MarkCurrentTileModified(), priority_tile_, RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, UpdateBlocksetBitmap(), UpdateOverworldTilemap(), x_flip_, and y_flip_.
Referenced by FillTile16WithTile8().
|
private |
Definition at line 805 of file tile16_edit_session.cc.
References current_palette_, current_tile16_bmp_, current_tile16_data_, yaze::gfx::Bitmap::is_active(), live_preview_enabled_, MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by ClearTile16().
|
private |
Definition at line 894 of file tile16_edit_session.cc.
References current_palette_, current_tile16_, GetCurrentTile16Data(), live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, yaze::zelda3::SetTile16AllQuadrantPalettes(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by ApplyPaletteToAll().
|
private |
Definition at line 926 of file tile16_edit_session.cc.
References current_palette_, current_tile16_, GetCurrentTile16Data(), live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), RegenerateTile16BitmapFromROM(), RETURN_IF_ERROR, yaze::zelda3::SetTile16QuadrantPalette(), UpdateBlocksetBitmap(), and UpdateOverworldTilemap().
Referenced by ApplyPaletteToQuadrant().
|
private |
Definition at line 282 of file tile16_edit_session.cc.
References yaze::zelda3::BuildTile16StampMutations(), current_gfx_bmp_, current_gfx_individual_, current_palette_, yaze::zelda3::Tile16StampRequest::current_tile16, current_tile16_, current_tile16_bmp_, current_tile16_data_, current_tile8_, document_definitions_, HasCurrentGfxBitmap(), yaze::gfx::Bitmap::is_active(), yaze::editor::kTile8Size, kTilesPerRow, priority_tile_, tile8_stamp_size_, yaze::gfx::Bitmap::width(), yaze::editor::Tile16LocalPos::x, x_flip_, yaze::editor::Tile16LocalPos::y, and y_flip_.
Referenced by BuildStampPreview(), and DrawToCurrentTile16Impl().

|
private |
Definition at line 352 of file tile16_edit_session.cc.
References active_quadrant_, ApplyPaletteToCurrentTile16Bitmap(), ASSIGN_OR_RETURN, yaze::gfx::Tilemap::atlas, BuildStampMutations(), BuildTile16BitmapFromData(), CopyTileBitmapToBlockset(), yaze::gfx::Bitmap::Create(), current_tile16_, current_tile16_bmp_, current_tile16_data_, document_edits_, edited_tile_bitmaps_, yaze::gfx::Arena::Get(), HasTile16BlocksetBitmap(), yaze::gfx::Bitmap::is_active(), yaze::editor::kTile16Size, live_preview_enabled_, yaze::util::logf(), MarkCurrentTileModified(), yaze::gfx::Bitmap::palette(), preview_dirty_, yaze::gfx::Arena::QueueTextureCommand(), RETURN_IF_ERROR, yaze::gfx::Bitmap::set_modified(), yaze::gfx::Bitmap::SetPalette(), yaze::gfx::SnesPalette::size(), tile16_blockset_, tile16_blockset_bmp_, tile8_stamp_size_, tile8_usage_cache_dirty_, yaze::gfx::Arena::UPDATE, UpdateOverworldTilemap(), yaze::gfx::Bitmap::vector(), yaze::editor::Tile16LocalPos::x, and yaze::editor::Tile16LocalPos::y.
Referenced by DrawToCurrentTile16().
|
private |
Definition at line 1313 of file tile16_edit_session.cc.
References yaze::gfx::SnesPalette::AddColor(), yaze::gfx::SnesColor::set_transparent(), and yaze::gfx::SnesPalette::size().
Referenced by CreateRemappedPaletteForViewing(), and UpdateTile8Palette().

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

|
staticconstexpr |
Definition at line 218 of file tile16_edit_session.h.
Referenced by yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
staticconstexpr |
Definition at line 219 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), BuildStampPreview(), and yaze::editor::Tile16Editor::DrawTile16NavigationHeader().
|
private |
Definition at line 339 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), BindDocument(), BuildStampMutations(), CommitAllChanges(), CommitChangesToOverworld(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), ReadDocumentTile(), SaveTile16ToROM(), and UpdateROMTile16Data().
|
private |
Definition at line 340 of file tile16_edit_session.h.
Referenced by BindDocument(), CanRedo(), CanUndo(), has_shared_history(), Redo(), RunEdit(), and Undo().
|
private |
Definition at line 341 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CommitAllChanges(), CopyTile16ToClipboard(), GetCurrentTile16Data(), LoadTile8(), PickTile8FromTile16(), ReadDocumentTile(), RebuildTile8UsageCache(), RefreshAllPalettes(), RequestTileSwitch(), rom(), SaveTile16ToROM(), set_palette(), SetCurrentTile(), SetRom(), UpdateROMTile16Data(), and UpdateTile8Palette().
|
private |
Definition at line 342 of file tile16_edit_session.h.
Referenced by game_data(), and SetGameData().
|
private |
Definition at line 343 of file tile16_edit_session.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), last_rom_write_time(), and SaveTile16ToROM().
|
private |
Definition at line 344 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CopyTileBitmapToBlockset(), DrawToCurrentTile16Impl(), HasTile16BlocksetBitmap(), InitializeBitmaps(), tile16_blockset_bmp(), and UpdateBlocksetBitmap().
|
private |
Definition at line 345 of file tile16_edit_session.h.
Referenced by AnalyzeTile8SourceData(), BuildStampMutations(), current_gfx_bmp(), HasCurrentGfxBitmap(), InitializeBitmaps(), LoadTile8(), RefreshAllPalettes(), set_palette(), and UpdateTile8Palette().
|
private |
Definition at line 346 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CommitChangesToBlockset(), CopyTile16ToAtlas(), CopyTile16ToClipboard(), CopyTileBitmapToBlockset(), DrawToCurrentTile16Impl(), InitializeBitmaps(), IsTile16Valid(), RebuildTile8UsageCache(), RefreshTile16Blockset(), RequestTileSwitch(), SaveLayoutToScratch(), SetCurrentTile(), tile16_blockset(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and ValidateTile16Data().
|
private |
Definition at line 347 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CommitAllChanges(), CommitChangesToOverworld(), CopyTile16ToClipboard(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16Impl(), has_pending_changes(), InitializeBitmaps(), is_tile_modified(), MarkCurrentTileModified(), pending_changes_count(), pending_tile16_changes(), ReadDocumentTile(), RebuildTile8UsageCache(), RunEdit(), SaveTile16ToROM(), and SetCurrentTile().
|
private |
Definition at line 348 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CommitAllChanges(), CommitChangesToOverworld(), CopyTile16ToClipboard(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16Impl(), GetPendingTileBitmap(), InitializeBitmaps(), MarkCurrentTileModified(), pending_tile16_bitmaps(), SaveTile16ToROM(), and SetCurrentTile().
|
private |
Definition at line 349 of file tile16_edit_session.h.
Referenced by AnalyzeTile8SourceData(), BuildStampMutations(), BuildStampPreview(), BuildTile16BitmapFromData(), current_gfx_individual(), FillTile16WithTile8Impl(), LoadTile8(), mutable_current_gfx_individual(), RefreshAllPalettes(), RegenerateTile16BitmapFromROM(), and UpdateTile8Palette().
|
private |
Definition at line 350 of file tile16_edit_session.h.
Referenced by BindDocument(), Redo(), RunEdit(), and Undo().
|
private |
Definition at line 351 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), and set_on_document_changed().
|
private |
Definition at line 353 of file tile16_edit_session.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), and set_on_changes_committed().
|
private |
Definition at line 354 of file tile16_edit_session.h.
Referenced by set_on_current_tile_changed(), and SetCurrentTile().
|
private |
Definition at line 355 of file tile16_edit_session.h.
Referenced by set_on_tile_selection_changed(), and SetCurrentTile().
|
private |
Definition at line 356 of file tile16_edit_session.h.
Referenced by LoadTile8(), and set_on_tile8_sheet_resized().
|
private |
Definition at line 357 of file tile16_edit_session.h.
Referenced by BindDocument(), has_shared_history(), and InitializeBitmaps().
|
private |
Definition at line 358 of file tile16_edit_session.h.
Referenced by layout_scratch(), LoadLayoutFromScratch(), and SaveLayoutToScratch().
|
private |
Definition at line 359 of file tile16_edit_session.h.
Referenced by AnalyzeTile8SourceData(), palette(), ResolveDisplayPalette(), and set_palette().
|
private |
Definition at line 360 of file tile16_edit_session.h.
Referenced by AnalyzeTile8SourceData(), overworld_palette(), ResolveDisplayPalette(), and set_palette().
|
private |
Definition at line 361 of file tile16_edit_session.h.
Referenced by PreviewPaletteChange(), and UpdateLivePreview().
|
private |
Definition at line 362 of file tile16_edit_session.h.
Referenced by mutable_tile8_preview_bitmap(), and Tile8PreviewBitmap().
|
private |
Definition at line 363 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), ApplyPaletteToCurrentTile16Bitmap(), BuildStampMutations(), BuildStampPreview(), ClearTile16Impl(), CopyTile16ToAtlas(), CopyTile16ToClipboard(), current_tile16_bmp(), current_tile16_bmp(), DrawToCurrentTile16Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), InitializeBitmaps(), LoadTile16FromScratchSpaceImpl(), MarkCurrentTileModified(), PasteTile16FromClipboardImpl(), PreviewPaletteChange(), RefreshAllPalettes(), RegenerateTile16BitmapFromROM(), RotateTile16Impl(), SaveTile16ToROM(), SaveTile16ToScratchSpace(), SetCurrentTile(), UpdateBlocksetBitmap(), and UpdateLivePreview().
|
private |
Definition at line 364 of file tile16_edit_session.h.
Referenced by clipboard(), CopyTile16ToClipboard(), and PasteTile16FromClipboardImpl().
|
private |
Definition at line 365 of file tile16_edit_session.h.
Referenced by RebuildTile8UsageCache(), and tile8_usage_cache().
|
private |
Definition at line 366 of file tile16_edit_session.h.
Referenced by ClearScratchSpace(), LoadTile16FromScratchSpaceImpl(), SaveTile16ToScratchSpace(), scratch_slot(), and scratch_slot().
|
private |
Definition at line 367 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), BuildStampMutations(), BuildStampPreview(), CommitChangesToOverworld(), CopyTile16ToClipboard(), current_tile16(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16Impl(), MarkCurrentTileModified(), PickTile8FromTile16(), RegenerateTile16BitmapFromROM(), RequestTileSwitch(), RunEdit(), SaveLayoutToScratch(), SaveTile16ToROM(), SetCurrentTile(), UpdateBlocksetBitmap(), UpdateOverworldTilemap(), and UpdateROMTile16Data().
|
private |
Definition at line 368 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), CreateRemappedPaletteForViewing(), current_tile8(), PickTile8FromTile16(), PreviewPaletteChange(), set_current_tile8(), and UpdateLivePreview().
|
private |
Definition at line 369 of file tile16_edit_session.h.
Referenced by active_quadrant(), DrawToCurrentTile16Impl(), PickTile8FromTile16(), and set_active_quadrant().
|
private |
Definition at line 370 of file tile16_edit_session.h.
Referenced by edit_mode(), HandleTile16CanvasClick(), and set_edit_mode().
|
private |
Definition at line 371 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), BuildStampPreview(), DrawToCurrentTile16Impl(), mutable_tile8_stamp_size(), set_tile8_stamp_size(), and tile8_stamp_size().
|
private |
Definition at line 372 of file tile16_edit_session.h.
Referenced by LoadTile8(), mutable_tile8_source_display_scale(), and tile8_source_display_scale().
|
private |
Definition at line 373 of file tile16_edit_session.h.
Referenced by current_palette_group(), and mutable_current_palette_group().
|
private |
Definition at line 374 of file tile16_edit_session.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), last_rom_write_count(), and SaveTile16ToROM().
|
private |
Definition at line 375 of file tile16_edit_session.h.
Referenced by jump_to_tile_id(), mutable_jump_to_tile_id(), and SetCurrentTile().
|
private |
Definition at line 376 of file tile16_edit_session.h.
Referenced by current_page(), and set_current_page().
|
private |
Definition at line 377 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), ClearTile16Impl(), CommitChangesToOverworld(), CopyTile16ToClipboard(), current_tile16_data(), current_tile16_data(), DrawToCurrentTile16Impl(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), GetCurrentTile16Data(), LoadTile16FromScratchSpaceImpl(), MarkCurrentTileModified(), PasteTile16FromClipboardImpl(), ReplaceCurrentTile(), RotateTile16Impl(), RunEdit(), SaveTile16ToScratchSpace(), and SetCurrentTile().
|
private |
Definition at line 378 of file tile16_edit_session.h.
Referenced by InitializeBitmaps(), map_blockset_loaded(), and set_map_blockset_loaded().
|
private |
Definition at line 379 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), FillTile16WithTile8Impl(), mutable_x_flip(), PickTile8FromTile16(), and x_flip().
|
private |
Definition at line 380 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), FillTile16WithTile8Impl(), mutable_y_flip(), PickTile8FromTile16(), and y_flip().
|
private |
Definition at line 381 of file tile16_edit_session.h.
Referenced by BuildStampMutations(), FillTile16WithTile8Impl(), mutable_priority_tile(), PickTile8FromTile16(), and priority_tile().
|
private |
Definition at line 382 of file tile16_edit_session.h.
Referenced by AnalyzeTile8SourceData(), ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), BuildStampMutations(), ClearTile16Impl(), current_palette(), CyclePalette(), FillTile16WithTile8Impl(), GetActualPaletteSlotForCurrentTile16(), PickTile8FromTile16(), RefreshAllPalettes(), set_current_palette(), UpdateLivePreview(), UpdateTile8Palette(), and ValidateTile16Data().
|
private |
Definition at line 383 of file tile16_edit_session.h.
Referenced by ApplyPaletteToAllImpl(), ApplyPaletteToQuadrantImpl(), ClearTile16Impl(), DrawToCurrentTile16Impl(), EnableLivePreview(), FillTile16WithTile8Impl(), FlipTile16HorizontalImpl(), FlipTile16VerticalImpl(), live_preview_enabled(), LoadTile16FromScratchSpaceImpl(), PasteTile16FromClipboardImpl(), RotateTile16Impl(), and UpdateLivePreview().
|
private |
Definition at line 384 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), DrawToCurrentTile16Impl(), MarkCurrentTileModified(), PreviewPaletteChange(), and UpdateLivePreview().
|
private |
Definition at line 385 of file tile16_edit_session.h.
Referenced by auto_tile_mode(), and mutable_auto_tile_mode().
|
private |
Definition at line 386 of file tile16_edit_session.h.
Referenced by grid_snap_enabled(), and mutable_grid_snap_enabled().
|
private |
Definition at line 387 of file tile16_edit_session.h.
Referenced by mutable_show_tile_info(), and show_tile_info().
|
private |
Definition at line 388 of file tile16_edit_session.h.
Referenced by mutable_show_palette_preview(), PreviewPaletteChange(), and show_palette_preview().
|
private |
Definition at line 389 of file tile16_edit_session.h.
Referenced by mutable_show_tile_grid(), and show_tile_grid().
|
private |
Definition at line 390 of file tile16_edit_session.h.
Referenced by mutable_show_tile_collision_ids(), and show_tile_collision_ids().
|
private |
Definition at line 391 of file tile16_edit_session.h.
Referenced by highlight_tile8_usage(), and mutable_highlight_tile8_usage().
|
private |
Definition at line 392 of file tile16_edit_session.h.
Referenced by ApplyDefinitions(), CommitAllChanges(), CommitChangesToOverworld(), DiscardAllChanges(), DiscardChanges(), DiscardCurrentTileChanges(), DrawToCurrentTile16Impl(), InitializeBitmaps(), MarkCurrentTileModified(), RebuildTile8UsageCache(), SaveTile16ToROM(), set_tile8_usage_cache_dirty(), and tile8_usage_cache_dirty().
|
private |
Definition at line 393 of file tile16_edit_session.h.
Referenced by mutable_show_palette_settings(), and show_palette_settings().
|
private |
Definition at line 394 of file tile16_edit_session.h.
Referenced by LoadTile8(), mutable_palette_normalization_mask(), and palette_normalization_mask().
|
private |
Definition at line 395 of file tile16_edit_session.h.
Referenced by ApplyPaletteToCurrentTile16Bitmap(), auto_normalize_pixels(), LoadTile8(), mutable_auto_normalize_pixels(), PreviewPaletteChange(), and UpdateLivePreview().
|
private |
Definition at line 396 of file tile16_edit_session.h.
Referenced by CommitAllChanges(), CommitChangesToOverworld(), has_rom_write_history(), and SaveTile16ToROM().
|
private |
Definition at line 397 of file tile16_edit_session.h.
Referenced by LoadLayoutFromScratch(), scroll_to_current(), and set_scroll_to_current().
|
private |
Definition at line 398 of file tile16_edit_session.h.
Referenced by all_tiles_types(), and InitializeBitmaps().