1#ifndef YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_EDITOR_STATE_H
2#define YAZE_APP_EDITOR_GRAPHICS_GRAPHICS_EDITOR_STATE_H
12#include "imgui/imgui.h"
149 for (
auto sheet_id : sheet_ids) {
174 const std::string& label =
"",
175 double duration_secs = 3.0) {
223 default:
return "Unknown";
Shared state between GraphicsEditor panel components.
bool show_tile_boundaries
std::function< void(uint16_t)> on_sheet_modified
void MarkSheetModified(uint16_t sheet_id)
Mark a sheet as modified for save tracking.
std::function< void()> on_tool_changed
uint8_t current_color_index
std::set< uint16_t > selected_sheets
void HighlightTile(uint16_t sheet_id, uint16_t tile_index, const std::string &label="", double duration_secs=3.0)
Highlight a tile in the current sheet for quick visual focus.
bool show_pixel_info_tooltip
bool show_transparency_grid
void SetZoom(float zoom)
Set zoom level with clamping.
std::set< uint16_t > modified_sheets
std::function< void(uint16_t)> on_sheet_selected
bool show_cursor_crosshair
uint16_t current_sheet_id
std::set< uint16_t > open_sheets
const char * GetToolName() const
Get tool name for status display.
bool HasUnsavedChanges() const
Check if any sheets have unsaved changes.
void SelectSheet(uint16_t sheet_id)
Select a sheet for editing.
void CloseSheet(uint16_t sheet_id)
Close a sheet tab.
uint64_t sub_palette_index
TileHighlight tile_highlight
void SetTool(PixelTool tool)
Set the current editing tool.
void ClearModifiedSheets()
Clear modification tracking (after save)
uint64_t palette_group_index
void ClearModifiedSheets(const std::set< uint16_t > &sheet_ids)
Clear specific sheets from modification tracking.
std::function< void()> on_palette_changed
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
PixelTool
Pixel editing tool types for the graphics editor.
Selection data for copy/paste operations.
std::vector< uint8_t > pixel_data
Transient highlight for focusing a tile in the pixel editor.