mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
fixes
This commit is contained in:
parent
e5a3178969
commit
dbf366eca3
5 changed files with 22 additions and 7 deletions
|
|
@ -51,6 +51,8 @@ namespace gui {
|
|||
class Container;
|
||||
class Menu;
|
||||
|
||||
using PageLoaderFunc = std::function<std::shared_ptr<UINode>(const std::string&)>;
|
||||
|
||||
/// @brief The main UI controller
|
||||
class GUI {
|
||||
std::unique_ptr<Batch2D> batch2D;
|
||||
|
|
@ -65,6 +67,8 @@ namespace gui {
|
|||
std::shared_ptr<Menu> menu;
|
||||
std::queue<runnable> postRunnables;
|
||||
|
||||
PageLoaderFunc pagesLoader;
|
||||
|
||||
float tooltipTimer = 0.0f;
|
||||
float doubleClickTimer = 0.0f;
|
||||
float doubleClickDelay = 0.5f;
|
||||
|
|
@ -78,6 +82,10 @@ namespace gui {
|
|||
GUI();
|
||||
~GUI();
|
||||
|
||||
void setPageLoader(PageLoaderFunc pageLoader);
|
||||
|
||||
PageLoaderFunc getPagesLoader();
|
||||
|
||||
/// @brief Get the main menu (Menu) node
|
||||
std::shared_ptr<Menu> getMenu();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue