Skip to content

Commit

Permalink
- Improved tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Difint committed Oct 21, 2023
1 parent 49017c3 commit a02cc80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
3 changes: 2 additions & 1 deletion core/singletones/windows-manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
15 changes: 5 additions & 10 deletions core/widgets/tutorial.tscn
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit a02cc80

Please sign in to comment.