You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
committed by
Juan Linietsky
parent
1a4be2cd8f
commit
69c95f4b4c
@@ -171,13 +171,13 @@ MaterialEditor::MaterialEditor() {
|
||||
sphere_switch->set_toggle_mode(true);
|
||||
sphere_switch->set_pressed(true);
|
||||
vb_shape->add_child(sphere_switch);
|
||||
sphere_switch->connect("pressed", this, "_button_pressed", varray(sphere_switch));
|
||||
sphere_switch->connect_compat("pressed", this, "_button_pressed", varray(sphere_switch));
|
||||
|
||||
box_switch = memnew(TextureButton);
|
||||
box_switch->set_toggle_mode(true);
|
||||
box_switch->set_pressed(false);
|
||||
vb_shape->add_child(box_switch);
|
||||
box_switch->connect("pressed", this, "_button_pressed", varray(box_switch));
|
||||
box_switch->connect_compat("pressed", this, "_button_pressed", varray(box_switch));
|
||||
|
||||
hb->add_spacer();
|
||||
|
||||
@@ -187,12 +187,12 @@ MaterialEditor::MaterialEditor() {
|
||||
light_1_switch = memnew(TextureButton);
|
||||
light_1_switch->set_toggle_mode(true);
|
||||
vb_light->add_child(light_1_switch);
|
||||
light_1_switch->connect("pressed", this, "_button_pressed", varray(light_1_switch));
|
||||
light_1_switch->connect_compat("pressed", this, "_button_pressed", varray(light_1_switch));
|
||||
|
||||
light_2_switch = memnew(TextureButton);
|
||||
light_2_switch->set_toggle_mode(true);
|
||||
vb_light->add_child(light_2_switch);
|
||||
light_2_switch->connect("pressed", this, "_button_pressed", varray(light_2_switch));
|
||||
light_2_switch->connect_compat("pressed", this, "_button_pressed", varray(light_2_switch));
|
||||
|
||||
first_enter = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user