some refactoring
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dl0d1m1gfcd4o"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dl0d1m1gfcd4o"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://f7n8gd1wlv4v" path="res://Scenes/Player/UI/spawnable_button.tscn" id="1_tvnet"]
|
||||
[ext_resource type="PackedScene" uid="uid://brnx3xyyd0e71" path="res://Scenes/Spawnables/bat_spawnable.tscn" id="2_borla"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddvr5ltbo8ome" path="res://Assets/Bat/noBKG_BatFlight_strip.png" id="3_5io10"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qf7uu"]
|
||||
atlas = ExtResource("3_5io10")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_if561"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("3_5io10")
|
||||
@@ -15,7 +11,6 @@ region = Rect2(64, 0, 64, 64)
|
||||
|
||||
[node name="BatButton" instance=ExtResource("1_tvnet")]
|
||||
spawnableScene = ExtResource("2_borla")
|
||||
spawnableIcon = SubResource("AtlasTexture_qf7uu")
|
||||
|
||||
[node name="AnimatedTextureRect" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_if561")
|
||||
|
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bj2kxv2gq5ase"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bj2kxv2gq5ase"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scenes/Player/UI/cursor_state.gd" id="1_ghv1b"]
|
||||
[ext_resource type="Theme" uid="uid://dr1h7to56a2pv" path="res://Themes/base_theme.tres" id="2_4ke2g"]
|
||||
|
||||
[node name="CursorState" type="Node2D"]
|
||||
script = ExtResource("1_ghv1b")
|
||||
@@ -10,6 +11,7 @@ offset_left = 11.5
|
||||
offset_top = 14.0
|
||||
offset_right = 81.5
|
||||
offset_bottom = 40.0
|
||||
theme = ExtResource("2_4ke2g")
|
||||
|
||||
[node name="Image" type="Sprite2D" parent="."]
|
||||
position = Vector2(11.5, 14)
|
||||
|
@@ -2,7 +2,6 @@ class_name SpawnableButton
|
||||
extends Button
|
||||
|
||||
@export var spawnableScene : PackedScene = null
|
||||
@export var spawnableIcon : Texture2D = null
|
||||
|
||||
@onready var animationPlayer : AnimationPlayer = $AnimationPlayer
|
||||
|
||||
|
Reference in New Issue
Block a user