SupaLidlGame/addons/dialogue_manager/example_balloon/example_balloon.tscn

150 lines
4.5 KiB
Plaintext
Raw Normal View History

2024-04-08 14:42:12 -07:00
[gd_scene load_steps=9 format=3 uid="uid://73jm5qjy52vq"]
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[ext_resource type="Script" path="res://addons/dialogue_manager/example_balloon/example_balloon.gd" id="1_36de5"]
2023-07-27 11:39:38 -07:00
[ext_resource type="PackedScene" uid="uid://ckvgyvclnwggo" path="res://addons/dialogue_manager/dialogue_label.tscn" id="2_a8ve6"]
2024-04-08 14:42:12 -07:00
[ext_resource type="Script" path="res://addons/dialogue_manager/dialogue_reponses_menu.gd" id="3_72ixx"]
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_spyqn"]
bg_color = Color(0, 0, 0, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.329412, 0.329412, 0.329412, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ri4m3"]
bg_color = Color(0.121569, 0.121569, 0.121569, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(1, 1, 1, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e0njw"]
bg_color = Color(0, 0, 0, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
border_color = Color(0.6, 0.6, 0.6, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uy0d5"]
bg_color = Color(0, 0, 0, 1)
border_width_left = 3
border_width_top = 3
border_width_right = 3
border_width_bottom = 3
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="Theme" id="Theme_qq3yp"]
default_font_size = 20
Button/styles/disabled = SubResource("StyleBoxFlat_spyqn")
Button/styles/focus = SubResource("StyleBoxFlat_ri4m3")
Button/styles/hover = SubResource("StyleBoxFlat_e0njw")
Button/styles/normal = SubResource("StyleBoxFlat_e0njw")
MarginContainer/constants/margin_bottom = 15
MarginContainer/constants/margin_left = 30
MarginContainer/constants/margin_right = 30
MarginContainer/constants/margin_top = 15
Panel/styles/panel = SubResource("StyleBoxFlat_uy0d5")
2023-07-27 11:39:38 -07:00
[node name="ExampleBalloon" type="CanvasLayer"]
layer = 100
2024-04-08 14:42:12 -07:00
script = ExtResource("1_36de5")
[node name="Balloon" type="Control" parent="."]
unique_name_in_owner = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_qq3yp")
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[node name="Panel" type="Panel" parent="Balloon"]
clip_children = 2
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 21.0
offset_top = -183.0
offset_right = -19.0
offset_bottom = -19.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 1
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[node name="Dialogue" type="MarginContainer" parent="Balloon/Panel"]
layout_mode = 1
anchors_preset = 15
2023-07-27 11:39:38 -07:00
anchor_right = 1.0
2024-04-08 14:42:12 -07:00
anchor_bottom = 1.0
2023-07-27 11:39:38 -07:00
grow_horizontal = 2
2024-04-08 14:42:12 -07:00
grow_vertical = 2
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[node name="VBoxContainer" type="VBoxContainer" parent="Balloon/Panel/Dialogue"]
2023-07-27 11:39:38 -07:00
layout_mode = 2
2024-04-08 14:42:12 -07:00
[node name="CharacterLabel" type="RichTextLabel" parent="Balloon/Panel/Dialogue/VBoxContainer"]
unique_name_in_owner = true
2023-07-27 11:39:38 -07:00
modulate = Color(1, 1, 1, 0.501961)
layout_mode = 2
mouse_filter = 1
bbcode_enabled = true
text = "Character"
fit_content = true
scroll_active = false
2024-04-08 14:42:12 -07:00
[node name="DialogueLabel" parent="Balloon/Panel/Dialogue/VBoxContainer" instance=ExtResource("2_a8ve6")]
unique_name_in_owner = true
2023-07-27 11:39:38 -07:00
layout_mode = 2
2024-04-08 14:42:12 -07:00
size_flags_vertical = 3
text = "Dialogue..."
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[node name="Responses" type="MarginContainer" parent="Balloon"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -147.0
offset_top = -558.0
offset_right = 494.0
offset_bottom = -154.0
grow_horizontal = 2
grow_vertical = 0
[node name="ResponsesMenu" type="VBoxContainer" parent="Balloon/Responses" node_paths=PackedStringArray("response_template")]
unique_name_in_owner = true
2023-07-27 11:39:38 -07:00
layout_mode = 2
2024-04-08 14:42:12 -07:00
size_flags_vertical = 8
2023-07-27 11:39:38 -07:00
theme_override_constants/separation = 2
2024-04-08 14:42:12 -07:00
script = ExtResource("3_72ixx")
response_template = NodePath("ResponseExample")
2023-07-27 11:39:38 -07:00
2024-04-08 14:42:12 -07:00
[node name="ResponseExample" type="Button" parent="Balloon/Responses/ResponsesMenu"]
2023-07-27 11:39:38 -07:00
layout_mode = 2
2024-04-08 14:42:12 -07:00
text = "Response example"
2023-07-27 11:39:38 -07:00
[connection signal="gui_input" from="Balloon" to="." method="_on_balloon_gui_input"]
2024-04-08 14:42:12 -07:00
[connection signal="response_selected" from="Balloon/Responses/ResponsesMenu" to="." method="_on_responses_menu_response_selected"]