1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Add leftover scroll hints, and panels for scrollables without hints

This commit is contained in:
Michael Alexsander
2025-12-09 18:09:45 -03:00
parent 1cf3180537
commit 5246b5fba9
18 changed files with 87 additions and 28 deletions

View File

@@ -45,6 +45,7 @@
#include "scene/gui/file_dialog.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/link_button.h"
#include "scene/gui/margin_container.h"
#include "scene/gui/menu_button.h"
#include "scene/gui/option_button.h"
#include "scene/gui/separator.h"
@@ -1142,12 +1143,18 @@ ExportTemplateManager::ExportTemplateManager() {
installed_label->set_text(TTR("Other Installed Versions:"));
installed_versions_hb->add_child(installed_label);
MarginContainer *mc = memnew(MarginContainer);
mc->set_theme_type_variation("NoBorderHorizontalWindow");
mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
main_vb->add_child(mc);
installed_table = memnew(Tree);
installed_table->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
installed_table->set_hide_root(true);
installed_table->set_scroll_hint_mode(Tree::SCROLL_HINT_MODE_BOTH);
installed_table->set_custom_minimum_size(Size2(0, 100) * EDSCALE);
installed_table->set_v_size_flags(Control::SIZE_EXPAND_FILL);
main_vb->add_child(installed_table);
mc->add_child(installed_table);
installed_table->connect("button_clicked", callable_mp(this, &ExportTemplateManager::_installed_table_button_cbk));
// Dialogs.