mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
[Scene] Add SceneStringNames::pressed
This commit is contained in:
parent
78cce1954d
commit
ee79386f7b
147 changed files with 727 additions and 722 deletions
|
|
@ -150,14 +150,14 @@ MeshEditor::MeshEditor() {
|
|||
light_1_switch->set_toggle_mode(true);
|
||||
light_1_switch->set_pressed(true);
|
||||
vb_light->add_child(light_1_switch);
|
||||
light_1_switch->connect("pressed", callable_mp(this, &MeshEditor::_on_light_1_switch_pressed));
|
||||
light_1_switch->connect(SceneStringName(pressed), callable_mp(this, &MeshEditor::_on_light_1_switch_pressed));
|
||||
|
||||
light_2_switch = memnew(Button);
|
||||
light_2_switch->set_theme_type_variation("PreviewLightButton");
|
||||
light_2_switch->set_toggle_mode(true);
|
||||
light_2_switch->set_pressed(true);
|
||||
vb_light->add_child(light_2_switch);
|
||||
light_2_switch->connect("pressed", callable_mp(this, &MeshEditor::_on_light_2_switch_pressed));
|
||||
light_2_switch->connect(SceneStringName(pressed), callable_mp(this, &MeshEditor::_on_light_2_switch_pressed));
|
||||
|
||||
rot_x = 0;
|
||||
rot_y = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue