feat(ui): migrate hand area to FlowContainer for auto-wrap
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://hand_area"]
|
[gd_scene load_steps=2 format=3 uid="uid://hand_area"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://src/ui/components/hand_area.gd" id="1_script"]
|
[ext_resource type="Script" path="res://src/ui/components/hand_area.gd" id="1_script"]
|
||||||
[node name="HandArea" type="HBoxContainer"]
|
|
||||||
offset_right = 800.0
|
[node name="HandArea" type="FlowContainer"]
|
||||||
offset_bottom = 150.0
|
|
||||||
script = ExtResource("1_script")
|
script = ExtResource("1_script")
|
||||||
|
|||||||
@@ -40,21 +40,21 @@ mouse_filter = 1
|
|||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_top = 380.0
|
offset_top = 380.0
|
||||||
offset_right = 1280.0
|
offset_right = 1280.0
|
||||||
offset_bottom = 520.0
|
offset_bottom = 660.0
|
||||||
horizontal_scroll_mode = 2
|
horizontal_scroll_mode = 0
|
||||||
vertical_scroll_mode = 0
|
vertical_scroll_mode = 2
|
||||||
|
|
||||||
[node name="HandArea" type="HBoxContainer" parent="ScrollContainer"]
|
[node name="HandArea" type="FlowContainer" parent="ScrollContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 0
|
size_flags_horizontal = 3
|
||||||
script = ExtResource("2_script")
|
script = ExtResource("2_script")
|
||||||
custom_minimum_size = Vector2(2200, 140)
|
custom_minimum_size = Vector2(1240, 200)
|
||||||
|
|
||||||
[node name="Buttons" type="HBoxContainer" parent="."]
|
[node name="Buttons" type="HBoxContainer" parent="."]
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_top = 540.0
|
offset_top = 670.0
|
||||||
offset_right = 1280.0
|
offset_right = 1280.0
|
||||||
offset_bottom = 600.0
|
offset_bottom = 710.0
|
||||||
alignment = 1
|
alignment = 1
|
||||||
|
|
||||||
[node name="PlayButton" type="Button" parent="Buttons"]
|
[node name="PlayButton" type="Button" parent="Buttons"]
|
||||||
|
|||||||
Reference in New Issue
Block a user