You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Rename offset to point in remove_point()
(cherry picked from commit 4f72a07eaa)
This commit is contained in:
@@ -57,10 +57,10 @@
|
|||||||
<method name="remove_point">
|
<method name="remove_point">
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="offset" type="int">
|
<argument index="0" name="point" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Removes the color at the index [code]offset[/code].
|
Removes the color at the index [code]point[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color">
|
<method name="set_color">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Gradient::~Gradient() {
|
|||||||
void Gradient::_bind_methods() {
|
void Gradient::_bind_methods() {
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("add_point", "offset", "color"), &Gradient::add_point);
|
ClassDB::bind_method(D_METHOD("add_point", "offset", "color"), &Gradient::add_point);
|
||||||
ClassDB::bind_method(D_METHOD("remove_point", "offset"), &Gradient::remove_point);
|
ClassDB::bind_method(D_METHOD("remove_point", "point"), &Gradient::remove_point);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("set_offset", "point", "offset"), &Gradient::set_offset);
|
ClassDB::bind_method(D_METHOD("set_offset", "point", "offset"), &Gradient::set_offset);
|
||||||
ClassDB::bind_method(D_METHOD("get_offset", "point"), &Gradient::get_offset);
|
ClassDB::bind_method(D_METHOD("get_offset", "point"), &Gradient::get_offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user