Base class for palette group editing cards. More...
#include <palette_group_panel.h>
Inherits yaze::editor::WindowContent.
Inherited by yaze::editor::DungeonMainPalettePanel, yaze::editor::EquipmentPalettePanel, yaze::editor::OverworldAnimatedPalettePanel, yaze::editor::OverworldMainPalettePanel, yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, and yaze::editor::SpritesAux3PalettePanel.
Public Member Functions | |
| PaletteGroupPanel (const std::string &group_name, const std::string &display_name, Rom *rom, zelda3::GameData *game_data=nullptr) | |
| Construct a new Palette Group Panel. | |
| void | SetGameData (zelda3::GameData *game_data) |
| virtual | ~PaletteGroupPanel ()=default |
| void | Draw (bool *p_open) override |
| Draw the card's ImGui UI. | |
| void | DrawEmbedded () |
| std::string | GetId () const override |
| Unique identifier for this panel. | |
| std::string | GetDisplayName () const override |
| Human-readable name shown in menus and title bars. | |
| std::string | GetIcon () const override |
| Material Design icon for this panel. | |
| std::string | GetEditorCategory () const override |
| Editor category this panel belongs to. | |
| WindowPresentationPolicy | GetPresentationPolicy () const override |
| How this content is hosted and advertised by workspace chrome. | |
| int | GetPriority () const override |
| Get display priority for menu ordering. | |
| void | Show () |
| void | Hide () |
| bool | IsVisible () const |
| bool * | visibility_flag () |
| void | SetToastManager (ToastManager *toast_manager) |
| void | SetProject (const project::YazeProject *project) |
| bool | IsOwnedByRom (const Rom *rom) const |
| absl::Status | SaveToRom () |
| Save all modified palettes to ROM. | |
| void | DiscardChanges () |
| Discard all unsaved changes. | |
| void | ResetPalette (int palette_index) |
| Reset a specific palette to original ROM values. | |
| void | ResetColor (int palette_index, int color_index) |
| Reset a specific color to original ROM value. | |
| void | SetColor (int palette_index, int color_index, const gfx::SnesColor &new_color) |
| Set a color value (records change for undo) | |
| void | Undo () |
| void | Redo () |
| bool | CanUndo () const |
| bool | CanRedo () const |
| void | ClearHistory () |
| bool | HasUnsavedChanges () const |
| bool | IsPaletteModified (int palette_index) const |
| bool | IsColorModified (int palette_index, int color_index) const |
| int | GetSelectedPaletteIndex () const |
| void | SetSelectedPaletteIndex (int index) |
| int | GetSelectedColorIndex () const |
| void | SetSelectedColorIndex (int index) |
| std::string | ExportToJson () const |
| absl::Status | ImportFromJson (const std::string &json) |
| std::string | ExportToClipboard () const |
| absl::Status | ImportFromClipboard () |
Public Member Functions inherited from yaze::editor::WindowContent | |
| virtual | ~WindowContent ()=default |
| virtual void | OnFirstDraw () |
| Called once before the first Draw() in a session. | |
| virtual bool | RequiresLazyInit () const |
| Whether this panel uses lazy initialization. | |
| void | InvalidateLazyInit () |
| Reset lazy init state so OnFirstDraw() runs again. | |
| virtual void | OnOpen () |
| Called when panel becomes visible. | |
| virtual void | OnClose () |
| Called when panel is hidden. | |
| virtual void | OnFocus () |
| Called when panel receives focus. | |
| virtual WindowLifecycle | GetWindowLifecycle () const |
| Get the lifecycle category for this window. | |
| virtual WindowContextScope | GetContextScope () const |
| Optional context binding for this window (room/selection/etc) | |
| virtual WindowScope | GetScope () const |
| Get the registration scope for this window. | |
| virtual bool | IsEnabled () const |
| Check if this panel is currently enabled. | |
| virtual std::string | GetDisabledTooltip () const |
| Get tooltip text when panel is disabled. | |
| virtual std::string | GetShortcutHint () const |
| Get keyboard shortcut hint for display. | |
| virtual std::string | GetWorkflowGroup () const |
| Optional workflow group for hack-centric actions. | |
| virtual std::string | GetWorkflowLabel () const |
| Optional workflow label for menus/command palette. | |
| virtual std::string | GetWorkflowDescription () const |
| Optional workflow description for menus/command palette. | |
| virtual int | GetWorkflowPriority () const |
| Optional workflow ordering priority (lower sorts first). | |
| virtual float | GetPreferredWidth () const |
| Get preferred width for this panel (optional) | |
| virtual bool | HasExactPreferredWidth () const |
| Whether GetPreferredWidth() is an exact content width. | |
| virtual float | GetPreferredHeight () const |
| Get preferred height for this panel (optional) | |
| virtual bool | PrefersFloating () const |
| virtual bool | PreferAutoHideTabBar () const |
| Whether the dock node hosting this panel should auto-hide its tab bar. | |
| virtual bool | IsVisibleByDefault () const |
| Whether this panel should be visible by default. | |
| virtual std::string | GetParentPanelId () const |
| Get parent panel ID for cascade behavior. | |
| virtual bool | CascadeCloseChildren () const |
| Whether closing this panel should close child panels. | |
| void | DrawWithLazyInit (bool *p_open) |
| Execute lazy initialization if needed, then call Draw() | |
Protected Member Functions | |
| virtual gfx::PaletteGroup * | GetPaletteGroup ()=0 |
| Get the palette group for this card. | |
| virtual const gfx::PaletteGroup * | GetPaletteGroup () const =0 |
| virtual const PaletteGroupMetadata & | GetMetadata () const =0 |
| Get metadata for this palette group. | |
| void | DrawPaletteGrid () |
| Draw the palette grid specific to this palette type. | |
| void | DrawContent (bool embedded) |
| virtual int | GetColorsPerRow () const =0 |
| Get the number of colors per row for grid layout. | |
| virtual void | DrawCustomToolbarButtons () |
| Draw additional toolbar buttons (called after standard buttons) | |
| virtual void | DrawCustomPanels () |
| Draw additional panels (called after main content) | |
| void | DrawToolbar () |
| Draw standard toolbar with save/discard/undo/redo. | |
| void | DrawPaletteSelector () |
| Draw palette selector dropdown. | |
| void | DrawColorPicker () |
| Draw color picker for selected color. | |
| void | DrawColorInfo () |
| Draw color info panel with RGB/SNES/Hex values. | |
| void | DrawMetadataInfo () |
| Draw palette metadata info panel. | |
| void | DrawBatchOperationsPopup () |
| Draw batch operations popup. | |
| gfx::SnesPalette * | GetMutablePalette (int index) |
| Get mutable palette by index. | |
| gfx::SnesColor | GetOriginalColor (int palette_index, int color_index) const |
| Get original color from ROM (for reset/comparison) | |
| bool | IsManagedSession () const |
| Return true only while PaletteManager is bound to this panel's session. | |
| void | MarkModified (int palette_index, int color_index) |
| Mark palette as modified. | |
| void | ClearModified (int palette_index) |
| Clear modified flags for palette. | |
Protected Member Functions inherited from yaze::editor::WindowContent | |
| void | InvalidateCache () |
| Invalidate all cached computations. | |
| template<typename T > | |
| T & | GetCached (const std::string &key, std::function< T()> compute) |
| Get or compute a cached value. | |
| bool | IsCacheValid () const |
| Check if cache has been invalidated. | |
| void | ClearCache () |
| Clear all cached values (more aggressive than InvalidateCache) | |
Protected Attributes | |
| std::string | group_name_ |
| std::string | display_name_ |
| Rom * | rom_ |
| zelda3::GameData * | game_data_ = nullptr |
| const project::YazeProject * | project_ = nullptr |
| bool | show_ = false |
| int | selected_palette_ = 0 |
| int | selected_color_ = -1 |
| ImGuiID | active_picker_ = 0 |
| bool | picker_cancelled_ = false |
| bool | show_snes_format_ = true |
| bool | show_hex_format_ = true |
| ToastManager * | toast_manager_ = nullptr |
Base class for palette group editing cards.
Provides common functionality for all palette group editors:
Derived classes implement specific grid layouts and palette access.
Definition at line 76 of file palette_group_panel.h.
| yaze::editor::PaletteGroupPanel::PaletteGroupPanel | ( | const std::string & | group_name, |
| const std::string & | display_name, | ||
| Rom * | rom, | ||
| zelda3::GameData * | game_data = nullptr ) |
Construct a new Palette Group Panel.
| group_name | Internal palette group name (e.g., "ow_main", "dungeon_main") |
| display_name | Human-readable name for UI |
| rom | ROM instance for reading/writing palettes |
| game_data | GameData instance for palette access |
Definition at line 137 of file palette_group_panel.cc.
|
virtualdefault |
|
inline |
Definition at line 90 of file palette_group_panel.h.
References game_data_.
|
overridevirtual |
Draw the card's ImGui UI.
Draw the card's ImGui UI
Implements yaze::editor::WindowContent.
Definition at line 149 of file palette_group_panel.cc.
References DrawContent().

| void yaze::editor::PaletteGroupPanel::DrawEmbedded | ( | ) |
Definition at line 153 of file palette_group_panel.cc.
References DrawContent().

|
inlineoverridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::WindowContent.
Definition at line 107 of file palette_group_panel.h.
References group_name_.
|
inlineoverridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::WindowContent.
Definition at line 108 of file palette_group_panel.h.
References display_name_.
|
inlineoverridevirtual |
Material Design icon for this panel.
Implements yaze::editor::WindowContent.
Reimplemented in yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, and yaze::editor::SpritesAux3PalettePanel.
Definition at line 109 of file palette_group_panel.h.
References ICON_MD_PALETTE.
|
inlineoverridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::WindowContent.
Definition at line 112 of file palette_group_panel.h.
|
inlineoverridevirtual |
How this content is hosted and advertised by workspace chrome.
Every panel must override this and return one of the named policies (CoreWorkspace, EmbeddedTool, OptionalPopOut, Diagnostic). The base implementation returns an undeclared policy that keeps the historical listed pop-out behavior, but the panel admission audit (test/unit/editor/panel_admission_test.cc) fails until the panel chooses. See docs/internal/architecture/editor-ui-module-pattern.md, "Panel admission".
Reimplemented from yaze::editor::WindowContent.
Definition at line 114 of file palette_group_panel.h.
References yaze::editor::WindowPresentationPolicy::OptionalPopOut().

|
inlineoverridevirtual |
Get display priority for menu ordering.
Reimplemented from yaze::editor::WindowContent.
Reimplemented in yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, and yaze::editor::SpritesAux3PalettePanel.
Definition at line 117 of file palette_group_panel.h.
|
inline |
Definition at line 123 of file palette_group_panel.h.
References show_.
|
inline |
Definition at line 124 of file palette_group_panel.h.
References show_.
|
inline |
Definition at line 125 of file palette_group_panel.h.
References show_.
|
inline |
Definition at line 126 of file palette_group_panel.h.
References show_.
|
inline |
Definition at line 128 of file palette_group_panel.h.
References toast_manager_.
|
inline |
Definition at line 131 of file palette_group_panel.h.
References project_.
|
inline |
Definition at line 132 of file palette_group_panel.h.
References rom_.
| absl::Status yaze::editor::PaletteGroupPanel::SaveToRom | ( | ) |
Save all modified palettes to ROM.
Definition at line 686 of file palette_group_panel.cc.
References display_name_, yaze::gfx::PaletteManager::Get(), group_name_, yaze::project::YazeProject::hack_manifest, IsManagedSession(), yaze::core::HackManifest::loaded(), project_, yaze::project::YazeProject::rom_metadata, toast_manager_, yaze::editor::ValidateHackManifestSaveConflicts(), and yaze::project::RomMetadata::write_policy.
Referenced by DrawToolbar().

| void yaze::editor::PaletteGroupPanel::DiscardChanges | ( | ) |
Discard all unsaved changes.
Definition at line 709 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::DiscardGroup(), yaze::gfx::PaletteManager::Get(), group_name_, IsManagedSession(), and selected_color_.
Referenced by DrawBatchOperationsPopup(), and DrawToolbar().

| void yaze::editor::PaletteGroupPanel::ResetPalette | ( | int | palette_index | ) |
Reset a specific palette to original ROM values.
Definition at line 720 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, IsManagedSession(), and yaze::gfx::PaletteManager::ResetPalette().
Referenced by DrawPaletteSelector().

| void yaze::editor::PaletteGroupPanel::ResetColor | ( | int | palette_index, |
| int | color_index ) |
Reset a specific color to original ROM value.
Definition at line 728 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, IsManagedSession(), and yaze::gfx::PaletteManager::ResetColor().
Referenced by DrawColorPicker().

| void yaze::editor::PaletteGroupPanel::SetColor | ( | int | palette_index, |
| int | color_index, | ||
| const gfx::SnesColor & | new_color ) |
Set a color value (records change for undo)
Definition at line 663 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, IsManagedSession(), yaze::editor::kError, yaze::gfx::PaletteManager::SetColor(), yaze::editor::ToastManager::Show(), and toast_manager_.
Referenced by DrawColorPicker().

| void yaze::editor::PaletteGroupPanel::Undo | ( | ) |
Definition at line 739 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), IsManagedSession(), and yaze::gfx::PaletteManager::Undo().
Referenced by DrawToolbar().

| void yaze::editor::PaletteGroupPanel::Redo | ( | ) |
Definition at line 747 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), IsManagedSession(), and yaze::gfx::PaletteManager::Redo().
Referenced by DrawToolbar().

| bool yaze::editor::PaletteGroupPanel::CanUndo | ( | ) | const |
Definition at line 792 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::CanUndo(), yaze::gfx::PaletteManager::Get(), and IsManagedSession().

| bool yaze::editor::PaletteGroupPanel::CanRedo | ( | ) | const |
Definition at line 800 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::CanRedo(), yaze::gfx::PaletteManager::Get(), and IsManagedSession().

| void yaze::editor::PaletteGroupPanel::ClearHistory | ( | ) |
Definition at line 755 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::ClearHistory(), yaze::gfx::PaletteManager::Get(), and IsManagedSession().

| bool yaze::editor::PaletteGroupPanel::HasUnsavedChanges | ( | ) | const |
Definition at line 784 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, yaze::gfx::PaletteManager::IsGroupModified(), and IsManagedSession().

| bool yaze::editor::PaletteGroupPanel::IsPaletteModified | ( | int | palette_index | ) | const |
Definition at line 765 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, IsManagedSession(), and yaze::gfx::PaletteManager::IsPaletteModified().
Referenced by DrawPaletteSelector(), and DrawToolbar().

| bool yaze::editor::PaletteGroupPanel::IsColorModified | ( | int | palette_index, |
| int | color_index ) const |
Definition at line 774 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), group_name_, yaze::gfx::PaletteManager::IsColorModified(), and IsManagedSession().
Referenced by DrawColorPicker(), and DrawPaletteGrid().

|
inline |
Definition at line 176 of file palette_group_panel.h.
References selected_palette_.
| void yaze::editor::PaletteGroupPanel::SetSelectedPaletteIndex | ( | int | index | ) |
Definition at line 157 of file palette_group_panel.cc.
References GetPaletteGroup(), selected_color_, and selected_palette_.

|
inline |
Definition at line 179 of file palette_group_panel.h.
References selected_color_.
|
inline |
Definition at line 180 of file palette_group_panel.h.
References selected_color_.
| std::string yaze::editor::PaletteGroupPanel::ExportToJson | ( | ) | const |
Definition at line 834 of file palette_group_panel.cc.
References yaze::Json::array(), display_name_, yaze::Json::dump(), GetPaletteGroup(), group_name_, and yaze::Json::object().

| absl::Status yaze::editor::PaletteGroupPanel::ImportFromJson | ( | const std::string & | json | ) |
Definition at line 869 of file palette_group_panel.cc.
References yaze::Json::contains(), yaze::gfx::PaletteManager::Get(), GetPaletteGroup(), group_name_, yaze::Json::is_array(), yaze::Json::is_object(), IsManagedSession(), and yaze::Json::parse().
| std::string yaze::editor::PaletteGroupPanel::ExportToClipboard | ( | ) | const |
Definition at line 996 of file palette_group_panel.cc.
References GetPaletteGroup(), and selected_palette_.
Referenced by DrawBatchOperationsPopup(), DrawContent(), and DrawToolbar().

| absl::Status yaze::editor::PaletteGroupPanel::ImportFromClipboard | ( | ) |
Definition at line 1016 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), GetMutablePalette(), group_name_, IsManagedSession(), and selected_palette_.
Referenced by DrawBatchOperationsPopup(), DrawContent(), and DrawToolbar().

|
protectedpure virtual |
Get the palette group for this card.
Implemented in yaze::editor::OverworldMainPalettePanel, yaze::editor::OverworldAnimatedPalettePanel, yaze::editor::DungeonMainPalettePanel, yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, yaze::editor::SpritesAux3PalettePanel, and yaze::editor::EquipmentPalettePanel.
Referenced by DrawPaletteSelector(), DrawToolbar(), ExportToClipboard(), ExportToJson(), GetMutablePalette(), ImportFromJson(), and SetSelectedPaletteIndex().
|
protectedpure virtual |
Implemented in yaze::editor::OverworldMainPalettePanel, yaze::editor::OverworldAnimatedPalettePanel, yaze::editor::DungeonMainPalettePanel, yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, yaze::editor::SpritesAux3PalettePanel, and yaze::editor::EquipmentPalettePanel.
|
protectedpure virtual |
Get metadata for this palette group.
Implemented in yaze::editor::OverworldMainPalettePanel, yaze::editor::OverworldAnimatedPalettePanel, yaze::editor::DungeonMainPalettePanel, yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, yaze::editor::SpritesAux3PalettePanel, and yaze::editor::EquipmentPalettePanel.
Referenced by DrawMetadataInfo().
|
protected |
Draw the palette grid specific to this palette type.
Definition at line 230 of file palette_group_panel.cc.
References yaze::gui::AutoRegisterLastItem(), GetColorsPerRow(), GetMutablePalette(), IsColorModified(), yaze::gui::PaletteColorButton(), selected_color_, and selected_palette_.
Referenced by DrawContent().
|
protected |
Definition at line 166 of file palette_group_panel.cc.
References DrawBatchOperationsPopup(), DrawColorInfo(), DrawColorPicker(), DrawCustomPanels(), DrawMetadataInfo(), DrawPaletteGrid(), DrawPaletteSelector(), DrawToolbar(), ExportToClipboard(), ICON_MD_MORE_HORIZ, ImportFromClipboard(), yaze::Rom::is_loaded(), IsManagedSession(), yaze::editor::kError, rom_, selected_color_, yaze::editor::ToastManager::Show(), yaze::gui::ThemedIconButton(), and toast_manager_.
Referenced by Draw(), and DrawEmbedded().
|
protectedpure virtual |
Get the number of colors per row for grid layout.
Implemented in yaze::editor::OverworldMainPalettePanel, yaze::editor::OverworldAnimatedPalettePanel, yaze::editor::DungeonMainPalettePanel, yaze::editor::SpritePalettePanel, yaze::editor::SpritesAux1PalettePanel, yaze::editor::SpritesAux2PalettePanel, yaze::editor::SpritesAux3PalettePanel, and yaze::editor::EquipmentPalettePanel.
Referenced by DrawPaletteGrid().
|
inlineprotectedvirtual |
Draw additional toolbar buttons (called after standard buttons)
Definition at line 220 of file palette_group_panel.h.
Referenced by DrawToolbar().
|
inlineprotectedvirtual |
Draw additional panels (called after main content)
Reimplemented in yaze::editor::SpritePalettePanel.
Definition at line 225 of file palette_group_panel.h.
Referenced by DrawContent().
|
protected |
Draw standard toolbar with save/discard/undo/redo.
Definition at line 252 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::CanRedo(), yaze::gfx::PaletteManager::CanUndo(), yaze::gui::DangerButton(), DiscardChanges(), display_name_, DrawCustomToolbarButtons(), ExportToClipboard(), yaze::gfx::PaletteManager::Get(), GetPaletteGroup(), group_name_, ICON_MD_EDIT, ICON_MD_FILE_DOWNLOAD, ICON_MD_FILE_UPLOAD, ICON_MD_MORE_VERT, ICON_MD_REDO, ICON_MD_SAVE, ICON_MD_UNDO, ImportFromClipboard(), yaze::gfx::PaletteManager::IsGroupModified(), IsPaletteModified(), yaze::editor::kError, yaze::gui::PrimaryButton(), Redo(), SaveToRom(), yaze::editor::ToastManager::Show(), yaze::gui::ThemedIconButton(), toast_manager_, and Undo().
Referenced by DrawContent().
|
protected |
Draw palette selector dropdown.
Definition at line 354 of file palette_group_panel.cc.
References GetPaletteGroup(), yaze::gui::LayoutHelpers::GetStandardInputWidth(), ICON_MD_RESTORE, IsPaletteModified(), ResetPalette(), selected_color_, selected_palette_, and yaze::gui::ThemedIconButton().
Referenced by DrawContent().
|
protected |
Draw color picker for selected color.
Definition at line 406 of file palette_group_panel.cc.
References active_picker_, yaze::gui::AutoRegisterLastItem(), yaze::gui::WidgetIdRegistry::WidgetMetadata::bounds, yaze::gui::ConvertImVec4ToSnesColor(), yaze::gui::ConvertSnesColorToImVec4(), yaze::gui::WidgetIdRegistry::WidgetMetadata::enabled, yaze::gfx::PaletteManager::Get(), GetMutablePalette(), GetOriginalColor(), group_name_, ICON_MD_RESTORE, yaze::gui::WidgetIdRegistry::Instance(), IsColorModified(), yaze::editor::kError, yaze::gui::WidgetIdRegistry::WidgetMetadata::label, picker_cancelled_, yaze::gui::WidgetIdRegistry::RegisterWidget(), ResetColor(), yaze::gui::SectionHeader(), selected_color_, selected_palette_, SetColor(), yaze::editor::ToastManager::Show(), yaze::gui::ThemedButton(), toast_manager_, yaze::gui::WidgetIdRegistry::WidgetMetadata::visible, and yaze::gui::WidgetIdRegistry::WidgetMetadata::window_name.
Referenced by DrawContent().
|
protected |
Draw color info panel with RGB/SNES/Hex values.
Definition at line 530 of file palette_group_panel.cc.
References GetMutablePalette(), yaze::gui::SectionHeader(), selected_color_, selected_palette_, show_hex_format_, and show_snes_format_.
Referenced by DrawContent().

|
protected |
Draw palette metadata info panel.
Definition at line 571 of file palette_group_panel.cc.
References GetMetadata(), yaze::gui::SectionHeader(), and selected_palette_.
Referenced by DrawContent().

|
protected |
Draw batch operations popup.
Definition at line 636 of file palette_group_panel.cc.
References DiscardChanges(), ExportToClipboard(), ImportFromClipboard(), yaze::gui::SectionHeader(), and yaze::gui::ThemedButton().
Referenced by DrawContent().
|
protected |
Get mutable palette by index.
Definition at line 810 of file palette_group_panel.cc.
References GetPaletteGroup().
Referenced by DrawColorInfo(), DrawColorPicker(), DrawPaletteGrid(), and ImportFromClipboard().

|
protected |
Get original color from ROM (for reset/comparison)
Definition at line 818 of file palette_group_panel.cc.
References yaze::gfx::PaletteManager::Get(), yaze::gfx::PaletteManager::GetOriginalColor(), and group_name_.
Referenced by DrawColorPicker().

|
protected |
Return true only while PaletteManager is bound to this panel's session.
Definition at line 825 of file palette_group_panel.cc.
References game_data_, yaze::gfx::PaletteManager::Get(), and yaze::gfx::PaletteManager::IsManaging().
Referenced by CanRedo(), CanUndo(), ClearHistory(), DiscardChanges(), DrawContent(), HasUnsavedChanges(), ImportFromClipboard(), ImportFromJson(), IsColorModified(), IsPaletteModified(), Redo(), ResetColor(), ResetPalette(), SaveToRom(), SetColor(), and Undo().

|
protected |
Mark palette as modified.
|
protected |
Clear modified flags for palette.
|
protected |
Definition at line 286 of file palette_group_panel.h.
Referenced by DiscardChanges(), DrawColorPicker(), DrawToolbar(), ExportToJson(), GetId(), GetOriginalColor(), HasUnsavedChanges(), ImportFromClipboard(), ImportFromJson(), IsColorModified(), IsPaletteModified(), ResetColor(), ResetPalette(), SaveToRom(), and SetColor().
|
protected |
Definition at line 287 of file palette_group_panel.h.
Referenced by DrawToolbar(), ExportToJson(), GetDisplayName(), and SaveToRom().
|
protected |
Definition at line 288 of file palette_group_panel.h.
Referenced by DrawContent(), and IsOwnedByRom().
|
protected |
Definition at line 289 of file palette_group_panel.h.
Referenced by yaze::editor::OverworldMainPalettePanel::GetPaletteGroup(), yaze::editor::OverworldAnimatedPalettePanel::GetPaletteGroup(), yaze::editor::DungeonMainPalettePanel::GetPaletteGroup(), yaze::editor::SpritePalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux1PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux2PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux3PalettePanel::GetPaletteGroup(), yaze::editor::EquipmentPalettePanel::GetPaletteGroup(), yaze::editor::OverworldMainPalettePanel::GetPaletteGroup(), yaze::editor::OverworldAnimatedPalettePanel::GetPaletteGroup(), yaze::editor::DungeonMainPalettePanel::GetPaletteGroup(), yaze::editor::SpritePalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux1PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux2PalettePanel::GetPaletteGroup(), yaze::editor::SpritesAux3PalettePanel::GetPaletteGroup(), yaze::editor::EquipmentPalettePanel::GetPaletteGroup(), IsManagedSession(), and SetGameData().
|
protected |
Definition at line 290 of file palette_group_panel.h.
Referenced by SaveToRom(), and SetProject().
|
protected |
Definition at line 291 of file palette_group_panel.h.
Referenced by Hide(), IsVisible(), Show(), and visibility_flag().
|
protected |
Definition at line 294 of file palette_group_panel.h.
Referenced by DrawColorInfo(), DrawColorPicker(), DrawMetadataInfo(), DrawPaletteGrid(), DrawPaletteSelector(), ExportToClipboard(), GetSelectedPaletteIndex(), ImportFromClipboard(), and SetSelectedPaletteIndex().
|
protected |
Definition at line 295 of file palette_group_panel.h.
Referenced by DiscardChanges(), DrawColorInfo(), DrawColorPicker(), DrawContent(), DrawPaletteGrid(), DrawPaletteSelector(), GetSelectedColorIndex(), SetSelectedColorIndex(), and SetSelectedPaletteIndex().
|
protected |
Definition at line 299 of file palette_group_panel.h.
Referenced by DrawColorPicker().
|
protected |
Definition at line 300 of file palette_group_panel.h.
Referenced by DrawColorPicker().
|
protected |
Definition at line 303 of file palette_group_panel.h.
Referenced by DrawColorInfo().
|
protected |
Definition at line 304 of file palette_group_panel.h.
Referenced by DrawColorInfo().
|
protected |
Definition at line 306 of file palette_group_panel.h.
Referenced by DrawColorPicker(), DrawContent(), DrawToolbar(), SaveToRom(), SetColor(), and SetToastManager().