Files
agame/scenes/ui/multiplayer_chat_ui.tscn
T
2026-09-12 22:18:09 +08:00

77 lines
2.3 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://ccencq0lcd3ph"]
[ext_resource type="Script" uid="uid://c8x9y2z1a3b4c5d6" path="res://scripts/ui/multiplayer_chat_ui.gd" id="1_h7x4v"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_input"]
content_margin_left = 10.0
content_margin_top = 6.0
content_margin_right = 10.0
content_margin_bottom = 6.0
bg_color = Color(0.055, 0.06, 0.07, 0.82)
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color(0.55, 0.58, 0.62, 0.45)
corner_radius_top_left = 6
corner_radius_top_right = 6
corner_radius_bottom_right = 6
corner_radius_bottom_left = 6
[node name="MultiplayerChatUI" type="Control"]
layout_mode = 3
anchors_preset = 0
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 16.0
offset_top = -284.0
offset_right = 496.0
offset_bottom = -16.0
grow_vertical = 0
mouse_filter = 2
script = ExtResource("1_h7x4v")
[node name="ChatLayout" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 8
mouse_filter = 2
[node name="Chat" type="RichTextLabel" parent="ChatLayout"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
theme_override_colors/default_color = Color(0.96, 0.96, 0.96, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.95)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
theme_override_constants/outline_size = 4
theme_override_constants/shadow_offset_x = 2
theme_override_constants/shadow_offset_y = 2
theme_override_font_sizes/normal_font_size = 18
bbcode_enabled = true
scroll_active = false
vertical_alignment = 2
[node name="Message" type="LineEdit" parent="ChatLayout"]
custom_minimum_size = Vector2(0, 38)
layout_mode = 2
mouse_filter = 2
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_placeholder_color = Color(0.72, 0.72, 0.72, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.9)
theme_override_constants/outline_size = 2
theme_override_font_sizes/font_size = 17
theme_override_styles/normal = SubResource("StyleBoxFlat_input")
theme_override_styles/focus = SubResource("StyleBoxFlat_input")
placeholder_text = "Say to all..."
max_length = 100
keep_editing_on_text_submit = true
[node name="FeedTimer" type="Timer" parent="."]
wait_time = 6.0
one_shot = true