Skip to content

Commit a02cc80

Browse files
author
Difint
committed
- Improved tutorial
1 parent 49017c3 commit a02cc80

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

core/singletones/windows-manager.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ static func make_window(control, title):
2323

2424
var size = control.get_minimum_size() + Vector2(0, win._window_title_container.get_minimum_size().y)
2525
win.set_custom_minimum_size(size)
26-
win.size = win.get_minimum_size()
26+
27+
win.size = control.get_size()+Vector2(0, win._window_title_container.get_minimum_size().y)
2728

2829
win.set_window_title_text(title)
2930
win.hide_window()

core/widgets/tutorial.tscn

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
[gd_scene format=3 uid="uid://ds18c8bbcrnql"]
22

3-
[node name="Tutorial" type="Control"]
4-
layout_mode = 3
5-
anchors_preset = 15
6-
anchor_right = 1.0
7-
anchor_bottom = 1.0
8-
grow_horizontal = 2
9-
grow_vertical = 2
10-
11-
[node name="RichTextLabel" type="RichTextLabel" parent="."]
12-
layout_mode = 0
3+
[node name="RichTextLabel" type="RichTextLabel"]
134
offset_right = 529.0
145
offset_bottom = 181.0
156
bbcode_enabled = true
@@ -21,3 +12,7 @@ To release control press Backspace
2112
2213
To fly use WASD"
2314
fit_content = true
15+
16+
[node name="Tutorial" type="Control" parent="."]
17+
layout_mode = 3
18+
anchors_preset = 0

0 commit comments

Comments
 (0)