mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
feat: players interpolation & add hud.set_allow_pause(...)
This commit is contained in:
parent
036e13a2ca
commit
2fa71b3bf0
25 changed files with 232 additions and 41 deletions
|
|
@ -91,6 +91,10 @@ Page& Menu::getCurrent() {
|
|||
return current;
|
||||
}
|
||||
|
||||
bool Menu::hasOpenPage() const {
|
||||
return current.panel != nullptr;
|
||||
}
|
||||
|
||||
void Menu::clearHistory() {
|
||||
pageStack = std::stack<Page>();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,5 +64,7 @@ namespace gui {
|
|||
|
||||
/// @brief Get current page
|
||||
Page& getCurrent();
|
||||
|
||||
bool hasOpenPage() const;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue