diff --git a/Default.tres b/Default.tres index a892112..6e2b0bb 100644 --- a/Default.tres +++ b/Default.tres @@ -25,7 +25,7 @@ [ext_resource type="Texture2D" uid="uid://dvdaifyptlp0u" path="res://assets/styles/slider/GrabberHighlightIcon.tres" id="16_ad8cx"] [ext_resource type="StyleBox" uid="uid://c3fk04k2sgqqj" path="res://assets/styles/slider/Slider.tres" id="16_vi0gs"] -[sub_resource type="Image" id="Image_8pil1"] +[sub_resource type="Image" id="Image_jengi"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 35, 255, 255, 255, 153, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 190, 255, 255, 255, 152, 255, 255, 255, 33, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 153, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 151, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 237, 237, 237, 195, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 190, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 177, 177, 177, 209, 37, 37, 37, 252, 178, 178, 178, 209, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 176, 176, 176, 209, 32, 32, 32, 254, 26, 26, 26, 255, 84, 84, 84, 235, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 176, 176, 176, 209, 32, 32, 32, 254, 26, 26, 26, 255, 78, 78, 78, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 253, 253, 253, 192, 222, 222, 222, 198, 255, 255, 255, 191, 255, 255, 255, 191, 175, 175, 175, 210, 32, 32, 32, 254, 26, 26, 26, 255, 79, 79, 79, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 253, 253, 253, 192, 90, 90, 90, 234, 45, 45, 45, 249, 212, 212, 212, 200, 174, 174, 174, 210, 32, 32, 32, 254, 26, 26, 26, 255, 79, 79, 79, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 232, 232, 232, 196, 54, 54, 54, 246, 26, 26, 26, 255, 43, 43, 43, 250, 32, 32, 32, 254, 26, 26, 26, 255, 81, 81, 81, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 226, 226, 226, 197, 54, 54, 54, 246, 26, 26, 26, 255, 26, 26, 26, 255, 81, 81, 81, 237, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 226, 226, 226, 197, 54, 54, 54, 246, 81, 81, 81, 236, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 230, 230, 230, 197, 248, 248, 248, 193, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 189, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 152, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 150, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 33, 255, 255, 255, 151, 255, 255, 255, 190, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 191, 255, 255, 255, 189, 255, 255, 255, 150, 255, 255, 255, 32, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -35,9 +35,9 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_yuvjq"] -image = SubResource("Image_8pil1") +image = SubResource("Image_jengi") -[sub_resource type="Image" id="Image_vi0gs"] +[sub_resource type="Image" id="Image_yrw11"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 17, 255, 255, 255, 76, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 75, 255, 255, 255, 17, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 76, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 75, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 237, 237, 237, 99, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 185, 185, 185, 117, 94, 94, 94, 170, 185, 185, 185, 117, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 184, 184, 184, 118, 91, 91, 91, 173, 87, 87, 87, 175, 121, 121, 121, 150, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 184, 184, 184, 118, 91, 91, 91, 173, 87, 87, 87, 175, 117, 117, 117, 152, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 253, 253, 253, 95, 224, 224, 224, 104, 255, 255, 255, 94, 255, 255, 255, 94, 184, 184, 184, 118, 91, 91, 91, 173, 87, 87, 87, 175, 119, 119, 119, 152, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 253, 253, 253, 95, 124, 124, 124, 148, 98, 98, 98, 167, 214, 214, 214, 106, 182, 182, 182, 118, 91, 91, 91, 173, 87, 87, 87, 175, 119, 119, 119, 152, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 233, 233, 233, 101, 103, 103, 103, 163, 87, 87, 87, 175, 97, 97, 97, 168, 91, 91, 91, 173, 87, 87, 87, 175, 119, 119, 119, 152, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 228, 228, 228, 102, 103, 103, 103, 163, 87, 87, 87, 175, 87, 87, 87, 175, 119, 119, 119, 152, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 228, 228, 228, 102, 103, 103, 103, 163, 120, 120, 120, 151, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 230, 230, 230, 102, 248, 248, 248, 97, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 93, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 75, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 74, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 17, 255, 255, 255, 75, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 94, 255, 255, 255, 93, 255, 255, 255, 74, 255, 255, 255, 16, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -47,7 +47,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_66v3g"] -image = SubResource("Image_vi0gs") +image = SubResource("Image_yrw11") [sub_resource type="AtlasTexture" id="AtlasTexture_rrewt"] atlas = ExtResource("1_pdnn8") @@ -61,7 +61,7 @@ region = Rect2(362, 576, 24, 24) atlas = ExtResource("1_pdnn8") region = Rect2(314, 576, 24, 24) -[sub_resource type="Image" id="Image_0x3j8"] +[sub_resource type="Image" id="Image_ad8cx"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 6, 30, 30, 30, 34, 28, 28, 28, 53, 29, 29, 29, 61, 29, 29, 29, 61, 28, 28, 28, 53, 31, 31, 31, 33, 42, 42, 42, 6, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 34, 34, 34, 22, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 34, 34, 34, 22, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 6, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 42, 42, 42, 6, 255, 255, 255, 0, 255, 255, 255, 0, 30, 30, 30, 34, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 31, 31, 31, 33, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 53, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 52, 255, 255, 255, 0, 255, 255, 255, 0, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 255, 255, 255, 0, 255, 255, 255, 0, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 53, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 52, 255, 255, 255, 0, 255, 255, 255, 0, 31, 31, 31, 33, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 31, 31, 31, 33, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 6, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 51, 51, 51, 5, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 36, 36, 36, 21, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 36, 36, 36, 21, 29, 29, 29, 61, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 29, 29, 29, 61, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 6, 31, 31, 31, 33, 29, 29, 29, 52, 29, 29, 29, 61, 29, 29, 29, 61, 29, 29, 29, 52, 31, 31, 31, 33, 51, 51, 51, 5, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -71,9 +71,9 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_nlb8f"] -image = SubResource("Image_0x3j8") +image = SubResource("Image_ad8cx") -[sub_resource type="Image" id="Image_jengi"] +[sub_resource type="Image" id="Image_7psmm"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 179, 179, 179, 30, 178, 178, 178, 103, 178, 178, 178, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 173, 173, 173, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 181, 181, 181, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 179, 179, 179, 30, 178, 178, 178, 103, 178, 178, 178, 46, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -83,9 +83,9 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_e5b2h"] -image = SubResource("Image_jengi") +image = SubResource("Image_7psmm") -[sub_resource type="Image" id="Image_yrw11"] +[sub_resource type="Image" id="Image_7i7m1"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 178, 178, 178, 46, 178, 178, 178, 103, 176, 176, 176, 29, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 181, 181, 181, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 48, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 179, 179, 179, 47, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 181, 181, 181, 31, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 176, 176, 176, 48, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 176, 176, 176, 48, 178, 178, 178, 115, 178, 178, 178, 115, 173, 173, 173, 31, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 178, 178, 178, 46, 178, 178, 178, 103, 179, 179, 179, 30, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -95,9 +95,9 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_fns8e"] -image = SubResource("Image_yrw11") +image = SubResource("Image_7i7m1") -[sub_resource type="Image" id="Image_ad8cx"] +[sub_resource type="Image" id="Image_3mx14"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 33, 33, 33, 23, 27, 27, 27, 103, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 27, 27, 27, 102, 34, 34, 34, 22, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 103, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 27, 27, 27, 101, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 255, 255, 255, 0, 255, 255, 255, 0, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 255, 255, 255, 0, 255, 255, 255, 0, 27, 27, 27, 102, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 28, 28, 28, 100, 255, 255, 255, 0, 255, 255, 255, 0, 34, 34, 34, 22, 27, 27, 27, 101, 26, 26, 26, 127, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 128, 26, 26, 26, 127, 28, 28, 28, 100, 36, 36, 36, 21, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -107,9 +107,9 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_2lvji"] -image = SubResource("Image_ad8cx") +image = SubResource("Image_3mx14") -[sub_resource type="Image" id="Image_7psmm"] +[sub_resource type="Image" id="Image_1gjps"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 42, 42, 42, 12, 29, 29, 29, 52, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 30, 30, 30, 51, 46, 46, 46, 11, 255, 255, 255, 0, 255, 255, 255, 0, 29, 29, 29, 52, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 30, 30, 30, 51, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 255, 255, 255, 0, 255, 255, 255, 0, 30, 30, 30, 51, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 30, 30, 30, 50, 255, 255, 255, 0, 255, 255, 255, 0, 46, 46, 46, 11, 30, 30, 30, 51, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 28, 28, 28, 64, 30, 30, 30, 50, 46, 46, 46, 11, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -119,7 +119,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_paog4"] -image = SubResource("Image_7psmm") +image = SubResource("Image_1gjps") [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jutdm"] content_margin_left = 4.0 diff --git a/entities/game/animated_rich_text/scenes/AnimatedRichText.tscn b/entities/game/animated_rich_text/scenes/AnimatedRichText.tscn new file mode 100644 index 0000000..f19bca3 --- /dev/null +++ b/entities/game/animated_rich_text/scenes/AnimatedRichText.tscn @@ -0,0 +1,51 @@ +[gd_scene format=3 uid="uid://bi2oaoxrcmttm"] + +[ext_resource type="Script" uid="uid://bpvtly15ln51t" path="res://entities/game/animated_rich_text/scripts/AnimatedText.gd" id="1_e40io"] +[ext_resource type="Script" uid="uid://dlu1f0smtal4e" path="res://entities/game/animated_rich_text/scripts/AnimatedRichtText.gd" id="1_u65rn"] +[ext_resource type="AudioStream" uid="uid://ctjq1ihqaqsqu" path="res://assets/audio/effect/letter_written.ogg" id="2_u65rn"] +[ext_resource type="Texture2D" uid="uid://cg0l7tvqmtghr" path="res://assets/sprites/sheet_white1x.png" id="3_5qj5y"] +[ext_resource type="Script" uid="uid://b1muqfd0npxnt" path="res://entities/game/animated_rich_text/scripts/TutorialContinueButton.gd" id="4_geyfo"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_ynyq3"] +atlas = ExtResource("3_5qj5y") +region = Rect2(410, 315, 32, 20) + +[node name="AnimatedRichText" type="VBoxContainer" unique_id=873433623] +script = ExtResource("1_u65rn") + +[node name="Body" type="RichTextLabel" parent="." unique_id=1416319131] +unique_name_in_owner = true +layout_mode = 2 +size_flags_vertical = 3 +text = "BODY" +fit_content = true +autowrap_mode = 2 +visible_characters_behavior = 1 +script = ExtResource("1_e40io") +letter_place_sound = ExtResource("2_u65rn") +sound_db_change = -15.0 + +[node name="MarginContainer" type="MarginContainer" parent="." unique_id=288432057] +custom_minimum_size = Vector2(42, 30) +layout_mode = 2 +size_flags_horizontal = 8 +theme_override_constants/margin_right = 10 +theme_override_constants/margin_bottom = 10 + +[node name="TextureButton" type="TextureButton" parent="MarginContainer" unique_id=258480674] +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 8 +texture_normal = SubResource("AtlasTexture_ynyq3") +stretch_mode = 3 +script = ExtResource("4_geyfo") +pixels_to_move = 5.0 +animation_speed = 1.5 + +[connection signal="append_new_text" from="." to="Body" method="add_animated_text"] +[connection signal="initial_text_changed" from="." to="Body" method="set_initial_text"] +[connection signal="animation_state_changed" from="Body" to="." method="animation_state_changed"] +[connection signal="current_text_displayed" from="Body" to="MarginContainer/TextureButton" method="show"] +[connection signal="no_text_left" from="Body" to="MarginContainer/TextureButton" method="hide"] +[connection signal="text_getting_animated" from="Body" to="MarginContainer/TextureButton" method="hide"] +[connection signal="pressed" from="MarginContainer/TextureButton" to="Body" method="roll_in_next_text"] diff --git a/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd b/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd new file mode 100644 index 0000000..7935505 --- /dev/null +++ b/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd @@ -0,0 +1,22 @@ +@tool +extends Node + +signal append_new_text(new_value: String) +signal initial_text_changed(new_text: String) +signal animation_playing() +signal animation_done() + +@export var initial_text: String = "": + set(value): + initial_text = value + initial_text_changed.emit(value) + +func add_new_text(new_value: String) -> void: + append_new_text.emit(new_value) + +func animation_state_changed(new_state: bool) -> void: + if new_state: + animation_playing.emit() + return + + animation_done.emit() diff --git a/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd.uid b/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd.uid new file mode 100644 index 0000000..04119fa --- /dev/null +++ b/entities/game/animated_rich_text/scripts/AnimatedRichtText.gd.uid @@ -0,0 +1 @@ +uid://dlu1f0smtal4e diff --git a/entities/game/tutorial_window/scripts/AnimatedText.gd b/entities/game/animated_rich_text/scripts/AnimatedText.gd similarity index 68% rename from entities/game/tutorial_window/scripts/AnimatedText.gd rename to entities/game/animated_rich_text/scripts/AnimatedText.gd index 908d223..f1fdb0c 100644 --- a/entities/game/tutorial_window/scripts/AnimatedText.gd +++ b/entities/game/animated_rich_text/scripts/AnimatedText.gd @@ -4,6 +4,7 @@ signal text_getting_animated() signal is_multi_text() signal current_text_displayed() signal no_text_left() +signal animation_state_changed(new_state: bool) @export var letter_place_sound: AudioStream = null @export var written_end_sound: AudioStream = null @@ -13,20 +14,30 @@ signal no_text_left() var tween: Tween = null var text_queue: Array[String] = [] -var target_text: String = "" var animating: bool = false var should_animate: bool = true -var last_index: int = 0 + +var _initial_text: String = "" +var _last_value: float = -1 # Called when the node enters the scene tree for the first time. func _ready() -> void: text = "" + add_animated_text(_initial_text) + if animating: + visible_characters = 0 + +func set_initial_text(new_text: String) -> void: + _initial_text = new_text + text = _initial_text func toggle_animation(on: bool) -> void: should_animate = on func add_animated_text(new_text: String) -> void: + if new_text == "": + return var translated: String = tr(new_text) text_queue.append(translated) if animating: @@ -35,25 +46,30 @@ func add_animated_text(new_text: String) -> void: display_animated_text(text_queue.pop_front()) func display_animated_text(text_to_display: String) -> void: + _last_value = -1 + text = text_to_display if !should_animate: - text = text_to_display text_was_set() return animating = true + visible_characters = 0 text_getting_animated.emit() - target_text = text_to_display - last_index = 0 + animation_state_changed.emit(true) tween = create_tween() tween.set_ease(tween.EASE_OUT) - tween.tween_method(animation_step, 0, target_text.length(), time_per_letter * target_text.length()) + tween.tween_method(animation_step, 0, text.length(), time_per_letter * text.length()) tween.finished.connect(text_was_set) func animation_step(value: float) -> void: + if _last_value == value: + return + _last_value = value var letters_to_show: int = int(value) - if last_index < letters_to_show: - last_index = letters_to_show - play_letter_sound() - text = target_text.substr(0, letters_to_show) + play_letter_sound() + + visible_characters = letters_to_show + if letters_to_show >= text.length(): + visible_characters = -1 func play_letter_sound() -> void: GlobalSoundManager.play_sound_effect(letter_place_sound, sound_db_change) @@ -61,6 +77,7 @@ func play_letter_sound() -> void: func roll_in_next_text() -> void: if text_queue.size() == 0: no_text_left.emit() + animation_state_changed.emit(false) return display_animated_text(text_queue.pop_front()) @@ -69,6 +86,7 @@ func text_was_set() -> void: current_text_displayed.emit() if text_queue.size() == 0: no_text_left.emit() + animation_state_changed.emit(false) if should_animate: GlobalSoundManager.play_sound_effect(written_end_sound, sound_db_change) diff --git a/entities/game/tutorial_window/scripts/AnimatedText.gd.uid b/entities/game/animated_rich_text/scripts/AnimatedText.gd.uid similarity index 100% rename from entities/game/tutorial_window/scripts/AnimatedText.gd.uid rename to entities/game/animated_rich_text/scripts/AnimatedText.gd.uid diff --git a/entities/game/tutorial_window/scripts/TutorialContinueButton.gd b/entities/game/animated_rich_text/scripts/TutorialContinueButton.gd similarity index 91% rename from entities/game/tutorial_window/scripts/TutorialContinueButton.gd rename to entities/game/animated_rich_text/scripts/TutorialContinueButton.gd index 975eed6..944717d 100644 --- a/entities/game/tutorial_window/scripts/TutorialContinueButton.gd +++ b/entities/game/animated_rich_text/scripts/TutorialContinueButton.gd @@ -6,6 +6,9 @@ extends TextureButton var animation_tween: Tween +func _ready(): + initial_position = position + # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: if visible == false: @@ -15,7 +18,7 @@ func _process(_delta: float) -> void: func animate() -> void: if animation_tween != null and animation_tween.is_valid(): return - print("start animation") + print("loop") animation_tween = create_tween() animation_tween.tween_property(self, "position", Vector2(initial_position.x, initial_position.y + pixels_to_move), animation_speed) animation_tween.tween_property(self, "position", initial_position, animation_speed) \ No newline at end of file diff --git a/entities/game/tutorial_window/scripts/TutorialContinueButton.gd.uid b/entities/game/animated_rich_text/scripts/TutorialContinueButton.gd.uid similarity index 100% rename from entities/game/tutorial_window/scripts/TutorialContinueButton.gd.uid rename to entities/game/animated_rich_text/scripts/TutorialContinueButton.gd.uid diff --git a/entities/game/auto_close_popup/scenes/AutoClosePopup.tscn b/entities/game/auto_close_popup/scenes/AutoClosePopup.tscn index 9f38e3c..697dbce 100644 --- a/entities/game/auto_close_popup/scenes/AutoClosePopup.tscn +++ b/entities/game/auto_close_popup/scenes/AutoClosePopup.tscn @@ -2,11 +2,13 @@ [ext_resource type="Script" uid="uid://b44lnl21k5vc" path="res://entities/game/auto_close_popup/scripts/AutoClosePopup.gd" id="1_q838q"] [ext_resource type="Script" uid="uid://cdf84o2qp0vdc" path="res://entities/ui/gameplay_settings/scripts/AutoCompleteRound.gd" id="2_6fyx6"] +[ext_resource type="StyleBox" uid="uid://d1rhal5rp1608" path="res://assets/styles/panel/MetalBox.tres" id="2_sgjc8"] +[ext_resource type="PackedScene" uid="uid://bi2oaoxrcmttm" path="res://entities/game/animated_rich_text/scenes/AnimatedRichText.tscn" id="3_1kcrw"] [ext_resource type="Script" uid="uid://g8dk5ckx5t4d" path="res://entities/ui/gameplay_settings/scripts/AutoCloseRoundSlider.gd" id="3_sgjc8"] [ext_resource type="Resource" uid="uid://t4b63t07og3" path="res://shared/resources/translations/assets/TimeForCompletion.tres" id="4_1kcrw"] [ext_resource type="Script" uid="uid://chfatpxf8ucxr" path="res://shared/entities/clickable_button/ClickableButton.gd" id="5_tp0ur"] -[node name="AutoClosePopup" type="CenterContainer"] +[node name="AutoClosePopup" type="CenterContainer" unique_id=1954482098] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -14,54 +16,56 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_q838q") -[node name="PanelContainer" type="PanelContainer" parent="."] +[node name="PanelContainer" type="PanelContainer" parent="." unique_id=459183534] custom_minimum_size = Vector2(500, 0) layout_mode = 2 -[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"] +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer" unique_id=519067603] layout_mode = 2 theme_override_constants/margin_left = 5 theme_override_constants/margin_top = 5 theme_override_constants/margin_right = 5 theme_override_constants/margin_bottom = 5 -[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer" unique_id=800117384] layout_mode = 2 -[node name="RichTextLabel" type="RichTextLabel" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=421598363] layout_mode = 2 -size_flags_vertical = 3 -bbcode_enabled = true -text = "AUTO_CLOSE_POPUP_BODY" -fit_content = true +theme_override_styles/panel = ExtResource("2_sgjc8") -[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="AnimatedRichText" parent="PanelContainer/MarginContainer/VBoxContainer/PanelContainer" unique_id=873433623 instance=ExtResource("3_1kcrw")] layout_mode = 2 +initial_text = "AUTO_CLOSE_POPUP_BODY" -[node name="AutoCompleteRound" type="CheckButton" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=293706623] +layout_mode = 2 + +[node name="AutoCompleteRound" type="CheckButton" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer" unique_id=978446831] layout_mode = 2 text = "AUTO_COMPLETE_ROUND" script = ExtResource("2_6fyx6") -[node name="AutoCompleteTimer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer"] +[node name="AutoCompleteTimer" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer" unique_id=369697036] custom_minimum_size = Vector2(100, 0) layout_mode = 2 script = ExtResource("3_sgjc8") completion_time_translation = ExtResource("4_1kcrw") -[node name="TimeForCompletion" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer"] +[node name="TimeForCompletion" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" unique_id=1975635820] auto_translate_mode = 2 layout_mode = 2 tooltip_auto_translate_mode = 2 text = "TIME_FOR_COMPLETION" -[node name="SecondsSlider" type="HSlider" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer"] +[node name="SecondsSlider" type="HSlider" parent="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" unique_id=126651385] custom_minimum_size = Vector2(200, 0) layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 1 +max_value = 5.0 -[node name="Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=244490318] layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 4 @@ -70,11 +74,11 @@ script = ExtResource("5_tp0ur") [connection signal="settings_loaded" from="." to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteRound" method="settings_loaded"] [connection signal="settings_loaded" from="." to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" method="settings_loaded"] +[connection signal="animation_done" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/AnimatedRichText" to="PanelContainer/MarginContainer/VBoxContainer/Button" method="enable_button"] +[connection signal="animation_playing" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/AnimatedRichText" to="PanelContainer/MarginContainer/VBoxContainer/Button" method="disable_button"] [connection signal="toggled" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteRound" to="." method="auto_complete_state_changed"] [connection signal="toggled" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteRound" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" method="toggle_visibility"] [connection signal="completion_time_changed" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/TimeForCompletion" method="set_text"] -[connection signal="update_max_slider_value" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/SecondsSlider" method="set_max"] -[connection signal="update_min_slider_value" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/SecondsSlider" method="set_min"] [connection signal="update_slider_value" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/SecondsSlider" method="set_value"] [connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/SecondsSlider" to="." method="auto_complete_time_changed"] [connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer/SecondsSlider" to="PanelContainer/MarginContainer/VBoxContainer/VBoxContainer/AutoCompleteTimer" method="slider_changed"] diff --git a/entities/game/tutorial_window/scenes/TutorialWindow.tscn b/entities/game/tutorial_window/scenes/TutorialWindow.tscn index 2bd6bce..5f068d5 100644 --- a/entities/game/tutorial_window/scenes/TutorialWindow.tscn +++ b/entities/game/tutorial_window/scenes/TutorialWindow.tscn @@ -1,19 +1,12 @@ -[gd_scene load_steps=10 format=3 uid="uid://d15qeu4s4bgjk"] +[gd_scene format=3 uid="uid://d15qeu4s4bgjk"] [ext_resource type="Script" uid="uid://brlkkuu3xnw88" path="res://entities/game/tutorial_window/scripts/TutorialWindow.gd" id="1_rm1ic"] [ext_resource type="StyleBox" uid="uid://d1rhal5rp1608" path="res://assets/styles/panel/MetalBox.tres" id="2_a5yjs"] -[ext_resource type="Script" uid="uid://bpvtly15ln51t" path="res://entities/game/tutorial_window/scripts/AnimatedText.gd" id="3_x2dyy"] -[ext_resource type="AudioStream" uid="uid://ctjq1ihqaqsqu" path="res://assets/audio/effect/letter_written.ogg" id="4_vo2go"] -[ext_resource type="Texture2D" uid="uid://cg0l7tvqmtghr" path="res://assets/sprites/sheet_white1x.png" id="5_0mnhe"] -[ext_resource type="Script" uid="uid://b1muqfd0npxnt" path="res://entities/game/tutorial_window/scripts/TutorialContinueButton.gd" id="6_las18"] +[ext_resource type="PackedScene" uid="uid://bi2oaoxrcmttm" path="res://entities/game/animated_rich_text/scenes/AnimatedRichText.tscn" id="3_pqrdi"] [ext_resource type="Texture2D" uid="uid://dqv4i4y66gem" path="res://assets/icons/OkIcon.tres" id="7_ky4hq"] [ext_resource type="Script" uid="uid://chfatpxf8ucxr" path="res://shared/entities/clickable_button/ClickableButton.gd" id="7_scsgn"] -[sub_resource type="AtlasTexture" id="AtlasTexture_ynyq3"] -atlas = ExtResource("5_0mnhe") -region = Rect2(410, 315, 32, 20) - -[node name="TutorialWindow" type="CenterContainer"] +[node name="TutorialWindow" type="CenterContainer" unique_id=949378526] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -21,80 +14,53 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_rm1ic") -[node name="PanelContainer" type="PanelContainer" parent="."] +[node name="PanelContainer" type="PanelContainer" parent="." unique_id=1450775532] custom_minimum_size = Vector2(800, 300) layout_mode = 2 -[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"] +[node name="MarginContainer" type="MarginContainer" parent="PanelContainer" unique_id=1754395877] layout_mode = 2 theme_override_constants/margin_left = 5 theme_override_constants/margin_top = 5 theme_override_constants/margin_right = 5 theme_override_constants/margin_bottom = 5 -[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"] +[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer" unique_id=1410163732] layout_mode = 2 -[node name="Title" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="Title" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=899617021] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 0 text = "TITLE" horizontal_alignment = 1 -[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="PanelContainer" type="PanelContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=147839046] layout_mode = 2 size_flags_vertical = 3 theme_override_styles/panel = ExtResource("2_a5yjs") -[node name="Body" type="RichTextLabel" parent="PanelContainer/MarginContainer/VBoxContainer/PanelContainer"] -unique_name_in_owner = true -layout_mode = 2 -size_flags_vertical = 4 -text = "BODY" -fit_content = true -script = ExtResource("3_x2dyy") -letter_place_sound = ExtResource("4_vo2go") -sound_db_change = -15.0 - -[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/PanelContainer"] -layout_mode = 2 -theme_override_constants/margin_right = 10 -theme_override_constants/margin_bottom = 10 - -[node name="TextureButton" type="TextureButton" parent="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/MarginContainer"] +[node name="AnimatedRichText" parent="PanelContainer/MarginContainer/VBoxContainer/PanelContainer" unique_id=873433623 instance=ExtResource("3_pqrdi")] layout_mode = 2 -size_flags_horizontal = 8 -size_flags_vertical = 8 -texture_normal = SubResource("AtlasTexture_ynyq3") -stretch_mode = 3 -script = ExtResource("6_las18") -initial_position = Vector2(684, 106) -pixels_to_move = 5.0 -animation_speed = 1.5 -[node name="Controls" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"] +[node name="Controls" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer" unique_id=1075425415] layout_mode = 2 -[node name="CompleteTutorial" type="CheckButton" parent="PanelContainer/MarginContainer/VBoxContainer/Controls"] +[node name="CompleteTutorial" type="CheckButton" parent="PanelContainer/MarginContainer/VBoxContainer/Controls" unique_id=147197161] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 2 tooltip_text = "COMPLETE_TUTORIAL_TOOLTIP" text = "COMPLETE_TUTORIAL" -[node name="Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/Controls"] +[node name="Button" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/Controls" unique_id=2097027986] layout_mode = 2 size_flags_horizontal = 10 text = "OK" icon = ExtResource("7_ky4hq") script = ExtResource("7_scsgn") -[connection signal="current_text_displayed" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" to="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/MarginContainer/TextureButton" method="show"] -[connection signal="no_text_left" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" to="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/MarginContainer/TextureButton" method="hide"] -[connection signal="no_text_left" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" to="PanelContainer/MarginContainer/VBoxContainer/Controls/Button" method="enable_button"] -[connection signal="text_getting_animated" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" to="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/MarginContainer/TextureButton" method="hide"] -[connection signal="text_getting_animated" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" to="PanelContainer/MarginContainer/VBoxContainer/Controls/Button" method="disable_button"] -[connection signal="pressed" from="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/MarginContainer/TextureButton" to="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/Body" method="roll_in_next_text"] +[connection signal="append_text" from="." to="PanelContainer/MarginContainer/VBoxContainer/PanelContainer/AnimatedRichText" method="add_new_text"] +[connection signal="title_changed" from="." to="PanelContainer/MarginContainer/VBoxContainer/Title" method="set_text"] [connection signal="toggled" from="PanelContainer/MarginContainer/VBoxContainer/Controls/CompleteTutorial" to="." method="toggle_abort_tutorial"] [connection signal="pressed" from="PanelContainer/MarginContainer/VBoxContainer/Controls/Button" to="." method="close"] diff --git a/entities/game/tutorial_window/scripts/TutorialWindow.gd b/entities/game/tutorial_window/scripts/TutorialWindow.gd index d4abdfd..72827f4 100644 --- a/entities/game/tutorial_window/scripts/TutorialWindow.gd +++ b/entities/game/tutorial_window/scripts/TutorialWindow.gd @@ -1,27 +1,25 @@ class_name TutorialWindow extends PopupWindow signal abort_tutorial() +signal append_text(new_text: String) +signal title_changed(new_title: String) -var title: Label = null -var body: AnimatedText = null var abort_tutorial_check: CheckButton = null var should_abort_tutorial: bool = false var is_ready: bool = false func _ready() -> void: - title = get_node("%Title") as Label - body = get_node("%Body") as AnimatedText abort_tutorial_check = get_node("%CompleteTutorial") as CheckButton visible = true is_ready = true - if !title or !body or !abort_tutorial_check: + if !abort_tutorial_check: close() func show_window(new_title: String, new_body: String, allow_abort: bool = true) -> void: - title.text = new_title - body.add_animated_text(new_body) + title_changed.emit(new_title) + append_text.emit(new_body) abort_tutorial_check.button_pressed = false should_abort_tutorial = false abort_tutorial_check.visible = allow_abort diff --git a/entities/ui/gameplay_settings/scripts/AiThinkSpeedLabel.gd b/entities/ui/gameplay_settings/scripts/AiThinkSpeedLabel.gd index e26a62d..336b00b 100644 --- a/entities/ui/gameplay_settings/scripts/AiThinkSpeedLabel.gd +++ b/entities/ui/gameplay_settings/scripts/AiThinkSpeedLabel.gd @@ -31,6 +31,5 @@ func language_changed(_language_code: String) -> void: func settings_updated(settings: SettingsResource) -> void: var base_value: float = settings.ai_think_time * max_allowed_value base_value = _convert_value(base_value) - print(base_value) _update_text_table(base_value) setting_changed.emit(base_value)