mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[Scene] Add SceneStringNames::confirmed
This commit is contained in:
parent
d9e2fc74c7
commit
ca18a06ecb
66 changed files with 128 additions and 124 deletions
|
@ -5609,7 +5609,7 @@ CanvasItemEditor::CanvasItemEditor() {
|
|||
p->add_shortcut(ED_SHORTCUT("canvas_item_editor/anim_clear_pose", TTR("Clear Pose"), KeyModifierMask::SHIFT | Key::K), ANIM_CLEAR_POSE);
|
||||
|
||||
snap_dialog = memnew(SnapDialog);
|
||||
snap_dialog->connect("confirmed", callable_mp(this, &CanvasItemEditor::_snap_changed));
|
||||
snap_dialog->connect(SceneStringName(confirmed), callable_mp(this, &CanvasItemEditor::_snap_changed));
|
||||
add_child(snap_dialog);
|
||||
|
||||
select_sb = Ref<StyleBoxTexture>(memnew(StyleBoxTexture));
|
||||
|
@ -6266,7 +6266,7 @@ CanvasItemEditorViewport::CanvasItemEditorViewport(CanvasItemEditor *p_canvas_it
|
|||
texture_node_type_selector = memnew(AcceptDialog);
|
||||
EditorNode::get_singleton()->get_gui_base()->add_child(texture_node_type_selector);
|
||||
texture_node_type_selector->set_title(TTR("Change Default Type"));
|
||||
texture_node_type_selector->connect("confirmed", callable_mp(this, &CanvasItemEditorViewport::_on_change_type_confirmed));
|
||||
texture_node_type_selector->connect(SceneStringName(confirmed), callable_mp(this, &CanvasItemEditorViewport::_on_change_type_confirmed));
|
||||
texture_node_type_selector->connect("canceled", callable_mp(this, &CanvasItemEditorViewport::_on_change_type_closed));
|
||||
|
||||
VBoxContainer *vbc = memnew(VBoxContainer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue