yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::PaletteReorderControl Class Reference

#include <palette_reorder_control.h>

Public Types

using Apply
 

Public Member Functions

void Draw (GraphicsEditorState &state, const Apply &apply, bool busy)
 

Private Member Functions

void Begin (const GraphicsEditorState &state)
 
bool SourceChanged (const GraphicsEditorState &state) const
 

Private Attributes

std::optional< GraphicsEditContext > source_
 
uint64_t source_revision_ = 0
 
uint64_t palette_revision_ = 0
 
std::map< uint16_t, uint64_t > sheet_revisions_
 
PalettePermutation order_ {0, 1, 2, 3, 4, 5, 6, 7}
 
int selected_slot_ = -1
 
bool whole_pattern_ = false
 
std::string error_
 

Detailed Description

Definition at line 15 of file palette_reorder_control.h.

Member Typedef Documentation

◆ 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.

Member Function Documentation

◆ Draw()

◆ Begin()

◆ SourceChanged()

Member Data Documentation

◆ source_

std::optional<GraphicsEditContext> yaze::editor::PaletteReorderControl::source_
private

Definition at line 25 of file palette_reorder_control.h.

Referenced by Begin(), Draw(), and SourceChanged().

◆ source_revision_

uint64_t yaze::editor::PaletteReorderControl::source_revision_ = 0
private

Definition at line 26 of file palette_reorder_control.h.

Referenced by Begin(), and SourceChanged().

◆ palette_revision_

uint64_t yaze::editor::PaletteReorderControl::palette_revision_ = 0
private

Definition at line 27 of file palette_reorder_control.h.

Referenced by Begin(), and SourceChanged().

◆ sheet_revisions_

std::map<uint16_t, uint64_t> yaze::editor::PaletteReorderControl::sheet_revisions_
private

Definition at line 28 of file palette_reorder_control.h.

Referenced by Begin(), and SourceChanged().

◆ order_

PalettePermutation yaze::editor::PaletteReorderControl::order_ {0, 1, 2, 3, 4, 5, 6, 7}
private

Definition at line 30 of file palette_reorder_control.h.

Referenced by Begin(), and Draw().

◆ selected_slot_

int yaze::editor::PaletteReorderControl::selected_slot_ = -1
private

Definition at line 31 of file palette_reorder_control.h.

Referenced by Begin(), and Draw().

◆ whole_pattern_

bool yaze::editor::PaletteReorderControl::whole_pattern_ = false
private

Definition at line 32 of file palette_reorder_control.h.

Referenced by Begin(), and Draw().

◆ error_

std::string yaze::editor::PaletteReorderControl::error_
private

Definition at line 33 of file palette_reorder_control.h.

Referenced by Begin(), and Draw().


The documentation for this class was generated from the following files: