initial shit
This commit is contained in:
73
GameShit/PlayerController/ChatSystem/ChatBox.tscn
Normal file
73
GameShit/PlayerController/ChatSystem/ChatBox.tscn
Normal file
@@ -0,0 +1,73 @@
|
||||
[gd_scene format=3 uid="uid://bliihydr5ja7g"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bv7jebheo3yyf" path="res://GameShit/PlayerController/ChatSystem/ChatBox.gd" id="1_u837s"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bq26o"]
|
||||
bg_color = Color(0.043137256, 0.043137256, 0.043137256, 0.6509804)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u837s"]
|
||||
bg_color = Color(0.14767182, 0.14767182, 0.14767176, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_aksbt"]
|
||||
bg_color = Color(0.24840015, 0.24840021, 0.24840006, 1)
|
||||
|
||||
[node name="ChatBox" type="Control" unique_id=756491211]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_u837s")
|
||||
|
||||
[node name="Panel" type="Panel" parent="." unique_id=1311922339]
|
||||
layout_mode = 0
|
||||
offset_right = 384.0
|
||||
offset_bottom = 264.0
|
||||
|
||||
[node name="Panel2" type="Panel" parent="Panel" unique_id=1474934579]
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 376.0
|
||||
offset_bottom = 256.0
|
||||
|
||||
[node name="TextDisplay" type="RichTextLabel" parent="Panel/Panel2" unique_id=575967085]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 360.0
|
||||
offset_bottom = 200.0
|
||||
theme_override_font_sizes/normal_font_size = 10
|
||||
theme_override_font_sizes/bold_font_size = 10
|
||||
theme_override_font_sizes/bold_italics_font_size = 10
|
||||
theme_override_font_sizes/italics_font_size = 10
|
||||
theme_override_font_sizes/mono_font_size = 10
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_bq26o")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_u837s")
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="Input" type="LineEdit" parent="Panel/Panel2" unique_id=484855696]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 8.0
|
||||
offset_top = 208.0
|
||||
offset_right = 304.0
|
||||
offset_bottom = 239.0
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_aksbt")
|
||||
theme_override_styles/read_only = SubResource("StyleBoxFlat_aksbt")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_aksbt")
|
||||
placeholder_text = "Type a message or command!"
|
||||
|
||||
[node name="Send" type="Button" parent="Panel/Panel2" unique_id=1540729483]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 312.0
|
||||
offset_top = 208.0
|
||||
offset_right = 360.0
|
||||
offset_bottom = 240.0
|
||||
text = "Send"
|
||||
|
||||
[connection signal="text_submitted" from="Panel/Panel2/Input" to="." method="_on_input_text_submitted"]
|
||||
[connection signal="pressed" from="Panel/Panel2/Send" to="." method="_parseMessage"]
|
||||
Reference in New Issue
Block a user