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