From c438ce2976c4dda931918c019a25e00104d0cbc2 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 1 Aug 2020 20:27:03 +0300 Subject: Improve dialogue system --- scenes/GUI.tscn | 17 +++++++++++++++++ scenes/Game.tscn | 1 + 2 files changed, 18 insertions(+) (limited to 'scenes') diff --git a/scenes/GUI.tscn b/scenes/GUI.tscn index 5ed79f1..64b3b4e 100644 --- a/scenes/GUI.tscn +++ b/scenes/GUI.tscn @@ -60,3 +60,20 @@ text = "Text" __meta__ = { "_edit_use_anchors_": false } + +[node name="NextButton" type="TextureButton" parent="BottomRow/DialogueBox"] +margin_left = 920.0 +margin_right = 960.0 +margin_bottom = 40.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Label" type="Label" parent="BottomRow/DialogueBox/NextButton"] +anchor_top = 0.2 +anchor_bottom = 0.4 +margin_right = 40.0 +margin_bottom = 14.0 +text = "Next" +valign = 1 +[connection signal="pressed" from="BottomRow/DialogueBox/NextButton" to="." method="_on_NextButton_pressed"] diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 35d3bfd..fe1432f 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -12,3 +12,4 @@ script = ExtResource( 3 ) [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="GUI" parent="CanvasLayer" instance=ExtResource( 2 )] +[connection signal="dialogue_next" from="CanvasLayer/GUI" to="." method="_on_GUI_dialogue_next"] -- cgit v1.3