1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-13 07:07:12 +08:00

feat(武器系统): 添加武器类型支持及相关组件

- 在FeedName.gd中新增WEAPON枚举类型及对应翻译和颜色配置
- 在Feed.gd中添加weapons数组和weaponsBox容器
- 新增WeaponShow.tscn武器展示组件
- 添加NuclearBomb.tscn核弹武器示例
- 修改ComponentManager.gd中主题文件加载路径
- 更新FeedCardBase.tscn和FeedName.tscn以支持武器显示
This commit is contained in:
2025-09-21 16:35:49 +08:00
parent 0f588a4b58
commit ace6d3bf53
7 changed files with 62 additions and 10 deletions
+5 -3
View File
@@ -1,8 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://bykwevnv7keeh"]
[gd_scene load_steps=5 format=3 uid="uid://bykwevnv7keeh"]
[ext_resource type="Script" path="res://scripts/Structs/Feed.gd" id="1_2ea75"]
[ext_resource type="Theme" uid="uid://dhvs6urgf6jr5" path="res://themes/main.tres" id="2_lvrpo"]
[ext_resource type="Texture2D" uid="uid://dwwpkn4q07ja2" path="res://icon.svg" id="3_v6s0y"]
[ext_resource type="PackedScene" uid="uid://bt370a1djjg5p" path="res://components/UI/FeedName.tscn" id="4_aewpy"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_n2ewr"]
@@ -48,7 +47,6 @@ custom_minimum_size = Vector2(75, 75)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
texture = ExtResource("3_v6s0y")
expand_mode = 1
stretch_mode = 5
@@ -61,6 +59,10 @@ quality = 1
unique_name_in_owner = true
layout_mode = 2
[node name="weapons" type="VBoxContainer" parent="container"]
unique_name_in_owner = true
layout_mode = 2
[node name="costs" type="GridContainer" parent="container"]
unique_name_in_owner = true
layout_mode = 2