1#ifndef YAZE_APP_EDITOR_DUNGEON_PANELS_DUNGEON_ENTRANCE_LIST_PANEL_H_
2#define YAZE_APP_EDITOR_DUNGEON_PANELS_DUNGEON_ENTRANCE_LIST_PANEL_H_
38 std::function<
void(
int)> on_entrance_selected =
nullptr)
51 std::string
GetId()
const override {
return "dungeon.entrance_list"; }
61 void Draw(
bool* p_open)
override {
EditorPanel for entrance list selection.
std::string GetId() const override
Unique identifier for this panel.
DungeonRoomSelector * selector_
std::function< void(int)> on_entrance_selected_
int GetPriority() const override
Get display priority for menu ordering.
DungeonRoomSelector * selector() const
Get the underlying selector component.
std::string GetIcon() const override
Material Design icon for this panel.
void Draw(bool *p_open) override
Draw the panel content.
DungeonEntranceListPanel(DungeonRoomSelector *selector, std::function< void(int)> on_entrance_selected=nullptr)
Construct a new panel wrapping a DungeonRoomSelector.
void SetEntranceSelectedCallback(std::function< void(int)> callback)
Set the callback for entrance selection events.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Handles room and entrance selection UI.
void SetEntranceSelectedCallback(std::function< void(int)> callback)
void DrawEntranceSelector()
Base interface for all logical panel components.
#define ICON_MD_DOOR_FRONT