.animate helper: create and start an animation directly on a target. Preferred use pattern; closes #175
This commit is contained in:
parent
d878c8684d
commit
9ab618079a
21 changed files with 738 additions and 11 deletions
|
|
@ -657,3 +657,24 @@ bool UICaption::getProperty(const std::string& name, std::string& value) const {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool UICaption::hasProperty(const std::string& name) const {
|
||||
// Float properties
|
||||
if (name == "x" || name == "y" ||
|
||||
name == "font_size" || name == "size" || name == "outline" ||
|
||||
name == "fill_color.r" || name == "fill_color.g" ||
|
||||
name == "fill_color.b" || name == "fill_color.a" ||
|
||||
name == "outline_color.r" || name == "outline_color.g" ||
|
||||
name == "outline_color.b" || name == "outline_color.a") {
|
||||
return true;
|
||||
}
|
||||
// Color properties
|
||||
if (name == "fill_color" || name == "outline_color") {
|
||||
return true;
|
||||
}
|
||||
// String properties
|
||||
if (name == "text") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue