|
VoltMod
C++23 framework for CS2 server plugins
|
#include <MenuModel.hpp>
Inheritance diagram for VoltMod::MenuSurface:Public Member Functions | |
| virtual | ~MenuSurface ()=default |
| MenuSurface (const MenuSurface &)=delete | |
| MenuSurface & | operator= (const MenuSurface &)=delete |
| virtual bool | OpenSession (int slot, std::shared_ptr< Menu > menu, MenuOptions options)=0 |
| virtual void | Open (int slot, std::shared_ptr< Menu > menu)=0 |
| virtual bool | IsOpen (int slot) const =0 |
| virtual void | Close (int slot)=0 |
| virtual void | CloseAll (int slot)=0 |
| virtual void | CloseAll (int slot, std::string_view replyKey)=0 |
| virtual void | Prompt (int slot, std::string prompt, std::function< bool(int slot, std::string_view text)> callback)=0 |
| virtual std::string | Translate (int slot, std::string_view key, std::string_view fallback) const =0 |
Protected Member Functions | |
| MenuSurface ()=default | |
The surface a menu is drawn on, and what a row callback may ask of it.
Definition at line 72 of file MenuModel.hpp.
|
virtualdefault |
|
delete |
|
protecteddefault |
Pops the top menu, returning to its parent when one exists.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::Close().
Clears the stack and removes the menu from the player's screen.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::CloseAll(), VoltMod::MenuRouter::CloseAll(), and VoltMod::MenuRouter::OpenSession().
Translates and sends replyKey, then closes every menu.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::IsOpen().
Pushes menu onto slot's session and shows it, starting one with default options when none is open. What a row calls.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::Open().
|
pure virtual |
Opens a session for slot showing menu, closing any the player has open here. What a command calls. False when this surface cannot draw for slot; nothing is left open then.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::OpenSession().
|
delete |
|
pure virtual |
Routes the next chat line to callback. Closing the menu cancels it.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::Prompt().
|
pure virtual |
Translates key for slot, using fallback when missing.
Implemented in VoltMod::CenterHtmlMenu, VoltMod::MenuRouter, and VoltMod::PanoramaMenu.
Referenced by VoltMod::MenuRouter::Translate().