生产线样式,添加图标测试

This commit is contained in:
2025-06-19 00:02:41 +08:00
parent 50dc434ed9
commit b3d1135e23
23 changed files with 868 additions and 384 deletions

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://vao0wv2oib2a"]
[gd_scene load_steps=5 format=3 uid="uid://vao0wv2oib2a"]
[ext_resource type="Script" path="res://scripts/ui/ProductionLineItem.cs" id="1_1"]
[ext_resource type="Texture2D" uid="uid://dqu31gnodu6dx" path="res://assets/textures/Vanilla.png" id="2_o1rrk"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1"]
bg_color = Color(0.15, 0.18, 0.22, 0.95)
@ -17,8 +18,12 @@ shadow_color = Color(0, 0, 0, 0.3)
shadow_size = 2
shadow_offset = Vector2(1, 1)
[sub_resource type="AtlasTexture" id="AtlasTexture_cln0n"]
atlas = ExtResource("2_o1rrk")
region = Rect2(720, 640, 80, 80)
[node name="ProductionLineItem" type="Panel"]
custom_minimum_size = Vector2(240, 80)
custom_minimum_size = Vector2(250, 60)
theme_override_styles/panel = SubResource("StyleBoxFlat_1")
script = ExtResource("1_1")
@ -45,6 +50,7 @@ theme_override_constants/separation = 8
[node name="IconTexture" type="TextureRect" parent="MarginContainer/VBoxContainer/TopRow"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
texture = SubResource("AtlasTexture_cln0n")
expand_mode = 1
stretch_mode = 5