.animate helper: create and start an animation directly on a target. Preferred use pattern; closes #175

This commit is contained in:
John McCardle 2026-01-04 15:32:14 -05:00
commit 9ab618079a
21 changed files with 738 additions and 11 deletions

View file

@ -626,3 +626,17 @@ bool UISprite::getProperty(const std::string& name, int& value) const {
}
return false;
}
bool UISprite::hasProperty(const std::string& name) const {
// Float properties
if (name == "x" || name == "y" ||
name == "scale" || name == "scale_x" || name == "scale_y" ||
name == "z_index") {
return true;
}
// Int properties
if (name == "sprite_index" || name == "sprite_number") {
return true;
}
return false;
}