mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
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>
|
||||
<signals>
|
||||
<signal name="changed">
|
||||
<argument index="0" name="value" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Emitted when [member min_value], [member max_value], [member page], or [member step] change.
|
||||
</description>
|
||||
|
@ -266,7 +266,7 @@ void Range::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("unshare"), &Range::unshare);
|
||||
|
||||
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, "max_value"), "set_max", "get_max");
|
||||
|
Loading…
Reference in New Issue
Block a user