mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 01:21:26 +00:00
Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
parent
1a4be2cd8f
commit
69c95f4b4c
275 changed files with 3831 additions and 2948 deletions
|
|
@ -69,8 +69,8 @@ void GradientEditor::_bind_methods() {
|
|||
|
||||
void GradientEditor::set_gradient(const Ref<Gradient> &p_gradient) {
|
||||
gradient = p_gradient;
|
||||
connect("ramp_changed", this, "_ramp_changed");
|
||||
gradient->connect("changed", this, "_gradient_changed");
|
||||
connect_compat("ramp_changed", this, "_ramp_changed");
|
||||
gradient->connect_compat("changed", this, "_gradient_changed");
|
||||
set_points(gradient->get_points());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue