|
@@ -719,12 +719,6 @@ EditorPropertyPath::EditorPropertyPath() {
|
|
path->connect(SceneStringName(focus_exited), callable_mp(this, &EditorPropertyPath::_path_focus_exited));
|
|
path->connect(SceneStringName(focus_exited), callable_mp(this, &EditorPropertyPath::_path_focus_exited));
|
|
path->set_h_size_flags(SIZE_EXPAND_FILL);
|
|
path->set_h_size_flags(SIZE_EXPAND_FILL);
|
|
|
|
|
|
- path_edit = memnew(Button);
|
|
|
|
- path_edit->set_accessibility_name(TTRC("Edit"));
|
|
|
|
- path_hb->add_child(path_edit);
|
|
|
|
- add_focusable(path);
|
|
|
|
- path_edit->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_path_pressed));
|
|
|
|
-
|
|
|
|
toggle_uid = memnew(Button);
|
|
toggle_uid = memnew(Button);
|
|
toggle_uid->set_accessibility_name(TTRC("Toggle Display UID"));
|
|
toggle_uid->set_accessibility_name(TTRC("Toggle Display UID"));
|
|
toggle_uid->set_tooltip_text(TTRC("Toggles displaying between path and UID.\nThe UID is the actual value of this property."));
|
|
toggle_uid->set_tooltip_text(TTRC("Toggles displaying between path and UID.\nThe UID is the actual value of this property."));
|
|
@@ -732,6 +726,12 @@ EditorPropertyPath::EditorPropertyPath() {
|
|
path_hb->add_child(toggle_uid);
|
|
path_hb->add_child(toggle_uid);
|
|
add_focusable(toggle_uid);
|
|
add_focusable(toggle_uid);
|
|
toggle_uid->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_toggle_uid_display));
|
|
toggle_uid->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_toggle_uid_display));
|
|
|
|
+
|
|
|
|
+ path_edit = memnew(Button);
|
|
|
|
+ path_edit->set_accessibility_name(TTRC("Edit"));
|
|
|
|
+ path_hb->add_child(path_edit);
|
|
|
|
+ add_focusable(path);
|
|
|
|
+ path_edit->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyPath::_path_pressed));
|
|
}
|
|
}
|
|
|
|
|
|
///////////////////// CLASS NAME /////////////////////////
|
|
///////////////////// CLASS NAME /////////////////////////
|