Dialogue responses rework
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://7uw7j7ymucjx"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://7uw7j7ymucjx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bopx5vxrplpny" path="res://Dialogues/balloon.gd" id="1_qpb08"]
|
||||
[ext_resource type="FontFile" uid="uid://dv8ppra5tgn1t" path="res://Art/Fonts/PixelatedEleganceRegular-ovyAA.ttf" id="2_iaaie"]
|
||||
@@ -43,6 +43,17 @@ MarginContainer/constants/margin_right = 30
|
||||
MarginContainer/constants/margin_top = 15
|
||||
Panel/styles/panel = SubResource("StyleBoxEmpty_cypdp")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qpb08"]
|
||||
content_margin_left = 20.0
|
||||
content_margin_top = 20.0
|
||||
content_margin_right = 20.0
|
||||
content_margin_bottom = 20.0
|
||||
bg_color = Color(0.19607843, 0.19607843, 0.19607843, 1)
|
||||
|
||||
[sub_resource type="Theme" id="Theme_iaaie"]
|
||||
RichTextLabel/constants/line_separation = 5
|
||||
RichTextLabel/styles/normal = SubResource("StyleBoxFlat_qpb08")
|
||||
|
||||
[node name="ExampleBalloon" type="CanvasLayer"]
|
||||
layer = 99
|
||||
script = ExtResource("1_qpb08")
|
||||
@@ -142,15 +153,26 @@ unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
script = ExtResource("4_n1yqk")
|
||||
response_template = NodePath("ResponseExample")
|
||||
response_template = NodePath("ResponseTemplate")
|
||||
|
||||
[node name="ResponseExample" type="Button" parent="Balloon/Responses/ResponsesMenu"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_iaaie")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "What brought you here ?"
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="ResponseTemplate" type="RichTextLabel" parent="Balloon/Responses/ResponsesMenu"]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_iaaie")
|
||||
theme_override_fonts/normal_font = ExtResource("2_iaaie")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "This is a response template. This sentence is used here as an example."
|
||||
fit_content = true
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="gui_input" from="Balloon" to="." method="_on_balloon_gui_input"]
|
||||
[connection signal="gui_input" from="Balloon/Panel" to="." method="_on_balloon_gui_input"]
|
||||
[connection signal="response_selected" from="Balloon/Responses/ResponsesMenu" to="." method="_on_responses_menu_response_selected"]
|
||||
|
||||
Reference in New Issue
Block a user