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