mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Menu-related panels creation moved to frontend/menu module
This commit is contained in:
parent
c712c2239f
commit
926fcb1f79
7 changed files with 51 additions and 297 deletions
|
|
@ -61,6 +61,10 @@ namespace gui {
|
|||
|
||||
struct Page {
|
||||
std::shared_ptr<UINode> panel = nullptr;
|
||||
|
||||
~Page() {
|
||||
panel = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
class PagesControl : public Container {
|
||||
|
|
@ -72,8 +76,10 @@ namespace gui {
|
|||
public:
|
||||
PagesControl();
|
||||
|
||||
bool has(std::string name);
|
||||
void set(std::string name, bool history=true);
|
||||
void add(std::string name, std::shared_ptr<UINode> panel);
|
||||
void add(std::string name, UINode* panel);
|
||||
void back();
|
||||
void clearHistory();
|
||||
void reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue