步骤提示添加滚动条

This commit is contained in:
joylink_zhaoerwei 2024-06-04 10:46:55 +08:00
parent ce02f12806
commit 72ce6d9d78
2 changed files with 13 additions and 12 deletions

View File

@ -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():

View File

@ -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"]