Unit panel rewire

This commit is contained in:
gamer147
2026-04-10 09:29:36 -04:00
parent f6ac31b52e
commit b01d8c6648
6 changed files with 176 additions and 39 deletions

View File

@@ -6,7 +6,9 @@
[ext_resource type="Texture2D" uid="uid://b8td6sv5re6r8" path="res://assets/sprites/grey_castle_spritesheet_mask.bmp" id="2_7ddre"]
[ext_resource type="Texture2D" uid="uid://b20mhn7ca5xyo" path="res://assets/sprites/aux_terrain.BMP" id="5_qjeyg"]
[ext_resource type="Script" uid="uid://csdcbi2gtwrly" path="res://scripts/battle/camera_controller.gd" id="6_wtsjf"]
[ext_resource type="PackedScene" uid="uid://bc5a7tb0my6n5" path="res://prefabs/StylizedNumberDisplay.tscn" id="7_rnaij"]
[ext_resource type="PackedScene" uid="uid://bc5a7tb0my6n5" path="res://prefabs/stylized_number_display.tscn" id="7_rnaij"]
[ext_resource type="PackedScene" uid="uid://8edgswcwdiwu" path="res://prefabs/chip_bar.tscn" id="8_h3xc6"]
[ext_resource type="Texture2D" uid="uid://cavpqnd0qqoou" path="res://assets/ui/SO008B.BMP" id="9_s36qc"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_qjeyg"]
texture = ExtResource("1_7ddre")
@@ -55,6 +57,14 @@ region = Rect2(0, 100, 100, 100)
atlas = ExtResource("5_qjeyg")
region = Rect2(210, 0, 41, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_6qxox"]
atlas = ExtResource("9_s36qc")
region = Rect2(249, 272, 3, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_gthg3"]
atlas = ExtResource("9_s36qc")
region = Rect2(246, 272, 3, 14)
[node name="TestScene" type="Node2D" unique_id=1687841395]
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=265586128]
@@ -73,7 +83,16 @@ texture = SubResource("AtlasTexture_3qnke")
script = ExtResource("6_wtsjf")
metadata/_custom_type_script = "uid://csdcbi2gtwrly"
[node name="StylizedNumberDisplay" parent="." unique_id=702997768 instance=ExtResource("7_rnaij")]
[node name="Control" type="Control" parent="." unique_id=794632273]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="StylizedNumberDisplay" parent="Control" unique_id=702997768 instance=ExtResource("7_rnaij")]
layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
@@ -84,3 +103,15 @@ grow_vertical = 1
number_sprite_width = 27
number_sprite_height = 36
value = 1234567890
[node name="ChipBar" parent="Control" unique_id=379110810 instance=ExtResource("8_h3xc6")]
layout_mode = 1
offset_left = -87.0
offset_top = -101.0
offset_right = -37.0
offset_bottom = -1.0
value = 5
max_value = 5
max_chips_per_row = 10
empty_chip_texture = SubResource("AtlasTexture_6qxox")
filled_chip_texture = SubResource("AtlasTexture_gthg3")