[gd_scene load_steps=9 format=3] [ext_resource type="Script" path="res://scenes/ui/CafeCompanionPanel.gd" id="1_script"] [sub_resource type="StyleBoxFlat" id="Style_Panel"] bg_color = Color(0.96, 0.975, 0.982, 0.97) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 border_color = Color(0.46, 0.62, 0.70, 0.28) corner_radius_top_left = 12 corner_radius_top_right = 12 corner_radius_bottom_right = 12 corner_radius_bottom_left = 12 shadow_color = Color(0.06, 0.09, 0.12, 0.22) shadow_size = 12 shadow_offset = Vector2(0, 5) [sub_resource type="StyleBoxFlat" id="Style_Input"] bg_color = Color(1, 1, 1, 0.96) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 border_color = Color(0.55, 0.68, 0.76, 0.36) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 content_margin_left = 12 content_margin_top = 4 content_margin_right = 12 content_margin_bottom = 4 [sub_resource type="StyleBoxEmpty" id="Style_InputLine"] [sub_resource type="StyleBoxFlat" id="Style_ButtonNormal"] bg_color = Color(0.22, 0.56, 0.78, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="Style_ButtonHover"] bg_color = Color(0.29, 0.64, 0.84, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="Style_ButtonPressed"] bg_color = Color(0.16, 0.45, 0.66, 1) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxFlat" id="Style_Close"] bg_color = Color(0.86, 0.91, 0.94, 0.85) corner_radius_top_left = 8 corner_radius_top_right = 8 corner_radius_bottom_right = 8 corner_radius_bottom_left = 8 [sub_resource type="StyleBoxEmpty" id="Style_Empty"] [node name="CafeCompanionPanel" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 script = ExtResource("1_script") [node name="CafeCompanionFrame" type="PanelContainer" parent="."] unique_name_in_owner = true visible = false layout_mode = 1 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -560.0 offset_top = -442.0 offset_right = -28.0 offset_bottom = -28.0 grow_horizontal = 0 grow_vertical = 0 mouse_filter = 0 theme_override_styles/panel = SubResource("Style_Panel") [node name="PanelMargin" type="MarginContainer" parent="CafeCompanionFrame"] layout_mode = 2 theme_override_constants/margin_left = 18 theme_override_constants/margin_top = 16 theme_override_constants/margin_right = 18 theme_override_constants/margin_bottom = 16 [node name="ContentVBox" type="VBoxContainer" parent="CafeCompanionFrame/PanelMargin"] layout_mode = 2 theme_override_constants/separation = 10 [node name="HeaderRow" type="HBoxContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] layout_mode = 2 theme_override_constants/separation = 10 [node name="TitleStack" type="VBoxContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox/HeaderRow"] layout_mode = 2 size_flags_horizontal = 3 theme_override_constants/separation = 2 [node name="TitleLabel" type="Label" parent="CafeCompanionFrame/PanelMargin/ContentVBox/HeaderRow/TitleStack"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(0.13, 0.21, 0.27, 1) theme_override_font_sizes/font_size = 20 text = "陪伴机器人" text_overrun_behavior = 3 [node name="SubtitleLabel" type="Label" parent="CafeCompanionFrame/PanelMargin/ContentVBox/HeaderRow/TitleStack"] unique_name_in_owner = true layout_mode = 2 theme_override_colors/font_color = Color(0.40, 0.50, 0.57, 1) theme_override_font_sizes/font_size = 13 text = "鲸鱼咖啡馆" text_overrun_behavior = 3 [node name="CloseButton" type="Button" parent="CafeCompanionFrame/PanelMargin/ContentVBox/HeaderRow"] unique_name_in_owner = true custom_minimum_size = Vector2(34, 34) layout_mode = 2 focus_mode = 0 mouse_default_cursor_shape = 2 theme_override_colors/font_color = Color(0.20, 0.30, 0.36, 1) theme_override_font_sizes/font_size = 18 theme_override_styles/normal = SubResource("Style_Close") theme_override_styles/hover = SubResource("Style_Close") theme_override_styles/pressed = SubResource("Style_Close") theme_override_styles/focus = SubResource("Style_Empty") text = "x" [node name="ProductList" type="VBoxContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] unique_name_in_owner = true layout_mode = 2 theme_override_constants/separation = 6 [node name="PurchaseButton" type="Button" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 38) layout_mode = 2 focus_mode = 0 mouse_default_cursor_shape = 2 theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("Style_ButtonNormal") theme_override_styles/hover = SubResource("Style_ButtonHover") theme_override_styles/pressed = SubResource("Style_ButtonPressed") theme_override_styles/focus = SubResource("Style_Empty") text = "购买聊天时间" [node name="ChatHistory" type="ScrollContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 270) layout_mode = 2 size_flags_vertical = 3 horizontal_scroll_mode = 0 [node name="MessageList" type="VBoxContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox/ChatHistory"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 1 theme_override_constants/separation = 8 [node name="StatusLabel" type="Label" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 18) layout_mode = 2 theme_override_colors/font_color = Color(0.48, 0.38, 0.22, 1) theme_override_font_sizes/font_size = 13 text = "" text_overrun_behavior = 3 [node name="InputRow" type="HBoxContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox"] custom_minimum_size = Vector2(0, 42) layout_mode = 2 theme_override_constants/separation = 10 [node name="InputShell" type="PanelContainer" parent="CafeCompanionFrame/PanelMargin/ContentVBox/InputRow"] layout_mode = 2 size_flags_horizontal = 3 theme_override_styles/panel = SubResource("Style_Input") [node name="ChatInput" type="LineEdit" parent="CafeCompanionFrame/PanelMargin/ContentVBox/InputRow/InputShell"] unique_name_in_owner = true layout_mode = 2 focus_mode = 2 placeholder_text = "购买后输入消息..." theme_override_colors/font_color = Color(0.16, 0.21, 0.27, 1) theme_override_colors/font_placeholder_color = Color(0.48, 0.56, 0.62, 0.78) theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("Style_InputLine") [node name="SendButton" type="Button" parent="CafeCompanionFrame/PanelMargin/ContentVBox/InputRow"] unique_name_in_owner = true custom_minimum_size = Vector2(72, 40) layout_mode = 2 focus_mode = 0 mouse_default_cursor_shape = 2 theme_override_colors/font_color = Color(1, 1, 1, 1) theme_override_font_sizes/font_size = 16 theme_override_styles/normal = SubResource("Style_ButtonNormal") theme_override_styles/hover = SubResource("Style_ButtonHover") theme_override_styles/pressed = SubResource("Style_ButtonPressed") theme_override_styles/focus = SubResource("Style_Empty") text = "发送"