mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Replace ColorN and from HTML with a string constructor
This commit is contained in:
parent
b24c24f64b
commit
f55445079a
9 changed files with 110 additions and 70 deletions
|
|
@ -688,6 +688,8 @@ void Variant::_register_variant_constructors() {
|
|||
add_constructor<VariantConstructor<Color, Color, double>>(sarray("from", "alpha"));
|
||||
add_constructor<VariantConstructor<Color, double, double, double>>(sarray("r", "g", "b"));
|
||||
add_constructor<VariantConstructor<Color, double, double, double, double>>(sarray("r", "g", "b", "a"));
|
||||
add_constructor<VariantConstructor<Color, String>>(sarray("code"));
|
||||
add_constructor<VariantConstructor<Color, String, double>>(sarray("code", "alpha"));
|
||||
|
||||
add_constructor<VariantConstructNoArgs<StringName>>(sarray());
|
||||
add_constructor<VariantConstructor<StringName, StringName>>(sarray("from"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue