From 4a25ef714ca0086c3a7a8d77dfd4b91f04cc3463 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 4 Jun 2024 09:55:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trainings/stepTip/stepTip.gd | 2 +- trainings/stepTip/stepTip.tscn | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/trainings/stepTip/stepTip.gd b/trainings/stepTip/stepTip.gd index 866facb..8cfc8eb 100644 --- a/trainings/stepTip/stepTip.gd +++ b/trainings/stepTip/stepTip.gd @@ -8,7 +8,7 @@ func _ready(): func updateOperationTip(desc): operationTip = desc - $PanelContainer/VBoxContainer/Control2/Label.text = desc + $PanelContainer/VBoxContainer/ScrollContainer/Control2/Label.text = desc func _on_restart_button_down(): diff --git a/trainings/stepTip/stepTip.tscn b/trainings/stepTip/stepTip.tscn index 3a1cb37..ad079bc 100644 --- a/trainings/stepTip/stepTip.tscn +++ b/trainings/stepTip/stepTip.tscn @@ -46,18 +46,22 @@ horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 1 -[node name="Control2" type="Control" parent="PanelContainer/VBoxContainer"] +[node name="ScrollContainer" type="ScrollContainer" parent="PanelContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 6.0 -[node name="ColorRect" type="ColorRect" parent="PanelContainer/VBoxContainer/Control2"] +[node name="Control2" type="Control" parent="PanelContainer/VBoxContainer/ScrollContainer"] +layout_mode = 2 +size_flags_stretch_ratio = 6.0 + +[node name="ColorRect" type="ColorRect" parent="PanelContainer/VBoxContainer/ScrollContainer/Control2"] layout_mode = 0 offset_right = 300.0 offset_bottom = 180.0 color = Color(0.0509804, 0.388235, 0.752941, 0.447059) -[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/Control2"] +[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/ScrollContainer/Control2"] layout_mode = 0 offset_left = 14.0 offset_top = 4.0 @@ -76,6 +80,7 @@ offset_bottom = 30.0 color = Color(0.0509804, 0.388235, 0.752941, 1) [node name="Restart" type="TextureButton" parent="PanelContainer/VBoxContainer/Control3"] +layout_mode = 0 offset_left = 5.0 offset_top = 2.0 offset_right = 57.0