Swap UID and path buttons

This commit is contained in:
kobewi 2025-06-20 15:49:15 +02:00
parent 48f361a6eb
commit 4b9e65da73
2 changed files with 8 additions and 8 deletions

View file

@ -719,12 +719,6 @@ EditorPropertyPath::EditorPropertyPath() {
path->connect(SceneStringName(focus_exited), callable_mp(this, &EditorPropertyPath::_path_focus_exited));
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->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."));
@ -732,6 +726,12 @@ EditorPropertyPath::EditorPropertyPath() {
path_hb->add_child(toggle_uid);
add_focusable(toggle_uid);
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 /////////////////////////