diary/user_interface/chat_panel/chat_panel.tscn

84 lines
2.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=6 format=2]
[ext_resource path="res://user_interface/main.theme" type="Theme" id=1]
[ext_resource path="res://user_interface/utility_controls/content_fit_text_edit.gd" type="Script" id=2]
[ext_resource path="res://user_interface/chat_panel/message_box.gd" type="Script" id=3]
[ext_resource path="res://user_interface/chat_panel/message_feed.gd" type="Script" id=4]
[ext_resource path="res://sounds/message_denied.wav" type="AudioStream" id=5]
[node name="ChatPanel" type="VBoxContainer"]
margin_left = 336.0
margin_right = 1008.0
margin_bottom = 472.0
size_flags_horizontal = 3
theme = ExtResource( 1 )
[node name="MessageFeed" type="PanelContainer" parent="."]
margin_right = 672.0
margin_bottom = 422.0
size_flags_vertical = 3
script = ExtResource( 4 )
[node name="MarginContainer" type="MarginContainer" parent="MessageFeed"]
margin_right = 672.0
margin_bottom = 422.0
[node name="ScrollContainer" type="ScrollContainer" parent="MessageFeed/MarginContainer"]
margin_left = 8.0
margin_top = 8.0
margin_right = 664.0
margin_bottom = 414.0
scroll_horizontal_enabled = false
[node name="MarginContainer" type="MarginContainer" parent="MessageFeed/MarginContainer/ScrollContainer"]
margin_right = 656.0
size_flags_horizontal = 3
custom_constants/margin_right = 32
custom_constants/margin_top = 0
custom_constants/margin_left = 32
custom_constants/margin_bottom = 0
[node name="MessageFeedContainer" type="VBoxContainer" parent="MessageFeed/MarginContainer/ScrollContainer/MarginContainer"]
margin_left = 32.0
margin_right = 624.0
size_flags_horizontal = 3
custom_constants/separation = 12
[node name="MessageBox" type="PanelContainer" parent="."]
margin_top = 430.0
margin_right = 672.0
margin_bottom = 472.0
rect_min_size = Vector2( 0, 29 )
script = ExtResource( 3 )
[node name="MarginContainer" type="MarginContainer" parent="MessageBox"]
margin_right = 672.0
margin_bottom = 42.0
custom_constants/margin_right = 12
custom_constants/margin_top = 13
custom_constants/margin_left = 12
custom_constants/margin_bottom = 11
[node name="ContentFitTextEdit" type="TextEdit" parent="MessageBox/MarginContainer"]
margin_left = 12.0
margin_top = 13.0
margin_right = 660.0
margin_bottom = 31.0
rect_min_size = Vector2( 0, 18 )
context_menu_enabled = false
virtual_keyboard_enabled = false
wrap_enabled = true
caret_blink = true
script = ExtResource( 2 )
expansion_target = NodePath("../..")
height_addition = 27
max_height = 200
placeholder = "Type Message"
[node name="MessageDeniedSound" type="AudioStreamPlayer" parent="MessageBox"]
stream = ExtResource( 5 )
volume_db = -6.0
[connection signal="confirmed" from="MessageBox/MarginContainer/ContentFitTextEdit" to="MessageFeed" method="_on_message_box_confirmed"]
[connection signal="confirmed" from="MessageBox/MarginContainer/ContentFitTextEdit" to="MessageBox" method="_on_message_box_confirmed"]