mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
[Scene] Add SceneStringNames::pressed
This commit is contained in:
parent
78cce1954d
commit
ee79386f7b
147 changed files with 727 additions and 722 deletions
|
|
@ -52,7 +52,7 @@ PackedSceneEditor::PackedSceneEditor(Ref<PackedScene> &p_packed_scene) {
|
|||
packed_scene = p_packed_scene;
|
||||
|
||||
open_scene_button = EditorInspector::create_inspector_action_button(TTR("Open Scene"));
|
||||
open_scene_button->connect(SNAME("pressed"), callable_mp(this, &PackedSceneEditor::_on_open_scene_pressed));
|
||||
open_scene_button->connect(SceneStringName(pressed), callable_mp(this, &PackedSceneEditor::_on_open_scene_pressed));
|
||||
open_scene_button->set_disabled(!packed_scene->get_path().get_file().is_valid_filename());
|
||||
add_child(open_scene_button);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue