diff --git a/scenes/animation.gd b/scenes/animation.gd index 5936112..56ce7bb 100644 --- a/scenes/animation.gd +++ b/scenes/animation.gd @@ -3,9 +3,18 @@ extends Control @onready var animated_sprite_2d: AnimatedSprite2D = $StopPhase/AnimatedSprite2D @onready var animation_player: AnimationPlayer = $AnimationPlayer -func _input(event: InputEvent) -> void: - if event.is_action_pressed("grab_item"): - animation_player.play("stop-phase") +#func _input(event: InputEvent) -> void: + #if event.is_action_pressed("grab_item"): + #animation_player.play("stop-phase") + +func play_ready_go(): + animation_player.play("ready-go") + +func play_stop_phase(): + animation_player.play("stop-phase") + +func play_safe_zone_appear(): + animation_player.play("safe-zone-appear") func stop_phase_anim_play(): animated_sprite_2d.play("stop-phase") diff --git a/scenes/animation.tscn b/scenes/animation.tscn index 2676196..f61c34e 100644 --- a/scenes/animation.tscn +++ b/scenes/animation.tscn @@ -1,74 +1,13 @@ [gd_scene format=3 uid="uid://dbqj67js76fa5"] -[ext_resource type="Texture2D" uid="uid://sthm2v27rgyt" path="res://assets/graphics/vfx/stop_n_go/1.png" id="1_7lxrk"] -[ext_resource type="Script" uid="uid://dofbbxgu8mmdu" path="res://scenes/animation.gd" id="1_33t8h"] -[ext_resource type="Shader" uid="uid://b4jor2qt7hwxn" path="res://assets/shaders/tilt_shader.gdshader" id="2_j3xn3"] -[ext_resource type="Texture2D" uid="uid://2yrc6rl4dmd8" path="res://assets/textures/player_board_and_blue_print/tile_null.tres" id="3_w3lbo"] -[ext_resource type="Texture2D" uid="uid://c2bj21abtgda1" path="res://assets/models/pboard/HighlightRect.tres" id="4_ehssl"] -[ext_resource type="Texture2D" uid="uid://0wjk16jlgfq" path="res://assets/models/pboard/SelectRect.tres" id="5_again"] -[ext_resource type="Texture2D" uid="uid://dasaeaytvhll0" path="res://assets/models/pboard/AdjacentRect.tres" id="6_h6hqd"] -[ext_resource type="Texture2D" uid="uid://cwxgdi7b4ps40" path="res://assets/textures/Hilight.png" id="7_u77qk"] -[ext_resource type="Texture2D" uid="uid://dojnv8o6we4ey" path="res://assets/textures/Selected.png" id="8_rvu3m"] -[ext_resource type="Texture2D" uid="uid://68x88jj25yxg" path="res://assets/textures/Adjacent.png" id="9_33t8h"] -[ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="10_xpxsb"] -[ext_resource type="StyleBox" uid="uid://dlw1ogamn741n" path="res://assets/styles/box_flat.tres" id="11_5jpki"] -[ext_resource type="Theme" uid="uid://0dhxl4ohyxh8" path="res://assets/graphics/game_setting/setting_theme.tres" id="12_l1hvi"] -[ext_resource type="Script" uid="uid://86ikh0wuqk7v" path="res://scripts/ui/powerup_inventory_ui.gd" id="13_226vt"] -[ext_resource type="Texture2D" uid="uid://bsgqrjx2ity4c" path="res://assets/graphics/touch_control/speed.png" id="14_87u65"] -[ext_resource type="Script" uid="uid://b54tfa0n6kogi" path="res://scripts/managers/touch_controls.gd" id="15_npyp1"] -[ext_resource type="Script" uid="uid://djiml4sh61dc1" path="res://scripts/ui/virtual_joystick.gd" id="16_pfi5j"] -[ext_resource type="Texture2D" uid="uid://umw3e8nfe3vr" path="res://assets/graphics/touch_control/attack_mode.png" id="17_2hrhd"] -[ext_resource type="Texture2D" uid="uid://biun2yvglxgij" path="res://assets/graphics/touch_control/grab_tekton.png" id="18_i0235"] -[ext_resource type="Texture2D" uid="uid://ba80xnybpixw2" path="res://assets/graphics/touch_control/take_tile.png" id="19_fnhdf"] -[ext_resource type="Texture2D" uid="uid://pwxo4lb87yi" path="res://assets/graphics/touch_control/put_tile.png" id="20_tgjh8"] -[ext_resource type="Texture2D" uid="uid://c6kisheilvgfp" path="res://assets/graphics/vfx/stop_n_go/safezone_appear.png" id="22_xpxsb"] -[ext_resource type="Texture2D" uid="uid://c63euesgl1gi5" path="res://assets/graphics/vfx/stop_n_go/bull_warning.png" id="23_5jpki"] -[ext_resource type="SpriteFrames" uid="uid://7r0qbbm88vfy" path="res://assets/graphics/vfx/effects/animation-head.tres" id="24_l1hvi"] -[ext_resource type="Texture2D" uid="uid://rptj4ywi1tms" path="res://assets/graphics/vfx/stop_n_go/2.png" id="25_226vt"] -[ext_resource type="Texture2D" uid="uid://dxsy87v04oytl" path="res://assets/graphics/vfx/stop_n_go/3.png" id="26_87u65"] -[ext_resource type="Texture2D" uid="uid://ciisxcnnh4b3b" path="res://assets/graphics/vfx/stop_n_go/go.png" id="27_npyp1"] - -[sub_resource type="ShaderMaterial" id="ShaderMaterial_m5lx5"] -shader = ExtResource("2_j3xn3") -shader_parameter/top_left = Vector2(0, 0) -shader_parameter/top_right = Vector2(0, 0) -shader_parameter/bottom_left = Vector2(0, 0) -shader_parameter/bottom_right = Vector2(0, 0) - -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_x4ygw"] -content_margin_left = 8.0 -content_margin_top = 8.0 -content_margin_right = 8.0 -content_margin_bottom = 8.0 -bg_color = Color(0.08, 0.08, 0.12, 0.9) -border_width_left = 1 -border_width_top = 1 -border_width_right = 1 -border_width_bottom = 1 -border_color = Color(0.3, 0.3, 0.4, 0.8) -corner_radius_top_left = 8 -corner_radius_top_right = 8 -corner_radius_bottom_right = 8 -corner_radius_bottom_left = 8 - -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_uxeef"] - -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4x5x1"] -content_margin_left = 16.0 -content_margin_top = 16.0 -content_margin_right = 16.0 -content_margin_bottom = 16.0 -bg_color = Color(0, 0, 0, 0.49803922) -border_width_left = 2 -border_width_top = 2 -border_width_right = 2 -border_width_bottom = 2 -border_color = Color(0.992, 0.796, 0.047, 1) -corner_radius_top_left = 36 -corner_radius_top_right = 36 -corner_radius_bottom_right = 36 -corner_radius_bottom_left = 36 -corner_detail = 12 +[ext_resource type="Script" uid="uid://dofbbxgu8mmdu" path="res://scenes/animation.gd" id="1_ij7jg"] +[ext_resource type="Texture2D" uid="uid://sthm2v27rgyt" path="res://assets/graphics/vfx/stop_n_go/1.png" id="21_lfh5i"] +[ext_resource type="Texture2D" uid="uid://c6kisheilvgfp" path="res://assets/graphics/vfx/stop_n_go/safezone_appear.png" id="22_rk0mx"] +[ext_resource type="Texture2D" uid="uid://c63euesgl1gi5" path="res://assets/graphics/vfx/stop_n_go/bull_warning.png" id="23_mfqh2"] +[ext_resource type="SpriteFrames" uid="uid://7r0qbbm88vfy" path="res://assets/graphics/vfx/effects/animation-head.tres" id="24_u10lt"] +[ext_resource type="Texture2D" uid="uid://rptj4ywi1tms" path="res://assets/graphics/vfx/stop_n_go/2.png" id="25_4eyev"] +[ext_resource type="Texture2D" uid="uid://dxsy87v04oytl" path="res://assets/graphics/vfx/stop_n_go/3.png" id="26_wk5s0"] +[ext_resource type="Texture2D" uid="uid://ciisxcnnh4b3b" path="res://assets/graphics/vfx/stop_n_go/go.png" id="27_t05ex"] [sub_resource type="Animation" id="Animation_pfi5j"] length = 0.001 @@ -94,7 +33,7 @@ tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, -"values": [ExtResource("1_7lxrk")] +"values": [ExtResource("21_lfh5i")] } tracks/2/type = "value" tracks/2/imported = false @@ -168,6 +107,42 @@ tracks/7/keys = { "update": 0, "values": [Vector2(671, 364)] } +tracks/8/type = "value" +tracks/8/imported = false +tracks/8/enabled = true +tracks/8/path = NodePath("ReadyGo:visible") +tracks/8/interp = 1 +tracks/8/loop_wrap = true +tracks/8/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/9/type = "value" +tracks/9/imported = false +tracks/9/enabled = true +tracks/9/path = NodePath("SafeZone:visible") +tracks/9/interp = 1 +tracks/9/loop_wrap = true +tracks/9/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/10/type = "value" +tracks/10/imported = false +tracks/10/enabled = true +tracks/10/path = NodePath("StopPhase:visible") +tracks/10/interp = 1 +tracks/10/loop_wrap = true +tracks/10/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} [sub_resource type="Animation" id="Animation_bbp28"] resource_name = "ready-go" @@ -194,7 +169,7 @@ tracks/1/keys = { "times": PackedFloat32Array(0, 1, 1.2, 2, 2.2, 3, 3.2), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1), "update": 1, -"values": [ExtResource("1_7lxrk"), ExtResource("1_7lxrk"), ExtResource("25_226vt"), ExtResource("25_226vt"), ExtResource("26_87u65"), ExtResource("26_87u65"), ExtResource("27_npyp1")] +"values": [ExtResource("21_lfh5i"), ExtResource("21_lfh5i"), ExtResource("25_4eyev"), ExtResource("25_4eyev"), ExtResource("26_wk5s0"), ExtResource("26_wk5s0"), ExtResource("27_t05ex")] } tracks/2/type = "value" tracks/2/imported = false @@ -208,6 +183,18 @@ tracks/2/keys = { "update": 0, "values": [Vector2(81.5, 176.5), Vector2(81.5, 176.5), Vector2(130, 181), Vector2(130, 181), Vector2(135, 182), Vector2(135, 182), Vector2(375, 231)] } +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("ReadyGo:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 3.9666667), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [true, false] +} [sub_resource type="Animation" id="Animation_2hrhd"] resource_name = "safe-zone-appear" @@ -248,10 +235,22 @@ tracks/2/keys = { "update": 0, "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0.11764706), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0.11764706), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("SafeZone:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 3.4), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [true, false] +} [sub_resource type="Animation" id="Animation_i0235"] resource_name = "stop-phase" -length = 4.0333333 +length = 4.0 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true @@ -283,7 +282,7 @@ tracks/2/path = NodePath(".") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { -"times": PackedFloat32Array(0, 4.0333333), +"times": PackedFloat32Array(0, 4), "transitions": PackedFloat32Array(1, 1), "values": [{ "args": [], @@ -293,6 +292,18 @@ tracks/2/keys = { "method": &"stop_phase_anim_stop" }] } +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("StopPhase:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0, 4.0333333), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [true, false] +} [sub_resource type="AnimationLibrary" id="AnimationLibrary_emg7w"] _data = { @@ -309,1382 +320,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -script = ExtResource("1_33t8h") - -[node name="Control" type="Control" parent="." unique_id=580819681] -anchors_preset = 0 -offset_left = 621.875 -offset_top = 227.625 -offset_right = 661.875 -offset_bottom = 267.625 - -[node name="PlayerboardPanel" type="PanelContainer" parent="Control" unique_id=577437097] -material = SubResource("ShaderMaterial_m5lx5") -layout_mode = 1 -anchors_preset = 4 -anchor_top = 0.5 -anchor_bottom = 0.5 -offset_left = -558.14325 -offset_top = -88.25061 -offset_right = -407.44608 -offset_bottom = 96.49753 -grow_vertical = 2 -rotation = -0.10297442 -theme_override_styles/panel = SubResource("StyleBoxFlat_x4ygw") - -[node name="PlayerboardUI" type="GridContainer" parent="Control" unique_id=1844854488] -clip_contents = true -layout_mode = 1 -anchors_preset = 4 -anchor_top = 0.5 -anchor_bottom = 0.5 -offset_left = -587.875 -offset_top = -77.860535 -offset_right = -371.875 -offset_bottom = 138.13947 -grow_vertical = 2 -rotation = -0.10297442 -scale = Vector2(1.08, 1.08) -size_flags_horizontal = 3 -columns = 5 - -[node name="Slot1" type="TextureRect" parent="Control/PlayerboardUI" unique_id=287300386] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot1" unique_id=1610497260] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("4_ehssl") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot1" unique_id=770616992] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("5_again") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot1" unique_id=1929196610] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("6_h6hqd") - -[node name="Slot2" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1772642712] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot2" unique_id=1836428153] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot2" unique_id=738998314] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot2" unique_id=2003333654] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot3" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1135386063] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot3" unique_id=1013943812] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot3" unique_id=1958391183] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot3" unique_id=1669960762] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot4" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1906538358] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot4" unique_id=304337766] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot4" unique_id=892877303] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot4" unique_id=2106633284] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot5" type="TextureRect" parent="Control/PlayerboardUI" unique_id=510990662] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot5" unique_id=1232576029] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot5" unique_id=227470829] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot5" unique_id=798438694] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot6" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1211158087] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot6" unique_id=602700357] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot6" unique_id=532279820] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot6" unique_id=544642013] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot7" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1129020466] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot7" unique_id=947251164] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot7" unique_id=1577509502] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot7" unique_id=1605373493] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot8" type="TextureRect" parent="Control/PlayerboardUI" unique_id=485922972] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot8" unique_id=354500315] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot8" unique_id=176603307] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot8" unique_id=925684932] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot9" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1938622931] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot9" unique_id=2016081737] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot9" unique_id=1758052813] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot9" unique_id=1031402584] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot10" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1688440535] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot10" unique_id=1599464229] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot10" unique_id=1695993310] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot10" unique_id=1524256531] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot11" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1875136851] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot11" unique_id=1644785147] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot11" unique_id=208910516] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot11" unique_id=1738819297] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot12" type="TextureRect" parent="Control/PlayerboardUI" unique_id=287529326] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot12" unique_id=1048029608] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot12" unique_id=283308431] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot12" unique_id=1979202433] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot13" type="TextureRect" parent="Control/PlayerboardUI" unique_id=554256447] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot13" unique_id=310339077] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot13" unique_id=2110930043] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot13" unique_id=474715664] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot14" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1657540198] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot14" unique_id=1540675460] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot14" unique_id=239328834] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot14" unique_id=1286756340] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot15" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1506585798] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot15" unique_id=2008482835] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot15" unique_id=37220655] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot15" unique_id=739160922] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot16" type="TextureRect" parent="Control/PlayerboardUI" unique_id=504042903] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot16" unique_id=753654153] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot16" unique_id=257351906] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot16" unique_id=863752468] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot17" type="TextureRect" parent="Control/PlayerboardUI" unique_id=411613460] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot17" unique_id=805461347] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot17" unique_id=220195335] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot17" unique_id=613481344] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot18" type="TextureRect" parent="Control/PlayerboardUI" unique_id=652412980] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot18" unique_id=1937483691] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot18" unique_id=26103327] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot18" unique_id=2080276138] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot19" type="TextureRect" parent="Control/PlayerboardUI" unique_id=124784839] -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot19" unique_id=1015995698] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot19" unique_id=664135777] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot19" unique_id=856152401] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot20" type="TextureRect" parent="Control/PlayerboardUI" unique_id=338618311] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot20" unique_id=633792520] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot20" unique_id=1022101720] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot20" unique_id=917403525] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot21" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1433213844] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot21" unique_id=860087359] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot21" unique_id=1842176882] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot21" unique_id=1697138751] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot22" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1235436376] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot22" unique_id=1601460864] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot22" unique_id=509531827] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot22" unique_id=530258853] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot23" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1238493632] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot23" unique_id=848309800] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot23" unique_id=901503352] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot23" unique_id=1713341277] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot24" type="TextureRect" parent="Control/PlayerboardUI" unique_id=419304873] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot24" unique_id=279837160] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot24" unique_id=969600301] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot24" unique_id=2014943756] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="Slot25" type="TextureRect" parent="Control/PlayerboardUI" unique_id=1549892699] -modulate = Color(1, 1, 1, 0) -custom_minimum_size = Vector2(36, 36) -layout_mode = 2 -texture = ExtResource("3_w3lbo") - -[node name="HighlightRect" type="TextureRect" parent="Control/PlayerboardUI/Slot25" unique_id=568444804] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("7_u77qk") - -[node name="SelectRect" type="TextureRect" parent="Control/PlayerboardUI/Slot25" unique_id=1317746993] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("8_rvu3m") - -[node name="AdjacentRect" type="TextureRect" parent="Control/PlayerboardUI/Slot25" unique_id=923915615] -visible = false -layout_mode = 1 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -texture = ExtResource("9_33t8h") - -[node name="PlayeBoardPanelName" type="PanelContainer" parent="Control" unique_id=1447008762] -material = SubResource("ShaderMaterial_m5lx5") -layout_mode = 0 -offset_left = -577.875 -offset_top = -113.914474 -offset_right = -405.58115 -offset_bottom = -74.25432 -rotation = -0.10297442 -theme_override_styles/panel = SubResource("StyleBoxFlat_x4ygw") - -[node name="PlayerName" type="Label" parent="Control" unique_id=1877530220] -layout_mode = 1 -anchors_preset = 4 -anchor_top = 0.5 -anchor_bottom = 0.5 -offset_left = -571.156 -offset_top = -132.20523 -offset_right = -488.156 -offset_bottom = -96.20523 -grow_vertical = 2 -rotation = -0.10297442 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 32 -text = "Guest" - -[node name="PlayerBoardLabel" type="Label" parent="Control" unique_id=1055475655] -layout_mode = 1 -anchors_preset = 4 -anchor_top = 0.5 -anchor_bottom = 0.5 -offset_left = -451.15604 -offset_top = -145.64536 -offset_right = -411.15604 -offset_bottom = -109.645355 -grow_vertical = 2 -rotation = -0.10297442 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 32 -text = "X0" - -[node name="StopTimer" type="PanelContainer" parent="Control" unique_id=706111757] -visible = false -layout_mode = 1 -anchors_preset = 5 -anchor_left = 0.5 -anchor_right = 0.5 -offset_left = -16.875 -offset_top = -147.625 -offset_right = 99.125 -offset_bottom = -114.62488 -grow_horizontal = 2 - -[node name="HBox" type="HBoxContainer" parent="Control/StopTimer" unique_id=1634476123] -layout_mode = 2 -theme_override_constants/separation = 4 - -[node name="Segment0" type="Panel" parent="Control/StopTimer/HBox" unique_id=1318504845] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="Segment1" type="Panel" parent="Control/StopTimer/HBox" unique_id=86982121] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="Segment2" type="Panel" parent="Control/StopTimer/HBox" unique_id=1545275490] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="PowerUpBar" type="PanelContainer" parent="Control" unique_id=746103785] -layout_mode = 1 -anchors_preset = 4 -anchor_top = 0.5 -anchor_bottom = 0.5 -offset_left = -581.875 -offset_top = 110.6644 -offset_right = -397.875 -offset_bottom = 143.66452 -grow_vertical = 2 -rotation = -0.10297442 - -[node name="HBox" type="HBoxContainer" parent="Control/PowerUpBar" unique_id=863553476] -layout_mode = 2 -theme_override_constants/separation = 4 - -[node name="PowerLabel" type="Label" parent="Control/PowerUpBar/HBox" unique_id=1920045644] -layout_mode = 2 -theme_override_font_sizes/font_size = 18 -text = "⚡" - -[node name="Segment0" type="Panel" parent="Control/PowerUpBar/HBox" unique_id=146578879] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="Segment1" type="Panel" parent="Control/PowerUpBar/HBox" unique_id=1126380140] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="Segment2" type="Panel" parent="Control/PowerUpBar/HBox" unique_id=1770509481] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="Segment3" type="Panel" parent="Control/PowerUpBar/HBox" unique_id=1239362104] -custom_minimum_size = Vector2(36, 20) -layout_mode = 2 - -[node name="GoalsTimer" type="PanelContainer" parent="Control" unique_id=492213815] -layout_mode = 0 -offset_left = -386.0033 -offset_top = 110.423096 -offset_right = -354.0033 -offset_bottom = 143.42316 -rotation = -0.10297442 - -[node name="TimerLabel" type="Label" parent="Control/GoalsTimer" unique_id=417129120] -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 18 -text = "00" -horizontal_alignment = 1 - -[node name="MessageInput" type="LineEdit" parent="Control" unique_id=845416748] -visible = false -layout_mode = 1 -anchors_preset = 7 -anchor_left = 0.5 -anchor_top = 1.0 -anchor_right = 0.5 -anchor_bottom = 1.0 -offset_left = -166.875 -offset_top = 380.375 -offset_right = 253.125 -offset_bottom = 411.375 -grow_horizontal = 2 -grow_vertical = 0 -theme_override_styles/normal = ExtResource("11_5jpki") -theme_override_styles/focus = SubResource("StyleBoxFlat_uxeef") -placeholder_text = "Chat" -alignment = 1 - -[node name="MessageBar" type="PanelContainer" parent="Control" unique_id=117105154] -visible = false -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = -608.875 -offset_top = 400.375 -offset_right = -322.875 -offset_bottom = 434.375 -grow_vertical = 0 -theme_override_styles/panel = ExtResource("11_5jpki") - -[node name="MarginContainer" type="MarginContainer" parent="Control/MessageBar" unique_id=1691443187] -layout_mode = 2 -theme_override_constants/margin_left = 10 -theme_override_constants/margin_top = 5 -theme_override_constants/margin_right = 10 -theme_override_constants/margin_bottom = 5 - -[node name="MessageContainer" type="VBoxContainer" parent="Control/MessageBar/MarginContainer" unique_id=225717287] -layout_mode = 2 -theme_override_constants/separation = 4 - -[node name="PowerUpInventoryUI" type="Control" parent="Control" unique_id=25648355] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -547.875 -offset_top = 312.37494 -offset_right = -547.875 -offset_bottom = 312.37494 -grow_horizontal = 0 -grow_vertical = 0 -rotation = -0.10297442 -theme = ExtResource("12_l1hvi") -script = ExtResource("13_226vt") - -[node name="PowerUpBtn" type="Button" parent="Control/PowerUpInventoryUI" unique_id=1706013828] -layout_mode = 0 -offset_right = 74.28728 -offset_bottom = 78.35126 -size_flags_horizontal = 3 -size_flags_vertical = 3 -focus_mode = 0 -icon = ExtResource("14_87u65") -flat = true -icon_alignment = 1 -expand_icon = true - -[node name="LeaderboardPanel" type="PanelContainer" parent="Control" unique_id=1297997001] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 430.48157 -offset_top = -143.0412 -offset_right = 677.39124 -offset_bottom = 25.958801 -grow_horizontal = 0 -rotation = 0.10297442 -size_flags_horizontal = 3 -size_flags_vertical = 3 - -[node name="MarginContainer" type="MarginContainer" parent="Control/LeaderboardPanel" unique_id=376281722] -layout_mode = 2 -theme_override_constants/margin_left = 10 -theme_override_constants/margin_top = 10 -theme_override_constants/margin_right = 10 -theme_override_constants/margin_bottom = 10 - -[node name="VBox" type="VBoxContainer" parent="Control/LeaderboardPanel/MarginContainer" unique_id=1657618748] -layout_mode = 2 -theme_override_constants/separation = 4 - -[node name="Title" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=708273770] -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "🏆 LEADERBOARD" -horizontal_alignment = 1 - -[node name="Separator" type="HSeparator" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=2032638209] -layout_mode = 2 - -[node name="Entry1" type="HBoxContainer" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=1265284927] -layout_mode = 2 - -[node name="RankLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry1" unique_id=1373209474] -custom_minimum_size = Vector2(50, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "1st" - -[node name="NameLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry1" unique_id=1208918458] -custom_minimum_size = Vector2(100, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "Player 1" -clip_text = true - -[node name="ScoreLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry1" unique_id=1417585584] -layout_mode = 2 -size_flags_horizontal = 3 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "0" -horizontal_alignment = 2 - -[node name="Entry2" type="HBoxContainer" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=846694697] -layout_mode = 2 - -[node name="RankLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry2" unique_id=2023404321] -custom_minimum_size = Vector2(50, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "2nd" - -[node name="NameLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry2" unique_id=2008425205] -custom_minimum_size = Vector2(100, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "Player 2" -clip_text = true - -[node name="ScoreLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry2" unique_id=885274390] -layout_mode = 2 -size_flags_horizontal = 3 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "0" -horizontal_alignment = 2 - -[node name="Entry3" type="HBoxContainer" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=1183968547] -layout_mode = 2 - -[node name="RankLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry3" unique_id=399506954] -custom_minimum_size = Vector2(50, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "3rd" - -[node name="NameLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry3" unique_id=462344735] -custom_minimum_size = Vector2(100, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "Player 3" -clip_text = true - -[node name="ScoreLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry3" unique_id=520940336] -layout_mode = 2 -size_flags_horizontal = 3 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "0" -horizontal_alignment = 2 - -[node name="Entry4" type="HBoxContainer" parent="Control/LeaderboardPanel/MarginContainer/VBox" unique_id=1655341648] -layout_mode = 2 - -[node name="RankLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry4" unique_id=2060566908] -custom_minimum_size = Vector2(50, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "4th" - -[node name="NameLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry4" unique_id=1941203565] -custom_minimum_size = Vector2(100, 0) -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "Player 4" -clip_text = true - -[node name="ScoreLabel" type="Label" parent="Control/LeaderboardPanel/MarginContainer/VBox/Entry4" unique_id=477346415] -layout_mode = 2 -size_flags_horizontal = 3 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 22 -text = "0" -horizontal_alignment = 2 - -[node name="GlobalMatchTimer" type="PanelContainer" parent="Control" unique_id=144788645] -layout_mode = 1 -anchors_preset = 5 -anchor_left = 0.5 -anchor_right = 0.5 -offset_left = -33.875 -offset_top = -219.625 -offset_right = 114.125 -offset_bottom = -155.625 -grow_horizontal = 2 -theme_override_styles/panel = SubResource("StyleBoxFlat_4x5x1") - -[node name="VBox" type="VBoxContainer" parent="Control/GlobalMatchTimer" unique_id=1540701984] -layout_mode = 2 -alignment = 1 - -[node name="TimerLabel" type="Label" parent="Control/GlobalMatchTimer/VBox" unique_id=405814023] -layout_mode = 2 -theme_override_fonts/font = ExtResource("10_xpxsb") -theme_override_font_sizes/font_size = 28 -text = "3:00" -horizontal_alignment = 1 - -[node name="SettingsBtn" type="Button" parent="Control" unique_id=1206735238] -layout_mode = 1 -anchors_preset = 1 -anchor_left = 1.0 -anchor_right = 1.0 -offset_left = 626.125 -offset_top = -219.625 -offset_right = 674.125 -offset_bottom = -171.625 -grow_horizontal = 0 -text = "⚙" - -[node name="TouchControls" type="CanvasLayer" parent="Control" unique_id=588945395] -script = ExtResource("15_npyp1") - -[node name="TouchControls" type="Control" parent="Control/TouchControls" unique_id=1841222096] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_top = 318.0 -grow_horizontal = 2 -grow_vertical = 2 -mouse_filter = 2 -theme = ExtResource("12_l1hvi") - -[node name="VirtualJoystick" type="Control" parent="Control/TouchControls/TouchControls" unique_id=1442728959] -visible = false -layout_mode = 1 -anchors_preset = 2 -anchor_top = 1.0 -anchor_bottom = 1.0 -offset_left = 120.0 -offset_top = -280.0 -offset_right = 280.0 -offset_bottom = -120.0 -grow_vertical = 0 -script = ExtResource("16_pfi5j") - -[node name="PowerBarBtn" type="VBoxContainer" parent="Control/TouchControls/TouchControls" unique_id=348432340] -layout_mode = 0 -offset_left = 47.858246 -offset_top = 98.014656 -offset_right = 129.85825 -offset_bottom = 265.01465 -rotation = -0.10297442 -theme_override_constants/separation = 10 - -[node name="AttackModeBtn" type="Button" parent="Control/TouchControls/TouchControls/PowerBarBtn" unique_id=1953538050] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -focus_mode = 0 -icon = ExtResource("17_2hrhd") -flat = true -icon_alignment = 1 -expand_icon = true - -[node name="TektonGrabBtn" type="Button" parent="Control/TouchControls/TouchControls/PowerBarBtn" unique_id=1477177965] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -icon = ExtResource("18_i0235") -flat = true -icon_alignment = 1 -expand_icon = true - -[node name="InteractionBtn" type="VBoxContainer" parent="Control/TouchControls/TouchControls" unique_id=311035046] -layout_mode = 0 -offset_left = 131.0 -offset_top = 86.999985 -offset_right = 213.0 -offset_bottom = 254.0 -rotation = -0.10297442 -theme_override_constants/separation = 10 - -[node name="GrabBtn" type="Button" parent="Control/TouchControls/TouchControls/InteractionBtn" unique_id=469230819] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -focus_mode = 0 -icon = ExtResource("19_fnhdf") -flat = true -icon_alignment = 1 -expand_icon = true - -[node name="PutBtn" type="Button" parent="Control/TouchControls/TouchControls/InteractionBtn" unique_id=484348930] -layout_mode = 2 -size_flags_horizontal = 3 -size_flags_vertical = 3 -focus_mode = 0 -icon = ExtResource("20_tgjh8") -flat = true -icon_alignment = 1 -expand_icon = true +script = ExtResource("1_ij7jg") [node name="ReadyGo" type="Control" parent="." unique_id=1685675849] visible = false @@ -1716,7 +352,7 @@ grow_horizontal = 2 grow_vertical = 2 scale = Vector2(0.75, 0.75) pivot_offset = Vector2(81.5, 176.5) -texture = ExtResource("1_7lxrk") +texture = ExtResource("21_lfh5i") [node name="SafeZone" type="Control" parent="." unique_id=2057764747] visible = false @@ -1744,9 +380,10 @@ grow_horizontal = 2 grow_vertical = 2 scale = Vector2(0.715, 0.715) pivot_offset = Vector2(960, 540) -texture = ExtResource("22_xpxsb") +texture = ExtResource("22_rk0mx") [node name="StopPhase" type="Control" parent="." unique_id=1837516815] +visible = false layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 @@ -1770,12 +407,11 @@ grow_horizontal = 2 grow_vertical = 2 scale = Vector2(0.75, 0.75) pivot_offset = Vector2(960, 477.5) -texture = ExtResource("23_5jpki") +texture = ExtResource("23_mfqh2") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="StopPhase" unique_id=1499304863] -z_index = -1 position = Vector2(671, 364) -sprite_frames = ExtResource("24_l1hvi") +sprite_frames = ExtResource("24_u10lt") animation = &"stop-phase" [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1614214519] diff --git a/scenes/main.gd b/scenes/main.gd index 975b3eb..5170aae 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -16,6 +16,7 @@ var portal_mode_winner_id: int = -1 var is_match_ended: bool = false var obstacle_manager var portal_mode_manager +var vfx_manager # Minimal local state var _connection_check_timer: float = 0.0 @@ -219,6 +220,11 @@ func _init_managers(): add_child(obstacle_manager) obstacle_manager.initialize(self , $EnhancedGridMap) + # NEW: VFX Animation Manager for Ready-Go, Stop-Phase, etc. + vfx_manager = load("res://scenes/animation.tscn").instantiate() + vfx_manager.name = "VFXManager" + add_child(vfx_manager) + # Connect signals for UI updates goals_cycle_manager.timer_updated.connect(_on_timer_updated) goals_cycle_manager.score_updated.connect(_on_score_updated) @@ -349,18 +355,17 @@ func broadcast_message(player_name: String, message: String, type: int = Message add_message_to_bar(player_name, message, type) func _start_pre_game_countdown(): - """Show a 3-second countdown on all clients before starting.""" - for i in range(3, 0, -1): - if can_rpc(): - rpc("sync_countdown", str(i)) - await get_tree().create_timer(1.0).timeout - + """Trigger the premium Ready-Go animation on all clients.""" if can_rpc(): - rpc("sync_countdown", "GO!") - await get_tree().create_timer(0.5).timeout + rpc("sync_ready_go") - if can_rpc(): - rpc("sync_countdown", "") + # Delay game start until the 4.0s animation finishes + await get_tree().create_timer(4.0).timeout + +@rpc("call_local", "reliable") +func sync_ready_go(): + if vfx_manager and vfx_manager.has_method("play_ready_go"): + vfx_manager.play_ready_go() @rpc("call_local", "reliable") func sync_countdown(text: String): diff --git a/scenes/main.tscn b/scenes/main.tscn index 389ff7a..185ef88 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -15,7 +15,6 @@ [ext_resource type="Texture2D" uid="uid://dasaeaytvhll0" path="res://assets/models/pboard/AdjacentRect.tres" id="9_aspsw"] [ext_resource type="FontFile" uid="uid://xnjx058n4tsw" path="res://assets/fonts/Nougat-ExtraBlack.ttf" id="13_j8jky"] [ext_resource type="Theme" uid="uid://0dhxl4ohyxh8" path="res://assets/graphics/game_setting/setting_theme.tres" id="18_pm3ni"] -[ext_resource type="PackedScene" uid="uid://dqp3e6q3orers" path="res://scenes/arena/stop_n_go.scn" id="24_y6deb"] [ext_resource type="Texture2D" uid="uid://ba80xnybpixw2" path="res://assets/graphics/touch_control/take_tile.png" id="25_qkpxi"] [ext_resource type="Texture2D" uid="uid://bsgqrjx2ity4c" path="res://assets/graphics/touch_control/speed.png" id="26_2f3dj"] [ext_resource type="Texture2D" uid="uid://pwxo4lb87yi" path="res://assets/graphics/touch_control/put_tile.png" id="26_5q0nq"] @@ -1731,8 +1730,6 @@ custom_minimum_size = Vector2(0, 40) layout_mode = 2 text = "Back" -[node name="StopNGo" parent="." unique_id=1986641660 instance=ExtResource("24_y6deb")] - [connection signal="text_submitted" from="MessageInput" to="." method="_on_message_input_text_submitted"] [connection signal="pressed" from="PauseMenu/Panel/VBox/ResumeBtn" to="." method="_on_resume_pressed"] [connection signal="pressed" from="PauseMenu/Panel/VBox/HowToPlayBtn" to="." method="_on_how_to_play_pressed"] diff --git a/scripts/managers/stop_n_go_manager.gd b/scripts/managers/stop_n_go_manager.gd index 3244b91..dba67a7 100644 --- a/scripts/managers/stop_n_go_manager.gd +++ b/scripts/managers/stop_n_go_manager.gd @@ -65,13 +65,6 @@ func _setup_hud(): hud_layer.visible = false add_child(hud_layer) - # Full-screen red tint overlay (below everything else in this layer, but above game) - red_tint_overlay = ColorRect.new() - red_tint_overlay.color = Color(1.0, 0.0, 0.0, 0.25) # Transparent red - red_tint_overlay.set_anchors_preset(Control.PRESET_FULL_RECT) # Cover whole screen - red_tint_overlay.visible = false # Hidden initially - hud_layer.add_child(red_tint_overlay) - # New container for bottom-mid label var bottom_container = CenterContainer.new() bottom_container.set_anchors_preset(Control.PRESET_CENTER_BOTTOM) @@ -100,8 +93,8 @@ func _process(delta): if multiplayer.is_server(): if current_phase == Phase.GO: - # Spawn all 3 safe zones at once, 3 seconds before STOP - if phase_timer <= 3.0 and spawned_safe_zones == 0: + # Spawn all 3 safe zones at once, 6 seconds before STOP + if phase_timer <= 6.0 and spawned_safe_zones == 0: print("[StopNGo] GO phase ending soon. Spawning 3 safe zones...") for i in range(3): _spawn_dynamic_safe_zone() @@ -124,10 +117,6 @@ func _on_goal_count_updated(_peer_id: int, _count: int): var _has_notified_mission_complete: bool = false func _update_hud_visuals(): - # Toggle Red Screen Tint - if red_tint_overlay: - red_tint_overlay.visible = (current_phase == Phase.STOP) - var my_id = multiplayer.get_unique_id() if mission_label: var main = get_node_or_null("/root/Main") @@ -196,9 +185,9 @@ func _update_stop_timer_visuals(): stop_timer_node.visible = true if current_phase == Phase.GO: - # GO Phase: All dim unless in last 3 seconds + # GO Phase: All dim unless in last 6 seconds (lights up 6, 4, 2s) for i in range(stop_segments.size()): - var threshold = 3.0 - i + var threshold = 6.0 - (i * 2.0) if phase_timer <= threshold: stop_segments[i].add_theme_stylebox_override("panel", lit_style) else: @@ -275,6 +264,15 @@ func sync_phase(phase_name: String, duration: float): activate_client_side() current_phase = Phase.GO if phase_name == "GO" else Phase.STOP phase_timer = duration + + # Trigger Phase Animations + var main = get_node_or_null("/root/Main") + if main and main.get("vfx_manager"): + if phase_name == "STOP": + if main.vfx_manager.has_method("play_stop_phase"): + main.vfx_manager.play_stop_phase() + elif main.vfx_manager.get("animation_player"): + main.vfx_manager.animation_player.play("stop-phase") func _setup_arena(): var gridmap = get_parent().get_node_or_null("EnhancedGridMap") @@ -599,6 +597,19 @@ func _spawn_dynamic_safe_zone(): gridmap.set_cell_item(Vector3i(px, 2, pz), TILE_SAFE) if can_rpc() and main: main.rpc("sync_grid_item", px, 2, pz, TILE_SAFE) + + # Trigger safe zone appear visual effects on all clients + if can_rpc(): + rpc("sync_safe_zone_vfx") + +@rpc("authority", "call_local", "reliable") +func sync_safe_zone_vfx(): + var main = get_node_or_null("/root/Main") + if main and main.get("vfx_manager"): + if main.vfx_manager.has_method("play_safe_zone_appear"): + main.vfx_manager.play_safe_zone_appear() + elif main.vfx_manager.get("animation_player"): + main.vfx_manager.animation_player.play("safe-zone-appear") func _is_valid_safe_zone_area(gridmap: Node, start_x: int, start_z: int, width: int, height: int) -> bool: # Avoid bounds or start/finish cols