#include <water_fill_panel.h>


Public Member Functions | |
| WaterFillPanel (DungeonCanvasViewer *viewer, DungeonObjectInteraction *interaction) | |
| 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. | |
| void | SetCanvasViewer (DungeonCanvasViewer *viewer) |
| void | SetInteraction (DungeonObjectInteraction *interaction) |
| void | Draw (bool *p_open) override |
| Draw the panel content. | |
Public Member Functions inherited from yaze::editor::EditorPanel | |
| virtual | ~EditorPanel ()=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 PanelCategory | GetPanelCategory () const |
| Get the lifecycle category for this panel. | |
| virtual PanelContextScope | GetContextScope () const |
| Optional context binding for this panel (room/selection/etc) | |
| virtual PanelScope | GetScope () const |
| Get the registration scope for this panel. | |
| 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 int | GetPriority () const |
| Get display priority for menu ordering. | |
| virtual float | GetPreferredWidth () const |
| Get preferred width for this panel (optional) | |
| 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() | |
Static Private Member Functions | |
| static std::vector< zelda3::WaterFillZoneEntry > | CollectZones (const std::array< zelda3::Room, 0x128 > &rooms) |
| static void | ApplyZoneToRoom (const zelda3::WaterFillZoneEntry &z, zelda3::Room *room) |
Private Attributes | |
| std::string | last_io_status_ |
| std::string | last_io_error_ |
| DungeonCanvasViewer * | viewer_ = nullptr |
| DungeonObjectInteraction * | interaction_ = nullptr |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::editor::EditorPanel | |
| 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) | |
Definition at line 25 of file water_fill_panel.h.
|
inline |
Definition at line 27 of file water_fill_panel.h.
|
inlineoverridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::EditorPanel.
Definition at line 31 of file water_fill_panel.h.
|
inlineoverridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::EditorPanel.
Definition at line 32 of file water_fill_panel.h.
|
inlineoverridevirtual |
Material Design icon for this panel.
Implements yaze::editor::EditorPanel.
Definition at line 33 of file water_fill_panel.h.
References ICON_MD_WATER_DROP.
|
inlineoverridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::EditorPanel.
Definition at line 34 of file water_fill_panel.h.
|
inline |
Definition at line 36 of file water_fill_panel.h.
References viewer_.
Referenced by yaze::editor::DungeonEditorV2::~DungeonEditorV2().
|
inline |
Definition at line 37 of file water_fill_panel.h.
References interaction_.
Referenced by yaze::editor::DungeonEditorV2::~DungeonEditorV2().
|
inlineoverridevirtual |
Draw the panel content.
| p_open | Pointer to visibility flag (nullptr if not closable) |
Called by PanelManager when the panel is visible. Do NOT call ImGui::Begin/End - the PanelWindow wrapper handles that. Just draw your content directly.
Implements yaze::editor::EditorPanel.
Definition at line 41 of file water_fill_panel.h.
References ApplyZoneToRoom(), yaze::editor::DungeonCanvasViewer::CanNavigateRooms(), CollectZones(), yaze::editor::DungeonCanvasViewer::current_room_id(), yaze::zelda3::DumpWaterFillZonesToJsonString(), yaze::util::FileDialogOptions::filters, yaze::editor::InteractionModeManager::GetMode(), yaze::editor::InteractionModeManager::GetModeState(), yaze::editor::AgentUI::GetTheme(), yaze::editor::DungeonCanvasViewer::HasRooms(), yaze::zelda3::HasWaterFillReservedRegion(), ICON_MD_CHECK_CIRCLE, ICON_MD_DOWNLOAD, ICON_MD_ERROR, ICON_MD_INFO, ICON_MD_TUNE, ICON_MD_UPLOAD, ICON_MD_WARNING, interaction_, yaze::Rom::is_loaded(), yaze::zelda3::kWaterFillTableEnd, last_io_error_, last_io_status_, yaze::util::LoadFile(), yaze::zelda3::LoadWaterFillZonesFromJsonString(), yaze::editor::DungeonObjectInteraction::mode_manager(), yaze::editor::DungeonCanvasViewer::NavigateToRoom(), yaze::zelda3::NormalizeWaterFillZoneMasks(), yaze::editor::PaintWaterFill, yaze::editor::DungeonCanvasViewer::rom(), yaze::editor::DungeonCanvasViewer::rooms(), yaze::editor::Select, yaze::editor::DungeonCanvasViewer::set_show_water_fill_overlay(), yaze::editor::InteractionModeManager::SetMode(), yaze::editor::DungeonCanvasViewer::show_water_fill_overlay(), yaze::util::FileDialogWrapper::ShowOpenFileDialog(), yaze::util::FileDialogWrapper::ShowSaveFileDialog(), yaze::Rom::vector(), and viewer_.
|
inlinestaticprivate |
Definition at line 420 of file water_fill_panel.h.
References yaze::zelda3::WaterFillZoneEntry::fill_offsets, yaze::zelda3::WaterFillZoneEntry::room_id, and yaze::zelda3::WaterFillZoneEntry::sram_bit_mask.
Referenced by Draw().
|
inlinestaticprivate |
Definition at line 447 of file water_fill_panel.h.
References yaze::zelda3::Room::ClearWaterFillZone(), yaze::zelda3::WaterFillZoneEntry::fill_offsets, yaze::zelda3::Room::set_water_fill_sram_bit_mask(), yaze::zelda3::Room::SetWaterFillTile(), and yaze::zelda3::WaterFillZoneEntry::sram_bit_mask.
Referenced by Draw().

|
private |
Definition at line 461 of file water_fill_panel.h.
Referenced by Draw().
|
private |
Definition at line 462 of file water_fill_panel.h.
Referenced by Draw().
|
private |
Definition at line 464 of file water_fill_panel.h.
Referenced by Draw(), and SetCanvasViewer().
|
private |
Definition at line 465 of file water_fill_panel.h.
Referenced by Draw(), and SetInteraction().