WindowContent for room list selection.
void SetRoomSelectedCallback(std::function< void(int)> callback)
Set the callback for room selection events.
int GetPriority() const override
Get display priority for menu ordering.
RoomBrowserContent(DungeonRoomSelector *selector, std::function< void(int)> on_room_selected=nullptr)
Construct a new panel wrapping a DungeonRoomSelector.
std::function< void(int)> on_room_selected_
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetId() const override
Unique identifier for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
DungeonRoomSelector * selector() const
Get the underlying selector component.
DungeonRoomSelector * selector_
void Draw(bool *p_open) override
Draw the panel content.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Base interface for all logical window content components.