fix: refine board collisions and world text

This commit is contained in:
2026-03-11 06:53:47 +08:00
parent 7e65137922
commit dde92737b6
7 changed files with 80 additions and 31 deletions

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=3]
[gd_scene load_steps=4 format=3]
[ext_resource type="Script" uid="uid://b4aorojcbwkmb" path="res://scenes/ui/ChatBubble.gd" id="1_script"]
[ext_resource type="Theme" path="res://assets/ui/world_text_theme.tres" id="2_theme"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bubble_modern"]
bg_color = Color(1, 1, 1, 0.9)
@@ -8,6 +9,10 @@ corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
content_margin_left = 10.0
content_margin_top = 6.0
content_margin_right = 10.0
content_margin_bottom = 6.0
shadow_color = Color(0, 0, 0, 0.2)
shadow_size = 2
@@ -15,6 +20,7 @@ shadow_size = 2
layout_mode = 3
anchors_preset = 0
script = ExtResource("1_script")
theme = ExtResource("2_theme")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 1
@@ -23,10 +29,10 @@ anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -75.0
offset_top = -60.0
offset_right = 75.0
offset_bottom = -20.0
offset_left = -120.0
offset_top = -86.0
offset_right = 120.0
offset_bottom = -26.0
grow_horizontal = 2
grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_bubble_modern")
@@ -34,9 +40,9 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_bubble_modern")
[node name="Label" type="Label" parent="PanelContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0.1, 0.1, 0.1, 1)
theme_override_font_sizes/font_size = 8
theme_override_font_sizes/font_size = 12
text = "..."
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
custom_minimum_size = Vector2(150, 0)
custom_minimum_size = Vector2(220, 0)