More scroll hint work around the editor
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "editor/settings/input_event_configuration_dialog.h"
|
||||
#include "editor/themes/editor_scale.h"
|
||||
#include "scene/gui/check_button.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
#include "scene/gui/separator.h"
|
||||
#include "scene/gui/tree.h"
|
||||
|
||||
@@ -600,9 +601,13 @@ ActionMapEditor::ActionMapEditor() {
|
||||
|
||||
main_vbox->add_child(add_hbox);
|
||||
|
||||
MarginContainer *mc = memnew(MarginContainer);
|
||||
mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
mc->set_theme_type_variation("NoBorderHorizontalBottom");
|
||||
main_vbox->add_child(mc);
|
||||
|
||||
// Action Editor Tree
|
||||
action_tree = memnew(Tree);
|
||||
action_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
action_tree->set_accessibility_name(TTRC("Action Map"));
|
||||
action_tree->set_columns(3);
|
||||
action_tree->set_hide_root(true);
|
||||
@@ -617,7 +622,7 @@ ActionMapEditor::ActionMapEditor() {
|
||||
action_tree->connect("item_edited", callable_mp(this, &ActionMapEditor::_action_edited), CONNECT_DEFERRED);
|
||||
action_tree->connect("item_activated", callable_mp(this, &ActionMapEditor::_tree_item_activated));
|
||||
action_tree->connect("button_clicked", callable_mp(this, &ActionMapEditor::_tree_button_pressed));
|
||||
main_vbox->add_child(action_tree);
|
||||
mc->add_child(action_tree);
|
||||
|
||||
SET_DRAG_FORWARDING_GCD(action_tree, ActionMapEditor);
|
||||
|
||||
|
||||
@@ -945,6 +945,11 @@ EditorAutoloadSettings::EditorAutoloadSettings() {
|
||||
add_autoload->set_disabled(true);
|
||||
hbc->add_child(add_autoload);
|
||||
|
||||
MarginContainer *mc = memnew(MarginContainer);
|
||||
mc->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
mc->set_theme_type_variation("NoBorderHorizontalBottomWide");
|
||||
add_child(mc);
|
||||
|
||||
tree = memnew(Tree);
|
||||
tree->set_accessibility_name(TTRC("Autoloads"));
|
||||
tree->set_hide_root(true);
|
||||
@@ -976,9 +981,8 @@ EditorAutoloadSettings::EditorAutoloadSettings() {
|
||||
tree->connect("item_edited", callable_mp(this, &EditorAutoloadSettings::_autoload_edited));
|
||||
tree->connect("button_clicked", callable_mp(this, &EditorAutoloadSettings::_autoload_button_pressed));
|
||||
tree->connect("item_activated", callable_mp(this, &EditorAutoloadSettings::_autoload_activated));
|
||||
tree->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
add_child(tree, true);
|
||||
mc->add_child(tree, true);
|
||||
}
|
||||
|
||||
EditorAutoloadSettings::~EditorAutoloadSettings() {
|
||||
|
||||
@@ -1008,9 +1008,13 @@ EditorSettingsDialog::EditorSettingsDialog() {
|
||||
shortcut_search_bar->connect(SceneStringName(value_changed), callable_mp(this, &EditorSettingsDialog::_update_shortcuts));
|
||||
tab_shortcuts->add_child(shortcut_search_bar);
|
||||
|
||||
MarginContainer *mc = memnew(MarginContainer);
|
||||
mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
mc->set_theme_type_variation("NoBorderHorizontalBottom");
|
||||
tab_shortcuts->add_child(mc);
|
||||
|
||||
shortcuts = memnew(Tree);
|
||||
shortcuts->set_accessibility_name(TTRC("Shortcuts"));
|
||||
shortcuts->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
shortcuts->set_columns(2);
|
||||
shortcuts->set_hide_root(true);
|
||||
shortcuts->set_column_titles_visible(true);
|
||||
@@ -1018,7 +1022,7 @@ EditorSettingsDialog::EditorSettingsDialog() {
|
||||
shortcuts->set_column_title(1, TTRC("Binding"));
|
||||
shortcuts->connect("button_clicked", callable_mp(this, &EditorSettingsDialog::_shortcut_button_pressed));
|
||||
shortcuts->connect("item_activated", callable_mp(this, &EditorSettingsDialog::_shortcut_cell_double_clicked));
|
||||
tab_shortcuts->add_child(shortcuts);
|
||||
mc->add_child(shortcuts);
|
||||
|
||||
SET_DRAG_FORWARDING_GCD(shortcuts, EditorSettingsDialog);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user