56 void Open(
int slot, std::shared_ptr<Menu> menu)
override;
57 bool IsOpen(
int slot)
const override;
58 void Close(
int slot)
override;
60 void CloseAll(
int slot, std::string_view replyKey)
override;
61 void Prompt(
int slot, std::string prompt, std::function<
bool(
int slot, std::string_view text)> callback)
override;
62 std::string
Translate(
int slot, std::string_view key, std::string_view fallback)
const override;
74 std::vector<Tab> Tabs;
78 bool HomePage =
false;
81 int ItemAt(
int slot,
int row)
const;
82 void ReadTabs(
int slot);
86 void DrawTabs(
int slot);
87 void DrawRows(
int slot,
const Menu& menu);
88 void DrawPrompt(
int slot);
90 void OnPress(
const ButtonPress& press);
91 void Activate(
int slot,
int index);
92 void StepRow(
int slot,
int row,
int direction);
93 void OpenTab(
int slot,
int tab);
94 void TurnPage(
int slot,
int delta);
99 PanoramaMenuLayout& _layout;
101 PerSlot<Session> _sessions;