mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add cursorLocator argument to gui.set_active_frame
This commit is contained in:
parent
8ee2edef5c
commit
239ada8e3d
4 changed files with 36 additions and 12 deletions
|
|
@ -83,6 +83,7 @@ namespace gui {
|
|||
std::queue<runnable> postRunnables;
|
||||
std::vector<std::weak_ptr<UINode>> mouseOver;
|
||||
std::unordered_map<std::string, std::shared_ptr<Frame>> frames;
|
||||
vec2supplier cursorLocator;
|
||||
|
||||
float tooltipTimer = 0.0f;
|
||||
float doubleClickTimer = 0.0f;
|
||||
|
|
@ -129,7 +130,9 @@ namespace gui {
|
|||
|
||||
void addFrame(std::shared_ptr<Frame> frame);
|
||||
|
||||
void setActiveFrame(const std::string& id);
|
||||
void setActiveFrame(
|
||||
const std::string& id, vec2supplier cursorLocator = nullptr
|
||||
);
|
||||
|
||||
std::shared_ptr<Frame> getActiveFrame() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue