mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'cursor' ui property
This commit is contained in:
parent
10f0bd0290
commit
cb9690ebc7
14 changed files with 144 additions and 1 deletions
|
|
@ -212,6 +212,10 @@ void GUI::draw(const DrawContext& pctx, const Assets& assets) {
|
|||
|
||||
batch2D->begin();
|
||||
container->draw(ctx, assets);
|
||||
|
||||
if (hover) {
|
||||
Window::setCursor(hover->getCursor());
|
||||
}
|
||||
}
|
||||
|
||||
std::shared_ptr<UINode> GUI::getFocused() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue