mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
Added world creation menu
This commit is contained in:
parent
03a6ed0f96
commit
4e1f19c911
12 changed files with 227 additions and 52 deletions
|
|
@ -15,6 +15,8 @@ namespace gui {
|
|||
ontimeout callback;
|
||||
float interval;
|
||||
float timer;
|
||||
// -1 - infinity, 1 - one time event
|
||||
int repeat;
|
||||
};
|
||||
|
||||
enum class Orientation { vertical, horizontal };
|
||||
|
|
@ -32,7 +34,7 @@ namespace gui {
|
|||
virtual std::shared_ptr<UINode> getAt(glm::vec2 pos, std::shared_ptr<UINode> self) override;
|
||||
virtual void add(std::shared_ptr<UINode> node);
|
||||
virtual void remove(std::shared_ptr<UINode> node);
|
||||
void listenInterval(float interval, ontimeout callback);
|
||||
void listenInterval(float interval, ontimeout callback, int repeat=-1);
|
||||
};
|
||||
|
||||
class Panel : public Container {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue