add 'cursor' ui property

This commit is contained in:
MihailRis
2024-12-30 21:41:05 +03:00
parent 10f0bd0290
commit cb9690ebc7
14 changed files with 144 additions and 1 deletions
+4
View File
@@ -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 {