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

Self-contained ImGui UI for editing a single Oracle-of-Secrets- style 2bpp BG3 menu tilemap file, with a live preview rendered from real CHR + palette sources. More...

#include <screen_menu_tilemap_editor.h>

Classes

struct  FileListEntry
 

Public Member Functions

void Draw (Rom *rom, zelda3::GameData *game_data, project::YazeProject *project, UndoManager *undo_manager)
 
bool dirty () const
 
bool loaded () const
 
const std::string & current_path () const
 
absl::Status LoadFileForTesting (const std::string &path)
 
 ~MenuTilemapEditorUI ()
 

Private Types

enum class  Tool { kPaint , kSelect }
 
enum class  ChrSourceKind { kRom , kFile }
 
enum class  PaletteSourceKind {
  kAuto , kSymbol , kAsm , kHud ,
  kFile
}
 

Private Member Functions

void DrawFileBar (Rom *rom, project::YazeProject *project)
 
void RefreshProjectFileList (project::YazeProject *project)
 
absl::Status LoadFile (const std::string &path)
 
absl::Status SaveCurrent ()
 
absl::Status SaveCurrentAs ()
 
absl::Status RevertCurrent ()
 
void CheckExternalChange ()
 
void DrawSourceBar (Rom *rom, zelda3::GameData *game_data, project::YazeProject *project)
 
absl::Status ResolveSources (Rom *rom, zelda3::GameData *game_data)
 
absl::Status ResolvePaletteSource (Rom *rom, zelda3::GameData *game_data, std::string *description)
 
void RebuildRenderTextures ()
 
void SetReferenceImage (const std::vector< uint8_t > &rgba, int width, int height)
 
void DestroyReferenceTexture ()
 
void DrawToolbar ()
 
void DrawMainCanvas ()
 
void DrawTilePicker ()
 
void DrawHoverReadout ()
 
void DrawOverlayControls ()
 
void DrawStatusBar ()
 
void BeginStroke (const std::string &description)
 
void CommitStroke ()
 
void RestoreSnapshot (const std::string &path, const std::vector< uint8_t > &bytes)
 
void PaintCellAt (int row, int col)
 
void EyedropAt (int row, int col)
 

Private Attributes

zelda3::MenuTilemapDocument doc_
 
bool loaded_ = false
 
std::string open_error_
 
std::vector< FileListEntry > project_files_
 
bool project_files_stale_ = true
 
bool project_has_page3_ = false
 
ChrSourceKind chr_source_kind_ = ChrSourceKind::kRom
 
PaletteSourceKind palette_source_kind_ = PaletteSourceKind::kAuto
 
std::string palette_label_ = "Oracle_Menu_Palette"
 
std::string chr_file_path_
 
std::string palette_file_path_
 
std::string last_symbols_path_
 
bool symbols_path_from_project_ = false
 
std::string palette_asm_path_
 
bool palette_asm_from_project_ = false
 
std::string asm_search_key_
 
bool sources_dirty_ = true
 
const Rom * resolved_rom_ = nullptr
 
std::vector< uint8_t > chr_sheet_
 
std::array< gfx::SnesColor, 32 > palette_colors_ {}
 
std::string source_status_
 
bool sources_ready_ = false
 
UndoManager * undo_manager_ = nullptr
 
gfx::Bitmap canvas_bitmap_
 
gfx::Bitmap picker_bitmap_
 
std::vector< uint8_t > picker_indexed_
 
int picker_width_ = 0
 
int picker_height_ = 0
 
gui::Canvas canvas_
 
gui::Canvas picker_canvas_
 
gui::TileSelectorWidget tile_picker_widget_ {"##MenuTilemapPickerWidget"}
 
gui::AdaptiveSheetScaleMode picker_scale_mode_
 
float zoom_ = 2.0f
 
bool show_grid_ = true
 
bool show_priority_tint_ = false
 
ImVec2 last_canvas_screen_origin_ {0.0f, 0.0f}
 
Tool tool_ = Tool::kPaint
 
int selected_tile_id_ = 0
 
int selected_palette_ = 0
 
bool h_flip_ = false
 
bool v_flip_ = false
 
bool priority_ = false
 
uint16_t erase_word_ = 0x0000
 
bool selecting_ = false
 
bool has_selection_ = false
 
ImVec2 select_drag_start_ {-1, -1}
 
zelda3::MenuTilemapDocument::Rect selection_ {}
 
zelda3::MenuTilemapDocument::Clipboard clipboard_
 
bool has_clipboard_ = false
 
bool stroke_active_ = false
 
std::vector< uint8_t > stroke_before_bytes_
 
std::string stroke_description_
 
bool has_hover_ = false
 
int hover_row_ = 0
 
int hover_col_ = 0
 
bool show_ref_overlay_ = false
 
float ref_opacity_ = 0.5f
 
ImVec2 ref_nudge_ {0.0f, 0.0f}
 
std::string ref_image_path_
 
SDL_Texture * ref_texture_ = nullptr
 
int ref_texture_width_ = 0
 
int ref_texture_height_ = 0
 
bool ref_loaded_ = false
 
bool show_wram_overlay_ = false
 
std::string wram_dump_path_
 
gfx::Bitmap wram_bitmap_
 
bool wram_loaded_ = false
 
bool show_dynamic_layer_ = false
 
bool show_reload_prompt_ = false
 
double last_external_check_time_ = -1.0
 

Detailed Description

Self-contained ImGui UI for editing a single Oracle-of-Secrets- style 2bpp BG3 menu tilemap file, with a live preview rendered from real CHR + palette sources.

Owns a zelda3::MenuTilemapDocument (the no-ImGui core model) plus all of the canvas/tool/preview state. ScreenEditor owns one instance and calls Draw() from its "Menu Tilemap (2bpp)" panel; this class pushes its own undo actions onto the UndoManager it's given (ScreenEditType:: kMenuTilemap in screen_undo_actions.h), independent of ScreenEditor's dungeon-map/tile16 undo bookkeeping.

Definition at line 40 of file screen_menu_tilemap_editor.h.

Member Enumeration Documentation

◆ Tool

enum class yaze::editor::MenuTilemapEditorUI::Tool
strongprivate
Enumerator
kPaint 
kSelect 

Definition at line 62 of file screen_menu_tilemap_editor.h.

◆ ChrSourceKind

Enumerator
kRom 
kFile 

Definition at line 125 of file screen_menu_tilemap_editor.h.

◆ PaletteSourceKind

Enumerator
kAuto 
kSymbol 
kAsm 
kHud 
kFile 

Definition at line 130 of file screen_menu_tilemap_editor.h.

Constructor & Destructor Documentation

◆ ~MenuTilemapEditorUI()

yaze::editor::MenuTilemapEditorUI::~MenuTilemapEditorUI ( )

Definition at line 84 of file screen_menu_tilemap_editor.cc.

References DestroyReferenceTexture().

Here is the call graph for this function:

Member Function Documentation

◆ Draw()

◆ dirty()

bool yaze::editor::MenuTilemapEditorUI::dirty ( ) const
inline

◆ loaded()

bool yaze::editor::MenuTilemapEditorUI::loaded ( ) const
inline

◆ current_path()

const std::string & yaze::editor::MenuTilemapEditorUI::current_path ( ) const
inline

Definition at line 50 of file screen_menu_tilemap_editor.h.

References doc_, and yaze::zelda3::MenuTilemapDocument::path().

Referenced by yaze::editor::ScreenEditor::BuildContextSnapshot().

Here is the call graph for this function:

◆ LoadFileForTesting()

absl::Status yaze::editor::MenuTilemapEditorUI::LoadFileForTesting ( const std::string & path)
inline

Definition at line 55 of file screen_menu_tilemap_editor.h.

References LoadFile().

Referenced by yaze::editor::ScreenEditor::LoadMenuTilemapForTesting().

Here is the call graph for this function:

◆ DrawFileBar()

◆ RefreshProjectFileList()

◆ LoadFile()

absl::Status yaze::editor::MenuTilemapEditorUI::LoadFile ( const std::string & path)
private

◆ SaveCurrent()

absl::Status yaze::editor::MenuTilemapEditorUI::SaveCurrent ( )
private

Definition at line 318 of file screen_menu_tilemap_editor.cc.

References doc_, loaded_, and yaze::zelda3::MenuTilemapDocument::Save().

Referenced by Draw(), and DrawFileBar().

Here is the call graph for this function:

◆ SaveCurrentAs()

◆ RevertCurrent()

absl::Status yaze::editor::MenuTilemapEditorUI::RevertCurrent ( )
private

Definition at line 335 of file screen_menu_tilemap_editor.cc.

References doc_, loaded_, RebuildRenderTextures(), RETURN_IF_ERROR, and yaze::zelda3::MenuTilemapDocument::Revert().

Referenced by Draw(), and DrawFileBar().

Here is the call graph for this function:

◆ CheckExternalChange()

void yaze::editor::MenuTilemapEditorUI::CheckExternalChange ( )
private

Definition at line 343 of file screen_menu_tilemap_editor.cc.

References doc_, yaze::zelda3::MenuTilemapDocument::ExternalChangeDetected(), last_external_check_time_, loaded_, and show_reload_prompt_.

Referenced by DrawFileBar().

Here is the call graph for this function:

◆ DrawSourceBar()

◆ ResolveSources()

◆ ResolvePaletteSource()

◆ RebuildRenderTextures()

◆ SetReferenceImage()

void yaze::editor::MenuTilemapEditorUI::SetReferenceImage ( const std::vector< uint8_t > & rgba,
int width,
int height )
private

Definition at line 97 of file screen_menu_tilemap_editor.cc.

References DestroyReferenceTexture(), ref_loaded_, ref_texture_, ref_texture_height_, and ref_texture_width_.

Referenced by DrawOverlayControls().

Here is the call graph for this function:

◆ DestroyReferenceTexture()

void yaze::editor::MenuTilemapEditorUI::DestroyReferenceTexture ( )
private

◆ DrawToolbar()

◆ DrawMainCanvas()

◆ DrawTilePicker()

◆ DrawHoverReadout()

◆ DrawOverlayControls()

◆ DrawStatusBar()

void yaze::editor::MenuTilemapEditorUI::DrawStatusBar ( )
private

◆ BeginStroke()

void yaze::editor::MenuTilemapEditorUI::BeginStroke ( const std::string & description)
private

Definition at line 1054 of file screen_menu_tilemap_editor.cc.

References doc_, yaze::zelda3::MenuTilemapDocument::raw_bytes(), stroke_active_, stroke_before_bytes_, and stroke_description_.

Referenced by DrawMainCanvas(), and DrawToolbar().

Here is the call graph for this function:

◆ CommitStroke()

◆ RestoreSnapshot()

void yaze::editor::MenuTilemapEditorUI::RestoreSnapshot ( const std::string & path,
const std::vector< uint8_t > & bytes )
private

Definition at line 1085 of file screen_menu_tilemap_editor.cc.

References doc_, yaze::zelda3::MenuTilemapDocument::path(), RebuildRenderTextures(), and yaze::zelda3::MenuTilemapDocument::RestoreBytes().

Referenced by CommitStroke().

Here is the call graph for this function:

◆ PaintCellAt()

void yaze::editor::MenuTilemapEditorUI::PaintCellAt ( int row,
int col )
private

Definition at line 1096 of file screen_menu_tilemap_editor.cc.

References doc_, h_flip_, priority_, selected_palette_, selected_tile_id_, yaze::zelda3::MenuTilemapDocument::SetCell(), and v_flip_.

Referenced by DrawMainCanvas().

Here is the call graph for this function:

◆ EyedropAt()

void yaze::editor::MenuTilemapEditorUI::EyedropAt ( int row,
int col )
private

Member Data Documentation

◆ doc_

◆ loaded_

bool yaze::editor::MenuTilemapEditorUI::loaded_ = false
private

◆ open_error_

std::string yaze::editor::MenuTilemapEditorUI::open_error_
private

Definition at line 118 of file screen_menu_tilemap_editor.h.

Referenced by Draw(), and LoadFile().

◆ project_files_

std::vector<FileListEntry> yaze::editor::MenuTilemapEditorUI::project_files_
private

Definition at line 120 of file screen_menu_tilemap_editor.h.

Referenced by DrawFileBar(), and RefreshProjectFileList().

◆ project_files_stale_

bool yaze::editor::MenuTilemapEditorUI::project_files_stale_ = true
private

Definition at line 121 of file screen_menu_tilemap_editor.h.

Referenced by DrawFileBar(), and RefreshProjectFileList().

◆ project_has_page3_

bool yaze::editor::MenuTilemapEditorUI::project_has_page3_ = false
private

Definition at line 122 of file screen_menu_tilemap_editor.h.

Referenced by DrawFileBar(), and RefreshProjectFileList().

◆ chr_source_kind_

ChrSourceKind yaze::editor::MenuTilemapEditorUI::chr_source_kind_ = ChrSourceKind::kRom
private

Definition at line 131 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolveSources().

◆ palette_source_kind_

PaletteSourceKind yaze::editor::MenuTilemapEditorUI::palette_source_kind_ = PaletteSourceKind::kAuto
private

Definition at line 132 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolvePaletteSource().

◆ palette_label_

std::string yaze::editor::MenuTilemapEditorUI::palette_label_ = "Oracle_Menu_Palette"
private

Definition at line 133 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolvePaletteSource().

◆ chr_file_path_

std::string yaze::editor::MenuTilemapEditorUI::chr_file_path_
private

Definition at line 134 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolveSources().

◆ palette_file_path_

std::string yaze::editor::MenuTilemapEditorUI::palette_file_path_
private

Definition at line 135 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolvePaletteSource().

◆ last_symbols_path_

std::string yaze::editor::MenuTilemapEditorUI::last_symbols_path_
private

Definition at line 136 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolvePaletteSource().

◆ symbols_path_from_project_

bool yaze::editor::MenuTilemapEditorUI::symbols_path_from_project_ = false
private

Definition at line 137 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar().

◆ palette_asm_path_

std::string yaze::editor::MenuTilemapEditorUI::palette_asm_path_
private

Definition at line 139 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolvePaletteSource().

◆ palette_asm_from_project_

bool yaze::editor::MenuTilemapEditorUI::palette_asm_from_project_ = false
private

Definition at line 140 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar().

◆ asm_search_key_

std::string yaze::editor::MenuTilemapEditorUI::asm_search_key_
private

Definition at line 141 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar().

◆ sources_dirty_

bool yaze::editor::MenuTilemapEditorUI::sources_dirty_ = true
private

Definition at line 145 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolveSources().

◆ resolved_rom_

const Rom* yaze::editor::MenuTilemapEditorUI::resolved_rom_ = nullptr
private

Definition at line 146 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar().

◆ chr_sheet_

std::vector<uint8_t> yaze::editor::MenuTilemapEditorUI::chr_sheet_
private

◆ palette_colors_

std::array<gfx::SnesColor, 32> yaze::editor::MenuTilemapEditorUI::palette_colors_ {}
private

◆ source_status_

std::string yaze::editor::MenuTilemapEditorUI::source_status_
private

Definition at line 149 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolveSources().

◆ sources_ready_

bool yaze::editor::MenuTilemapEditorUI::sources_ready_ = false
private

Definition at line 150 of file screen_menu_tilemap_editor.h.

Referenced by DrawSourceBar(), and ResolveSources().

◆ undo_manager_

UndoManager* yaze::editor::MenuTilemapEditorUI::undo_manager_ = nullptr
private

Definition at line 153 of file screen_menu_tilemap_editor.h.

Referenced by CommitStroke(), and Draw().

◆ canvas_bitmap_

gfx::Bitmap yaze::editor::MenuTilemapEditorUI::canvas_bitmap_
private

Definition at line 156 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and RebuildRenderTextures().

◆ picker_bitmap_

gfx::Bitmap yaze::editor::MenuTilemapEditorUI::picker_bitmap_
private

Definition at line 157 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), and RebuildRenderTextures().

◆ picker_indexed_

std::vector<uint8_t> yaze::editor::MenuTilemapEditorUI::picker_indexed_
private

Definition at line 158 of file screen_menu_tilemap_editor.h.

Referenced by RebuildRenderTextures().

◆ picker_width_

int yaze::editor::MenuTilemapEditorUI::picker_width_ = 0
private

Definition at line 159 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), and RebuildRenderTextures().

◆ picker_height_

int yaze::editor::MenuTilemapEditorUI::picker_height_ = 0
private

Definition at line 160 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), and RebuildRenderTextures().

◆ canvas_

gui::Canvas yaze::editor::MenuTilemapEditorUI::canvas_
private
Initial value:
{"##MenuTilemapCanvas", ImVec2(256, 256),

Definition at line 163 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas().

◆ picker_canvas_

gui::Canvas yaze::editor::MenuTilemapEditorUI::picker_canvas_
private
Initial value:
{"##MenuTilemapPicker", ImVec2(128, 448),

Definition at line 165 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker().

◆ tile_picker_widget_

gui::TileSelectorWidget yaze::editor::MenuTilemapEditorUI::tile_picker_widget_ {"##MenuTilemapPickerWidget"}
private

Definition at line 170 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker().

◆ picker_scale_mode_

gui::AdaptiveSheetScaleMode yaze::editor::MenuTilemapEditorUI::picker_scale_mode_
private

◆ zoom_

float yaze::editor::MenuTilemapEditorUI::zoom_ = 2.0f
private

Definition at line 173 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawToolbar().

◆ show_grid_

bool yaze::editor::MenuTilemapEditorUI::show_grid_ = true
private

Definition at line 174 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawToolbar().

◆ show_priority_tint_

bool yaze::editor::MenuTilemapEditorUI::show_priority_tint_ = false
private

Definition at line 175 of file screen_menu_tilemap_editor.h.

Referenced by DrawToolbar().

◆ last_canvas_screen_origin_

ImVec2 yaze::editor::MenuTilemapEditorUI::last_canvas_screen_origin_ {0.0f, 0.0f}
private

Definition at line 176 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas().

◆ tool_

Tool yaze::editor::MenuTilemapEditorUI::tool_ = Tool::kPaint
private

Definition at line 179 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawToolbar().

◆ selected_tile_id_

int yaze::editor::MenuTilemapEditorUI::selected_tile_id_ = 0
private

Definition at line 180 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), DrawToolbar(), EyedropAt(), and PaintCellAt().

◆ selected_palette_

int yaze::editor::MenuTilemapEditorUI::selected_palette_ = 0
private

◆ h_flip_

bool yaze::editor::MenuTilemapEditorUI::h_flip_ = false
private

Definition at line 182 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), DrawToolbar(), EyedropAt(), and PaintCellAt().

◆ v_flip_

bool yaze::editor::MenuTilemapEditorUI::v_flip_ = false
private

Definition at line 183 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), DrawToolbar(), EyedropAt(), and PaintCellAt().

◆ priority_

bool yaze::editor::MenuTilemapEditorUI::priority_ = false
private

Definition at line 184 of file screen_menu_tilemap_editor.h.

Referenced by DrawTilePicker(), DrawToolbar(), EyedropAt(), and PaintCellAt().

◆ erase_word_

uint16_t yaze::editor::MenuTilemapEditorUI::erase_word_ = 0x0000
private

Definition at line 185 of file screen_menu_tilemap_editor.h.

Referenced by DrawToolbar().

◆ selecting_

bool yaze::editor::MenuTilemapEditorUI::selecting_ = false
private

Definition at line 188 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas().

◆ has_selection_

bool yaze::editor::MenuTilemapEditorUI::has_selection_ = false
private

Definition at line 189 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), DrawToolbar(), and LoadFile().

◆ select_drag_start_

ImVec2 yaze::editor::MenuTilemapEditorUI::select_drag_start_ {-1, -1}
private

Definition at line 190 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas().

◆ selection_

zelda3::MenuTilemapDocument::Rect yaze::editor::MenuTilemapEditorUI::selection_ {}
private

Definition at line 191 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawToolbar().

◆ clipboard_

zelda3::MenuTilemapDocument::Clipboard yaze::editor::MenuTilemapEditorUI::clipboard_
private

Definition at line 192 of file screen_menu_tilemap_editor.h.

Referenced by DrawToolbar().

◆ has_clipboard_

bool yaze::editor::MenuTilemapEditorUI::has_clipboard_ = false
private

Definition at line 193 of file screen_menu_tilemap_editor.h.

Referenced by DrawToolbar().

◆ stroke_active_

bool yaze::editor::MenuTilemapEditorUI::stroke_active_ = false
private

Definition at line 196 of file screen_menu_tilemap_editor.h.

Referenced by BeginStroke(), CommitStroke(), and DrawMainCanvas().

◆ stroke_before_bytes_

std::vector<uint8_t> yaze::editor::MenuTilemapEditorUI::stroke_before_bytes_
private

Definition at line 197 of file screen_menu_tilemap_editor.h.

Referenced by BeginStroke(), and CommitStroke().

◆ stroke_description_

std::string yaze::editor::MenuTilemapEditorUI::stroke_description_
private

Definition at line 198 of file screen_menu_tilemap_editor.h.

Referenced by BeginStroke(), and CommitStroke().

◆ has_hover_

bool yaze::editor::MenuTilemapEditorUI::has_hover_ = false
private

Definition at line 201 of file screen_menu_tilemap_editor.h.

Referenced by DrawHoverReadout(), and DrawMainCanvas().

◆ hover_row_

int yaze::editor::MenuTilemapEditorUI::hover_row_ = 0
private

Definition at line 202 of file screen_menu_tilemap_editor.h.

Referenced by DrawHoverReadout(), and DrawMainCanvas().

◆ hover_col_

int yaze::editor::MenuTilemapEditorUI::hover_col_ = 0
private

Definition at line 203 of file screen_menu_tilemap_editor.h.

Referenced by DrawHoverReadout(), and DrawMainCanvas().

◆ show_ref_overlay_

bool yaze::editor::MenuTilemapEditorUI::show_ref_overlay_ = false
private

Definition at line 206 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ ref_opacity_

float yaze::editor::MenuTilemapEditorUI::ref_opacity_ = 0.5f
private

Definition at line 207 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ ref_nudge_

ImVec2 yaze::editor::MenuTilemapEditorUI::ref_nudge_ {0.0f, 0.0f}
private

Definition at line 208 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ ref_image_path_

std::string yaze::editor::MenuTilemapEditorUI::ref_image_path_
private

Definition at line 209 of file screen_menu_tilemap_editor.h.

Referenced by DrawOverlayControls().

◆ ref_texture_

SDL_Texture* yaze::editor::MenuTilemapEditorUI::ref_texture_ = nullptr
private

◆ ref_texture_width_

int yaze::editor::MenuTilemapEditorUI::ref_texture_width_ = 0
private

◆ ref_texture_height_

int yaze::editor::MenuTilemapEditorUI::ref_texture_height_ = 0
private

◆ ref_loaded_

bool yaze::editor::MenuTilemapEditorUI::ref_loaded_ = false
private

Definition at line 213 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and SetReferenceImage().

◆ show_wram_overlay_

bool yaze::editor::MenuTilemapEditorUI::show_wram_overlay_ = false
private

Definition at line 215 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ wram_dump_path_

std::string yaze::editor::MenuTilemapEditorUI::wram_dump_path_
private

Definition at line 216 of file screen_menu_tilemap_editor.h.

Referenced by DrawOverlayControls().

◆ wram_bitmap_

gfx::Bitmap yaze::editor::MenuTilemapEditorUI::wram_bitmap_
private

Definition at line 217 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ wram_loaded_

bool yaze::editor::MenuTilemapEditorUI::wram_loaded_ = false
private

Definition at line 218 of file screen_menu_tilemap_editor.h.

Referenced by DrawMainCanvas(), and DrawOverlayControls().

◆ show_dynamic_layer_

bool yaze::editor::MenuTilemapEditorUI::show_dynamic_layer_ = false
private

Definition at line 220 of file screen_menu_tilemap_editor.h.

Referenced by DrawOverlayControls(), and RebuildRenderTextures().

◆ show_reload_prompt_

bool yaze::editor::MenuTilemapEditorUI::show_reload_prompt_ = false
private

Definition at line 223 of file screen_menu_tilemap_editor.h.

Referenced by CheckExternalChange(), Draw(), and LoadFile().

◆ last_external_check_time_

double yaze::editor::MenuTilemapEditorUI::last_external_check_time_ = -1.0
private

Definition at line 224 of file screen_menu_tilemap_editor.h.

Referenced by CheckExternalChange().


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