diff --git a/trainings/stepTip/stepTip.gd b/trainings/stepTip/stepTip.gd index 8cfc8eb..58e31ce 100644 --- a/trainings/stepTip/stepTip.gd +++ b/trainings/stepTip/stepTip.gd @@ -8,7 +8,7 @@ func _ready(): func updateOperationTip(desc): operationTip = desc - $PanelContainer/VBoxContainer/ScrollContainer/Control2/Label.text = desc + $PanelContainer/VBoxContainer/Control2/ScrollContainer/Label.text = desc func _on_restart_button_down(): diff --git a/trainings/stepTip/stepTip.tscn b/trainings/stepTip/stepTip.tscn index ad079bc..7750bab 100644 --- a/trainings/stepTip/stepTip.tscn +++ b/trainings/stepTip/stepTip.tscn @@ -46,27 +46,28 @@ horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 1 -[node name="ScrollContainer" type="ScrollContainer" parent="PanelContainer/VBoxContainer"] +[node name="Control2" type="Control" parent="PanelContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 size_flags_stretch_ratio = 6.0 -[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"] +[node name="ColorRect" type="ColorRect" parent="PanelContainer/VBoxContainer/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/ScrollContainer/Control2"] +[node name="ScrollContainer" type="ScrollContainer" parent="PanelContainer/VBoxContainer/Control2"] layout_mode = 0 -offset_left = 14.0 -offset_top = 4.0 -offset_right = 285.0 -offset_bottom = 175.0 +offset_left = 11.0 +offset_top = 6.0 +offset_right = 291.0 +offset_bottom = 181.0 + +[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/Control2/ScrollContainer"] +clip_contents = true +custom_minimum_size = Vector2(280, 0) +layout_mode = 2 autowrap_mode = 1 [node name="Control3" type="Control" parent="PanelContainer/VBoxContainer"]