Merge pull request #35396 from akien-mga/3.1
Range: Properly bind value emitted by 'changed' signal
This commit is contained in:
commit
5361dbf4f9
|
@ -60,6 +60,8 @@
|
||||||
</members>
|
</members>
|
||||||
<signals>
|
<signals>
|
||||||
<signal name="changed">
|
<signal name="changed">
|
||||||
|
<argument index="0" name="value" type="float">
|
||||||
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Emitted when [member min_value], [member max_value], [member page], or [member step] change.
|
Emitted when [member min_value], [member max_value], [member page], or [member step] change.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -266,7 +266,7 @@ void Range::_bind_methods() {
|
||||||
ClassDB::bind_method(D_METHOD("unshare"), &Range::unshare);
|
ClassDB::bind_method(D_METHOD("unshare"), &Range::unshare);
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("value_changed", PropertyInfo(Variant::REAL, "value")));
|
ADD_SIGNAL(MethodInfo("value_changed", PropertyInfo(Variant::REAL, "value")));
|
||||||
ADD_SIGNAL(MethodInfo("changed"));
|
ADD_SIGNAL(MethodInfo("changed", PropertyInfo(Variant::REAL, "value")));
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::REAL, "min_value"), "set_min", "get_min");
|
ADD_PROPERTY(PropertyInfo(Variant::REAL, "min_value"), "set_min", "get_min");
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::REAL, "max_value"), "set_max", "get_max");
|
ADD_PROPERTY(PropertyInfo(Variant::REAL, "max_value"), "set_max", "get_max");
|
||||||
|
|
Loading…
Reference in New Issue