diff --git a/core/singletones/windows-manager.gd b/core/singletones/windows-manager.gd index a99b00d..71cef43 100644 --- a/core/singletones/windows-manager.gd +++ b/core/singletones/windows-manager.gd @@ -23,7 +23,8 @@ static func make_window(control, title): var size = control.get_minimum_size() + Vector2(0, win._window_title_container.get_minimum_size().y) win.set_custom_minimum_size(size) - win.size = win.get_minimum_size() + + win.size = control.get_size()+Vector2(0, win._window_title_container.get_minimum_size().y) win.set_window_title_text(title) win.hide_window() diff --git a/core/widgets/tutorial.tscn b/core/widgets/tutorial.tscn index 5b55798..345c58d 100644 --- a/core/widgets/tutorial.tscn +++ b/core/widgets/tutorial.tscn @@ -1,15 +1,6 @@ [gd_scene format=3 uid="uid://ds18c8bbcrnql"] -[node name="Tutorial" type="Control"] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 0 +[node name="RichTextLabel" type="RichTextLabel"] offset_right = 529.0 offset_bottom = 181.0 bbcode_enabled = true @@ -21,3 +12,7 @@ To release control press Backspace To fly use WASD" fit_content = true + +[node name="Tutorial" type="Control" parent="."] +layout_mode = 3 +anchors_preset = 0