add chat
This commit is contained in:
51
scenes/ui/chat.tscn
Normal file
51
scenes/ui/chat.tscn
Normal file
@@ -0,0 +1,51 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b3t5vrqb1eym2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/chat.gd" id="1_ulx3h"]
|
||||
|
||||
[node name="Chat" type="CanvasLayer"]
|
||||
script = ExtResource("1_ulx3h")
|
||||
|
||||
[node name="Root" type="MarginContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 50
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_right = 50
|
||||
theme_override_constants/margin_bottom = 20
|
||||
|
||||
[node name="VBox" type="VBoxContainer" parent="Root"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="MsgScroll" type="ScrollContainer" parent="Root/VBox"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="MsgMargin" type="MarginContainer" parent="Root/VBox/MsgScroll"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 30
|
||||
|
||||
[node name="MsgContainer" type="VBoxContainer" parent="Root/VBox/MsgScroll/MsgMargin"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="MessageEdit" type="LineEdit" parent="Root/VBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 26
|
||||
Reference in New Issue
Block a user