[gd_scene load_steps=11 format=3 uid="uid://c8nsgn4idu8ay"] [ext_resource type="Script" path="res://components/Achievements/achievements.gd" id="1_fj2tg"] [ext_resource type="Texture2D" uid="uid://dat440dg86mjl" path="res://components/Achievements/back.png" id="2_1q85v"] [ext_resource type="Theme" uid="uid://d035h7upxrw3h" path="res://theme.tres" id="2_p5tbu"] [ext_resource type="PackedScene" uid="uid://dykc1mgg5uopw" path="res://components/Cursor/MouseHandler.tscn" id="2_vij8n"] [ext_resource type="Texture2D" uid="uid://bypm21lqwg7g0" path="res://components/Achievements/Village 6.png" id="4_1mson"] [ext_resource type="Texture2D" uid="uid://ur6oiwg6ksns" path="res://components/Achievements/award.svg" id="4_7grt2"] [ext_resource type="Texture2D" uid="uid://dcj0xniur7dk1" path="res://components/Achievements/thumbnail-mask.png" id="6_dwjjq"] [ext_resource type="AudioStream" uid="uid://dxac8e02mctgp" path="res://components/Achievements/achievement.wav" id="8_74gug"] [ext_resource type="AudioStream" uid="uid://4m4dwlrv78l" path="res://components/Achievements/achievement-back.ogg" id="9_c3xir"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_yajw4"] size = Vector2(180, 32) [node name="Achievements" type="Node"] script = ExtResource("1_fj2tg") [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="Popup" type="Control" parent="CanvasLayer"] layout_mode = 3 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -140.0 offset_top = -42.0 offset_right = 40.0 offset_bottom = -12.0 grow_horizontal = 0 grow_vertical = 0 [node name="MouseHandler" parent="CanvasLayer/Popup" instance=ExtResource("2_vij8n")] position = Vector2(62, 15) [node name="CollisionShape2D" type="CollisionShape2D" parent="CanvasLayer/Popup/MouseHandler"] position = Vector2(29, 0) shape = SubResource("RectangleShape2D_yajw4") [node name="Shadow" type="TextureRect" parent="CanvasLayer/Popup"] modulate = Color(0, 0, 0, 1) show_behind_parent = true layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -178.0 offset_top = -29.0 offset_right = 2.0 offset_bottom = 2.0 grow_horizontal = 0 grow_vertical = 0 size_flags_horizontal = 8 size_flags_vertical = 8 theme = ExtResource("2_p5tbu") texture = ExtResource("2_1q85v") expand_mode = 1 [node name="Popup" type="TextureRect" parent="CanvasLayer/Popup"] clip_children = 2 layout_mode = 1 anchors_preset = 6 anchor_left = 1.0 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 offset_left = -180.0 offset_top = -15.0 offset_bottom = 15.0 grow_horizontal = 0 grow_vertical = 2 size_flags_horizontal = 8 size_flags_vertical = 8 texture = ExtResource("2_1q85v") expand_mode = 1 [node name="Title" type="RichTextLabel" parent="CanvasLayer/Popup/Popup"] modulate = Color(0.752941, 0.478431, 0.129412, 1) layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 46.0 offset_top = -11.0 offset_right = 217.0 offset_bottom = 7.0 grow_vertical = 2 theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) theme_override_font_sizes/normal_font_size = 7 text = "Achievement Text" [node name="Body" type="RichTextLabel" parent="CanvasLayer/Popup/Popup"] layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 37.0 offset_top = 2.0 offset_right = 223.0 offset_bottom = 18.0 grow_vertical = 2 theme_override_colors/default_color = Color(0.607843, 0.607843, 0.607843, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) theme_override_font_sizes/normal_font_size = 7 text = "Achievement Body" [node name="AwardShadow" type="TextureRect" parent="CanvasLayer/Popup/Popup"] modulate = Color(0, 0, 0, 1) layout_mode = 0 offset_left = 36.0 offset_top = 6.0 offset_right = 45.0 offset_bottom = 15.0 texture = ExtResource("4_7grt2") expand_mode = 2 [node name="Award" type="TextureRect" parent="CanvasLayer/Popup/Popup"] modulate = Color(0.752941, 0.478431, 0.129412, 1) layout_mode = 0 offset_left = 34.5 offset_top = 4.5 offset_right = 43.5 offset_bottom = 13.5 texture = ExtResource("4_7grt2") expand_mode = 2 [node name="ThumbnailMask" type="TextureRect" parent="CanvasLayer/Popup"] clip_children = 1 layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_left = 3.0 offset_top = -12.0 offset_right = 32.0 offset_bottom = 12.0 grow_vertical = 2 texture = ExtResource("6_dwjjq") expand_mode = 1 [node name="Thumbnail" type="TextureRect" parent="CanvasLayer/Popup/ThumbnailMask"] layout_mode = 0 offset_right = 29.0 offset_bottom = 24.0 texture = ExtResource("4_1mson") expand_mode = 1 [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] stream = ExtResource("8_74gug") volume_db = -9.043 [node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."] stream = ExtResource("9_c3xir") volume_db = -17.441 [connection signal="clicked" from="CanvasLayer/Popup/MouseHandler" to="." method="_on_mouse_handler_clicked"] [connection signal="hovered" from="CanvasLayer/Popup/MouseHandler" to="." method="_on_mouse_handler_hovered"] [connection signal="unhovered" from="CanvasLayer/Popup/MouseHandler" to="." method="_on_mouse_handler_unhovered"] [editable path="CanvasLayer/Popup/MouseHandler"]