1#ifndef YAZE_APP_EDITOR_UI_SELECTION_PROPERTIES_PANEL_H_
2#define YAZE_APP_EDITOR_UI_SELECTION_PROPERTIES_PANEL_H_
9#include "imgui/imgui.h"
155 int min_val = 0,
int max_val = 512);
158 const char* tooltip =
nullptr);
160 const char* tooltip =
nullptr);
162 const char*
const items[],
int items_count);
164 const char*
const flag_names[],
int flag_count);
166 void DrawReadOnlyHex(
const char* label, uint32_t value,
int digits = 4);
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Full-editing properties panel for selected entities.
void DrawGraphicsSheetProperties()
void DrawDungeonEntranceProperties()
void SetChangeCallback(ChangeCallback callback)
bool DrawByteProperty(const char *label, uint8_t *value, const char *tooltip=nullptr)
ChangeCallback on_change_
void DrawDungeonRoomProperties()
bool DrawFlagsProperty(const char *label, uint8_t *flags, const char *const flag_names[], int flag_count)
void DrawOverworldExitProperties()
void DrawOverworldItemProperties()
void DrawOverworldMapProperties()
bool DrawPositionEditor(const char *label, int *x, int *y, int min_val=0, int max_val=512)
void DrawOverworldTileProperties()
const SelectionContext & GetSelection() const
Get the current selection context.
SelectionContext selection_
void DrawReadOnlyText(const char *label, const char *value)
void DrawOverworldSpriteProperties()
SelectionPropertiesPanel()=default
SelectionPropertiesPanel(const SelectionPropertiesPanel &)=delete
bool DrawSizeEditor(const char *label, int *width, int *height)
std::function< void(const SelectionContext &)> ChangeCallback
SelectionPropertiesPanel & operator=(const SelectionPropertiesPanel &)=delete
~SelectionPropertiesPanel()=default
bool DrawWordProperty(const char *label, uint16_t *value, const char *tooltip=nullptr)
void DrawDungeonObjectProperties()
void DrawDungeonSpriteProperties()
void DrawPaletteProperties()
bool HasSelection() const
Check if there's an active selection.
bool DrawComboProperty(const char *label, int *current_item, const char *const items[], int items_count)
void DrawOverworldEntranceProperties()
void ClearSelection()
Clear the current selection.
void Draw()
Draw the properties panel content.
void DrawReadOnlyHex(const char *label, uint32_t value, int digits=4)
void DrawPropertyHeader(const char *icon, const char *title)
void SetSelection(const SelectionContext &context)
Set the current selection to display/edit.
const char * GetSelectionTypeName(SelectionType type)
Get a human-readable name for a selection type.
SelectionType
Types of entities that can be selected and edited.
Holds information about the current selection.