[gd_scene format=3 uid="uid://cpvi6t0yrunsu"]

[ext_resource type="Script" uid="uid://dxglerf7e7p5j" path="res://scripts/chat_ui.gd" id="1_chat_ui"]
[ext_resource type="FontFile" uid="uid://chp4isvj6x8bm" path="res://assets/fonts/Metropolis/TrueType/Metropolis-Regular.ttf" id="2_metropolis"]

[sub_resource type="Theme" id="Theme_metropolis"]
default_font = ExtResource("2_metropolis")
default_font_size = 12

[node name="ChatUI" type="CanvasLayer" unique_id=2000000000]
layer = 200
script = ExtResource("1_chat_ui")

[node name="ChatContainer" type="Control" parent="." unique_id=-1294967296]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -200.0
offset_right = 400.0
offset_bottom = -10.0
grow_horizontal = 0
grow_vertical = 0
mouse_filter = 1

[node name="BottomLeft" type="MarginContainer" parent="ChatContainer" unique_id=-294967296]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 1

[node name="Background" type="ColorRect" parent="ChatContainer/BottomLeft" unique_id=705032704]
visible = false
layout_mode = 2
mouse_filter = 1
color = Color(0, 0, 0, 0.5)

[node name="VBox" type="VBoxContainer" parent="ChatContainer/BottomLeft" unique_id=1705032704]
layout_mode = 2
mouse_filter = 2

[node name="MessageScroll" type="ScrollContainer" parent="ChatContainer/BottomLeft/VBox" unique_id=-1589934592]
custom_minimum_size = Vector2(380, 150)
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 1
scroll_horizontal_enabled = false
scroll_vertical_enabled = true

[node name="MessageList" type="VBoxContainer" parent="ChatContainer/BottomLeft/VBox/MessageScroll" unique_id=-589934592]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
mouse_filter = 1

[node name="ChatInput" type="LineEdit" parent="ChatContainer/BottomLeft/VBox" unique_id=1410065408]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme = SubResource("Theme_metropolis")
placeholder_text = "Type a message..."
