#include <palette_reorder_control.h>
Definition at line 15 of file palette_reorder_control.h.
◆ Apply
Initial value: std::function<absl::Status(const std::vector<size_t>&,
std::array< uint8_t, 8 > PalettePermutation
Definition at line 17 of file palette_reorder_control.h.
◆ Draw()
Definition at line 48 of file palette_reorder_control.cc.
References yaze::gui::AutoRegisterLastItem(), Begin(), yaze::gui::ConvertSnesColorToImVec4(), error_, yaze::editor::PixelSelection::is_floating, order_, yaze::editor::PlanPalettePixelPermutation(), selected_slot_, yaze::editor::GraphicsEditorState::selection, source_, SourceChanged(), yaze::editor::GraphicsEditorState::SourceTarget(), and whole_pattern_.
Referenced by yaze::editor::PixelEditorPanel::DrawColorPicker().
◆ Begin()
Definition at line 16 of file palette_reorder_control.cc.
References yaze::gfx::PaletteManager::ColorRevision(), error_, yaze::editor::GraphicsEditorState::game_data, yaze::gfx::PaletteManager::Get(), order_, palette_revision_, yaze::zelda3::GraphicsSheetStore::Revision(), selected_slot_, sheet_revisions_, yaze::zelda3::GraphicsSheetStoreHolder::sheet_store, source_, yaze::editor::GraphicsEditorState::source_context, yaze::editor::GraphicsEditorState::source_context_revision, source_revision_, and whole_pattern_.
Referenced by Draw().
◆ SourceChanged()
| bool yaze::editor::PaletteReorderControl::SourceChanged |
( |
const GraphicsEditorState & | state | ) |
const |
|
private |
Definition at line 31 of file palette_reorder_control.cc.
References yaze::gfx::PaletteManager::ColorRevision(), yaze::editor::GraphicsEditorState::game_data, yaze::gfx::PaletteManager::Get(), palette_revision_, yaze::zelda3::GraphicsSheetStore::Revision(), sheet_revisions_, yaze::zelda3::GraphicsSheetStoreHolder::sheet_store, source_, yaze::editor::GraphicsEditorState::source_context, yaze::editor::GraphicsEditorState::source_context_revision, and source_revision_.
Referenced by Draw().
◆ source_
◆ source_revision_
| uint64_t yaze::editor::PaletteReorderControl::source_revision_ = 0 |
|
private |
◆ palette_revision_
| uint64_t yaze::editor::PaletteReorderControl::palette_revision_ = 0 |
|
private |
◆ sheet_revisions_
| std::map<uint16_t, uint64_t> yaze::editor::PaletteReorderControl::sheet_revisions_ |
|
private |
◆ order_
◆ selected_slot_
| int yaze::editor::PaletteReorderControl::selected_slot_ = -1 |
|
private |
◆ whole_pattern_
| bool yaze::editor::PaletteReorderControl::whole_pattern_ = false |
|
private |
◆ error_
| std::string yaze::editor::PaletteReorderControl::error_ |
|
private |
The documentation for this class was generated from the following files: