From ffb4c9eef792374c4998c09357ca2b04693c7f11 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 7 Mar 2024 21:58:09 +0100 Subject: [PATCH] Use clip tabs. --- .../layered_tile_map/editor/layered_tile_map_layer_editor.cpp | 2 +- modules/layered_tile_map/editor/layered_tile_set_editor.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp b/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp index 54bb034240..eb8dc8d697 100644 --- a/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_map_layer_editor.cpp @@ -4309,7 +4309,7 @@ LayeredTileMapLayerEditor::LayeredTileMapLayerEditor() { // Tabs. tabs_bar = memnew(Tabs); - //tabs_bar->set_clip_tabs(false); + tabs_bar->set_clip_tabs(false); for (int plugin_index = 0; plugin_index < tile_map_editor_plugins.size(); plugin_index++) { Vector tabs_vector = tile_map_editor_plugins[plugin_index]->get_tabs(); for (int tab_index = 0; tab_index < tabs_vector.size(); tab_index++) { diff --git a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp index 0c68876cb6..a7b52d991a 100644 --- a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp @@ -850,8 +850,7 @@ LayeredTileSetEditor::LayeredTileSetEditor() { // Tabs. tabs_bar = memnew(Tabs); - tabs_bar->set_tab_align(Tabs::ALIGN_CENTER); - //tabs_bar->set_clip_tabs(false); + tabs_bar->set_clip_tabs(false); tabs_bar->add_tab(TTR("Tiles")); tabs_bar->add_tab(TTR("Patterns")); tabs_bar->connect("tab_changed", this, "_tab_changed");