diff options
Diffstat (limited to 'scenes/LegallyDistinctPaperclipAssistant')
-rw-r--r-- | scenes/LegallyDistinctPaperclipAssistant/paperclip.gd | 6 | ||||
-rw-r--r-- | scenes/LegallyDistinctPaperclipAssistant/window.tscn | 157 |
2 files changed, 158 insertions, 5 deletions
diff --git a/scenes/LegallyDistinctPaperclipAssistant/paperclip.gd b/scenes/LegallyDistinctPaperclipAssistant/paperclip.gd index d431372..3a87c66 100644 --- a/scenes/LegallyDistinctPaperclipAssistant/paperclip.gd +++ b/scenes/LegallyDistinctPaperclipAssistant/paperclip.gd @@ -10,7 +10,7 @@ var label: Label var timer: Timer var panel: Panel -var current_text = START_TEXT +@export_multiline var current_text = START_TEXT # Called when the node enters the scene tree for the first time. func _ready() -> void: @@ -49,3 +49,7 @@ func _on_timer_timeout() -> void: angy.visible = false current_text = "" timer.stop() + + +func start_dialogue(): + $AnimationPlayer.play("intro") diff --git a/scenes/LegallyDistinctPaperclipAssistant/window.tscn b/scenes/LegallyDistinctPaperclipAssistant/window.tscn index cfea78b..b21fb13 100644 --- a/scenes/LegallyDistinctPaperclipAssistant/window.tscn +++ b/scenes/LegallyDistinctPaperclipAssistant/window.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://bbg7lnak6kup7"] +[gd_scene load_steps=11 format=3 uid="uid://bbg7lnak6kup7"] [ext_resource type="Texture2D" uid="uid://b1t8f4nb5aahv" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png" id="1_bqw21"] [ext_resource type="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"] @@ -18,6 +18,147 @@ corner_radius_top_right = 20 corner_radius_bottom_right = 20 corner_radius_bottom_left = 20 +[sub_resource type="Animation" id="Animation_4fk4l"] +resource_name = "intro" +length = 20.0 +step = 1.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Label:visible_ratio") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0.0333333, 1.83333, 3.98355, 4.0012, 7, 9.98541, 10, 12, 13.616, 13.64, 14.8426), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), +"update": 0, +"values": [0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = false +tracks/1/path = NodePath("Label:text") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0, 4, 10, 13.64), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": ["Hi, I'm your legally +distinct paperclip +assistant, +Clippette...", "As you know, fishing +isn't very lucrative. +You make the real +big bucks by investing +in fish on the open +market.", "There's only one rule +to this game: buy low, +sell high.", "And don't go +bankrupt. +"] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = false +tracks/2/path = NodePath("Label:visible_ratio") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0, 3.9), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [0.0, 0.0] +} +tracks/3/type = "method" +tracks/3/imported = false +tracks/3/enabled = false +tracks/3/path = NodePath("AnimationPlayer") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(4.0261), +"transitions": PackedFloat32Array(1), +"values": [{ +"args": [&"intro2", -1, 1.0, false], +"method": &"play" +}] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath(".:current_text") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0, 4, 9.98254, 13.64), +"transitions": PackedFloat32Array(1, 1, 1, 1), +"update": 1, +"values": ["Hi, I'm your legally +distinct paperclip +assistant, +Clippette...", "As you know, fishing +isn't very lucrative. +You make the real +big bucks by investing +in fish on the open +market.", "There's only one rule +to this game: buy low, +sell high.", "And don't go bankrupt."] +} + +[sub_resource type="Animation" id="Animation_npqqu"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Label:visible_ratio") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [1.0] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("Label:text") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": ["There's only one rule +to this game: buy low, +sell high."] +} + +[sub_resource type="Animation" id="Animation_umwwq"] +resource_name = "intro2" +step = 1.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Label:text") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(), +"transitions": PackedFloat32Array(), +"update": 1, +"values": [] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_qflce"] +_data = { +"RESET": SubResource("Animation_npqqu"), +"intro": SubResource("Animation_4fk4l"), +"intro2": SubResource("Animation_umwwq") +} + [node name="Window" type="Window"] transparent_bg = true position = Vector2i(0, 36) @@ -26,6 +167,9 @@ unresizable = true borderless = true transparent = true script = ExtResource("1_mbnc6") +current_text = "There's only one rule +to this game: buy low, +sell high." [node name="Panel" type="Panel" parent="."] custom_minimum_size = Vector2(600, 200) @@ -42,9 +186,9 @@ offset_right = 1491.0 offset_bottom = 99.0 theme = ExtResource("5_8ck3a") theme_override_font_sizes/font_size = 25 -text = "Hi, I'm your legally -distinct paperclip -assistant, Clippette..." +text = "There's only one rule +to this game: buy low, +sell high." [node name="Angy" type="Sprite2D" parent="."] visible = false @@ -69,5 +213,10 @@ offset_bottom = 600.0 [node name="Timer" type="Timer" parent="."] wait_time = 0.25 +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_qflce") +} + [connection signal="button_up" from="TextureButton" to="." method="_on_texture_button_button_up"] [connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"] |