online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/chat/Chat.tscn')
| -rw-r--r-- | ui/chat/Chat.tscn | 273 |
1 files changed, 273 insertions, 0 deletions
diff --git a/ui/chat/Chat.tscn b/ui/chat/Chat.tscn new file mode 100644 index 0000000..6676503 --- /dev/null +++ b/ui/chat/Chat.tscn @@ -0,0 +1,273 @@ +[gd_scene load_steps=35 format=2] + +[ext_resource path="res://assets/ui/whitespace.png" type="Texture" id=1] +[ext_resource path="res://ui/chat/Chat.gd" type="Script" id=2] +[ext_resource path="res://assets/ui/verdana-bold.ttf" type="DynamicFontData" id=3] +[ext_resource path="res://assets/ui/button.png" type="Texture" id=4] +[ext_resource path="res://assets/ui/send.png" type="Texture" id=5] +[ext_resource path="res://ui/barbutton/BarTextureButton.tscn" type="PackedScene" id=6] +[ext_resource path="res://assets/ui/CascadiaCode.ttf" type="DynamicFontData" id=7] +[ext_resource path="res://ui/theme/flatblack.tres" type="StyleBox" id=8] +[ext_resource path="res://assets/ui/verdana.ttf" type="DynamicFontData" id=9] +[ext_resource path="res://assets/ui/checkedbox.png" type="Texture" id=10] +[ext_resource path="res://ui/theme/transblack.tres" type="StyleBox" id=11] +[ext_resource path="res://ui/theme/buttonhover.tres" type="StyleBox" id=12] +[ext_resource path="res://assets/ui/verdana-bold-italic.ttf" type="DynamicFontData" id=13] +[ext_resource path="res://ui/theme/button.tres" type="StyleBox" id=14] + +[sub_resource type="StyleBoxTexture" id=6] +texture = ExtResource( 4 ) +region_rect = Rect2( 0, 0, 84, 84 ) +margin_left = 28.0 +margin_right = 28.0 +margin_top = 28.0 +margin_bottom = 28.0 +modulate_color = Color( 0.772549, 0.772549, 0.772549, 0.54902 ) + +[sub_resource type="StyleBoxEmpty" id=7] + +[sub_resource type="StyleBoxEmpty" id=8] + +[sub_resource type="StyleBoxEmpty" id=9] + +[sub_resource type="StyleBoxEmpty" id=4] + +[sub_resource type="StyleBoxFlat" id=3] +bg_color = Color( 0.0784314, 0.0784314, 0.0784314, 1 ) +border_width_left = 2 +border_width_top = 2 +border_width_right = 2 +border_width_bottom = 2 +border_color = Color( 1, 1, 1, 1 ) +corner_detail = 20 +expand_margin_left = 10.0 +expand_margin_right = 10.0 + +[sub_resource type="DynamicFont" id=18] +size = 20 +font_data = ExtResource( 3 ) + +[sub_resource type="DynamicFont" id=19] +size = 20 +font_data = ExtResource( 13 ) + +[sub_resource type="DynamicFont" id=14] +size = 20 +font_data = ExtResource( 7 ) + +[sub_resource type="DynamicFont" id=20] +size = 25 +font_data = ExtResource( 9 ) + +[sub_resource type="StyleBoxFlat" id=10] +content_margin_left = 30.0 +content_margin_right = 30.0 +content_margin_top = 30.0 +content_margin_bottom = 30.0 +bg_color = Color( 0, 0, 0, 0.313726 ) +border_blend = true +corner_radius_top_left = 50 +corner_radius_top_right = 50 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 +corner_detail = 15 + +[sub_resource type="StyleBoxFlat" id=12] +content_margin_left = 10.0 +content_margin_right = 10.0 +bg_color = Color( 0, 0, 0, 0.313726 ) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 1 +border_color = Color( 0, 0, 0, 0.392157 ) + +[sub_resource type="StyleBoxFlat" id=11] +content_margin_left = 10.0 +content_margin_right = 10.0 +bg_color = Color( 0.188235, 0.188235, 0.188235, 1 ) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 1 +border_color = Color( 0, 0, 0, 0.392157 ) + +[sub_resource type="StyleBoxEmpty" id=5] + +[sub_resource type="StyleBoxFlat" id=13] +content_margin_left = 10.0 +content_margin_right = 10.0 +content_margin_bottom = 10.0 +bg_color = Color( 0, 0, 0, 0.588235 ) +border_width_top = 65 +border_color = Color( 0.180392, 0.180392, 0.180392, 1 ) +corner_radius_top_left = 30 +corner_radius_top_right = 30 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 +corner_detail = 15 +expand_margin_top = 65.0 + +[sub_resource type="DynamicFont" id=15] +size = 20 +font_data = ExtResource( 3 ) + +[sub_resource type="Theme" id=16] +default_font = SubResource( 15 ) +Button/colors/font_color = Color( 1, 1, 1, 1 ) +Button/colors/font_color_disabled = Color( 1, 1, 1, 0.305882 ) +Button/colors/font_color_focus = Color( 1, 1, 1, 1 ) +Button/colors/font_color_hover = Color( 0, 0, 0, 1 ) +Button/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +Button/styles/disabled = SubResource( 6 ) +Button/styles/focus = ExtResource( 14 ) +Button/styles/hover = ExtResource( 12 ) +Button/styles/normal = ExtResource( 14 ) +Button/styles/pressed = ExtResource( 14 ) +CheckBox/icons/checked = ExtResource( 10 ) +CheckBox/icons/checked_disabled = null +CheckBox/icons/radio_checked = null +CheckBox/icons/radio_checked_disabled = null +CheckBox/icons/radio_unchecked = null +CheckBox/icons/radio_unchecked_disabled = null +CheckBox/icons/unchecked = ExtResource( 4 ) +CheckBox/icons/unchecked_disabled = null +ColorPicker/icons/color_sample = ExtResource( 1 ) +ColorPicker/icons/overbright_indicator = ExtResource( 1 ) +ColorPicker/icons/preset_bg = ExtResource( 1 ) +ColorPicker/icons/screen_picker = ExtResource( 1 ) +ColorPickerButton/colors/font_color = Color( 1, 1, 1, 1 ) +ColorPickerButton/colors/font_color_disabled = Color( 1, 1, 1, 0.301961 ) +ColorPickerButton/colors/font_color_focus = Color( 1, 1, 1, 1 ) +ColorPickerButton/colors/font_color_hover = Color( 1, 1, 1, 1 ) +ColorPickerButton/colors/font_color_pressed = Color( 0.913725, 0.913725, 0.913725, 1 ) +ColorPickerButton/icons/bg = ExtResource( 1 ) +HBoxContainer/constants/separation = 15 +HSlider/styles/grabber_area = SubResource( 7 ) +HSlider/styles/grabber_area_highlight = SubResource( 8 ) +HSlider/styles/slider = SubResource( 9 ) +ItemList/colors/font_color = Color( 1, 1, 1, 1 ) +ItemList/colors/font_color_selected = Color( 0.905882, 0.905882, 0.905882, 1 ) +ItemList/styles/bg = SubResource( 4 ) +ItemList/styles/bg_focus = ExtResource( 8 ) +LineEdit/colors/cursor_color = Color( 1, 1, 1, 1 ) +LineEdit/colors/font_color = Color( 1, 1, 1, 1 ) +LineEdit/colors/font_color_uneditable = Color( 1, 1, 1, 0.67451 ) +LineEdit/styles/focus = ExtResource( 14 ) +LineEdit/styles/normal = ExtResource( 14 ) +LineEdit/styles/read_only = ExtResource( 14 ) +OptionButton/colors/font_color = Color( 1, 1, 1, 1 ) +OptionButton/colors/font_color_focus = Color( 1, 1, 1, 1 ) +OptionButton/colors/font_color_hover = Color( 0, 0, 0, 1 ) +OptionButton/colors/font_color_pressed = Color( 1, 1, 1, 1 ) +OptionButton/icons/arrow = ExtResource( 1 ) +PopupMenu/colors/font_color = Color( 1, 1, 1, 1 ) +PopupMenu/colors/font_color_accel = Color( 1, 1, 1, 0.8 ) +PopupMenu/colors/font_color_hover = Color( 1, 1, 1, 1 ) +PopupMenu/colors/font_color_separator = Color( 0.262745, 0.262745, 0.262745, 1 ) +PopupMenu/icons/radio_checked = ExtResource( 1 ) +PopupMenu/icons/radio_unchecked = ExtResource( 1 ) +PopupMenu/styles/hover = SubResource( 3 ) +PopupMenu/styles/panel = ExtResource( 8 ) +PopupPanel/styles/panel = ExtResource( 11 ) +RichTextLabel/colors/default_color = Color( 1, 1, 1, 1 ) +RichTextLabel/fonts/bold_font = SubResource( 18 ) +RichTextLabel/fonts/bold_italics_font = SubResource( 19 ) +RichTextLabel/fonts/italics_font = SubResource( 19 ) +RichTextLabel/fonts/mono_font = SubResource( 14 ) +RichTextLabel/fonts/normal_font = SubResource( 20 ) +SpinBox/icons/updown = ExtResource( 1 ) +TabContainer/colors/font_color_bg = Color( 0.709804, 0.709804, 0.709804, 0.72549 ) +TabContainer/colors/font_color_fg = Color( 1, 1, 1, 1 ) +TabContainer/styles/panel = SubResource( 10 ) +TabContainer/styles/tab_bg = SubResource( 12 ) +TabContainer/styles/tab_fg = SubResource( 11 ) +VBoxContainer/constants/separation = 15 +VScrollBar/styles/scroll = SubResource( 5 ) +WindowDialog/colors/title_color = Color( 1, 1, 1, 1 ) +WindowDialog/constants/close_h_ofs = 0 +WindowDialog/constants/close_v_ofs = 0 +WindowDialog/constants/title_height = 60 +WindowDialog/icons/close = ExtResource( 1 ) +WindowDialog/icons/close_highlight = ExtResource( 1 ) +WindowDialog/styles/panel = SubResource( 13 ) + +[sub_resource type="StyleBoxFlat" id=17] +content_margin_left = 10.0 +content_margin_right = 10.0 +content_margin_top = 10.0 +content_margin_bottom = 10.0 +bg_color = Color( 0, 0, 0, 0.313726 ) + +[sub_resource type="StyleBoxFlat" id=1] +content_margin_left = 10.0 +content_margin_right = 10.0 +bg_color = Color( 0.192157, 0.192157, 0.192157, 1 ) + +[sub_resource type="StyleBoxFlat" id=2] +content_margin_left = 10.0 +content_margin_right = 10.0 +bg_color = Color( 0.0980392, 0.0980392, 0.0980392, 1 ) + +[node name="Chat" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 300, 0 ) +theme = SubResource( 16 ) +script = ExtResource( 2 ) + +[node name="v" type="VBoxContainer" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 +custom_constants/separation = 0 + +[node name="Panel" type="Panel" parent="v"] +margin_right = 1422.0 +margin_bottom = 740.0 +size_flags_vertical = 3 +custom_styles/panel = SubResource( 17 ) + +[node name="scroller" type="ScrollContainer" parent="v/Panel"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 16.0 +scroll_horizontal_enabled = false + +[node name="labels" type="VBoxContainer" parent="v/Panel/scroller"] +margin_right = 1406.0 +size_flags_horizontal = 3 +size_flags_vertical = 2 + +[node name="h" type="HBoxContainer" parent="v"] +margin_top = 740.0 +margin_right = 1422.0 +margin_bottom = 800.0 +custom_constants/separation = 0 + +[node name="text" type="TextEdit" parent="v/h"] +margin_right = 1362.0 +margin_bottom = 60.0 +rect_min_size = Vector2( 0, 60 ) +size_flags_horizontal = 3 +custom_styles/focus = SubResource( 1 ) +custom_styles/normal = SubResource( 2 ) +text = "hello ! write text here !" +show_line_numbers = true +context_menu_enabled = false +smooth_scrolling = true +wrap_enabled = true +minimap_draw = true +minimap_width = 50 +caret_blink = true + +[node name="send" parent="v/h" instance=ExtResource( 6 )] +margin_left = 1362.0 +margin_right = 1422.0 +margin_bottom = 60.0 +rect_min_size = Vector2( 60, 60 ) +focus_mode = 2 +enabled_focus_mode = 2 +texture_normal = ExtResource( 5 ) +normal_color = Color( 0, 0, 0, 0.784314 ) + +[connection signal="pressed" from="v/h/send" to="." method="send"] |