delete honeydew_counter scene

This commit is contained in:
Teatov 2024-10-13 20:36:13 +10:00
parent 13ddbc8bd3
commit da6a66a07f
5 changed files with 23 additions and 22 deletions

View File

@ -0,0 +1,7 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://bascwflq4ut2p"]
[ext_resource type="Texture2D" uid="uid://cbl67su2x66tp" path="res://assets/textures/gui/honeydew_count.png" id="1_n2h3f"]
[resource]
atlas = ExtResource("1_n2h3f")
region = Rect2(0, 0, 128, 128)

View File

@ -2,7 +2,7 @@
[ext_resource type="StyleBox" uid="uid://do5c5v5kvgv0s" path="res://resources/styles/panel_small_style.tres" id="1_tod8w"]
[ext_resource type="Script" path="res://scripts/ui/anthill_info.gd" id="2_aj5vl"]
[ext_resource type="PackedScene" uid="uid://w3ydggdgvyqn" path="res://scenes/ui/honeydew_counter.tscn" id="3_8onrx"]
[ext_resource type="Script" path="res://scripts/ui/honeydew_counter.gd" id="3_kibtv"]
[ext_resource type="Texture2D" uid="uid://bh01xbmjanku0" path="res://assets/textures/gui/button_bg.png" id="4_b8264"]
[ext_resource type="Texture2D" uid="uid://slraulfmk8c0" path="res://assets/textures/gui/pictograms.png" id="4_dw0d6"]
[ext_resource type="Texture2D" uid="uid://jv8twhntt6x3" path="res://assets/textures/gui/button_hover_bg.png" id="5_f3si0"]
@ -44,12 +44,14 @@ offset_right = 242.0
offset_bottom = 76.0
text = "max"
[node name="HoneydewCounter" parent="." instance=ExtResource("3_8onrx")]
[node name="HoneydewCounter" type="ReferenceRect" parent="."]
layout_mode = 0
offset_left = 13.0
offset_top = 22.0
offset_right = 232.0
offset_bottom = 55.0
mouse_filter = 2
script = ExtResource("3_kibtv")
[node name="AntBuyButton" type="TextureButton" parent="."]
self_modulate = Color(0.827451, 0.717647, 0.564706, 1)

View File

@ -5,7 +5,7 @@
[ext_resource type="Texture2D" uid="uid://bh01xbmjanku0" path="res://assets/textures/gui/button_bg.png" id="2_shpjn"]
[ext_resource type="Texture2D" uid="uid://jv8twhntt6x3" path="res://assets/textures/gui/button_hover_bg.png" id="3_bwnfl"]
[ext_resource type="Texture2D" uid="uid://slraulfmk8c0" path="res://assets/textures/gui/pictograms.png" id="4_s7jbe"]
[ext_resource type="PackedScene" uid="uid://w3ydggdgvyqn" path="res://scenes/ui/honeydew_counter.tscn" id="5_5hx6c"]
[ext_resource type="Script" path="res://scripts/ui/honeydew_counter.gd" id="6_k6iup"]
[sub_resource type="AtlasTexture" id="AtlasTexture_t7i0n"]
atlas = ExtResource("4_s7jbe")
@ -84,12 +84,14 @@ grow_horizontal = 2
grow_vertical = 2
texture = SubResource("AtlasTexture_du04k")
[node name="NitwitPriceCounter" parent="." instance=ExtResource("5_5hx6c")]
[node name="NitwitPriceCounter" type="ReferenceRect" parent="."]
layout_mode = 0
offset_left = 136.0
offset_top = 27.0
offset_right = 220.0
offset_bottom = 71.0
mouse_filter = 2
script = ExtResource("6_k6iup")
[node name="BuyGathererButton" type="TextureButton" parent="."]
self_modulate = Color(0.827451, 0.717647, 0.564706, 1)
@ -119,19 +121,23 @@ grow_horizontal = 2
grow_vertical = 2
texture = SubResource("AtlasTexture_eg31t")
[node name="GathererPriceCounter" parent="." instance=ExtResource("5_5hx6c")]
[node name="GathererPriceCounter" type="ReferenceRect" parent="."]
layout_mode = 0
offset_left = 135.0
offset_top = 87.0
offset_right = 219.0
offset_bottom = 131.0
mouse_filter = 2
script = ExtResource("6_k6iup")
[node name="HoneydewCounter" parent="." instance=ExtResource("5_5hx6c")]
[node name="HoneydewCounter" type="ReferenceRect" parent="."]
layout_mode = 0
offset_left = 16.0
offset_top = 150.0
offset_right = 235.0
offset_bottom = 183.0
mouse_filter = 2
script = ExtResource("6_k6iup")
[node name="NitwitPanel" type="Panel" parent="."]
layout_mode = 0

View File

@ -1,15 +0,0 @@
[gd_scene load_steps=4 format=3 uid="uid://w3ydggdgvyqn"]
[ext_resource type="Script" path="res://scripts/ui/honeydew_counter.gd" id="1_en213"]
[ext_resource type="Texture2D" uid="uid://cbl67su2x66tp" path="res://assets/textures/gui/honeydew_count.png" id="2_thytk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_unwbl"]
atlas = ExtResource("2_thytk")
region = Rect2(0, 0, 128, 128)
[node name="HoneydewCounter" type="ReferenceRect"]
offset_right = 77.0
offset_bottom = 33.0
mouse_filter = 2
script = ExtResource("1_en213")
atlas = SubResource("AtlasTexture_unwbl")

View File

@ -6,7 +6,6 @@ const RANDOM_OFFSET: float = 5
const GAP: float = 1
const SPRITES_PER_RECT: int = 5
@export var _atlas: AtlasTexture
var _rects: Array[TextureRect] = []
@ -14,6 +13,8 @@ var _max_count: int = 0
var _count_per_row: int = 0
var _rect_size: float = RECT_SIZE
var _atlas: AtlasTexture = preload("res://resources/honeydew_counter_atlas.tres")
func _ready() -> void:
assert(_atlas != null, "_atlas missing!")