mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-27 05:52:29 +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:
@@ -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
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://x8moaidokct"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bykwevnv7keeh" path="res://components/Abstracts/FeedCardBase.tscn" id="1_kytcq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cp57lmeohvo3o" path="res://resources/weapons/nuclear-bomb.png" id="2_l6mhl"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2qhes4apaxsj" path="res://components/Weapons/NuclearBomb.tscn" id="3_3jrcs"]
|
||||
|
||||
[node name="NuclearBomb" instance=ExtResource("1_kytcq")]
|
||||
avatarTexture = ExtResource("2_l6mhl")
|
||||
displayName = "核弹控制器"
|
||||
topic = 8
|
||||
weapons = Array[PackedScene]([ExtResource("3_3jrcs")])
|
||||
|
||||
[node name="avatar" parent="container/info" index="0"]
|
||||
texture = ExtResource("2_l6mhl")
|
||||
|
||||
[node name="name" parent="container/info" index="1"]
|
||||
displayName = "核弹控制器"
|
||||
topic = 8
|
||||
@@ -3,11 +3,11 @@
|
||||
[ext_resource type="Script" path="res://scripts/Statemachine/FeedName.gd" id="1_wfxme"]
|
||||
[ext_resource type="Theme" uid="uid://bje5cd08dyok7" path="res://themes/bigTextAndBold.tres" id="2_k71he"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_whetw"]
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_8o8ly"]
|
||||
font_size = 12
|
||||
font_color = Color(1, 0.442751, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_wse1t"]
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_6f4ri"]
|
||||
font_size = 12
|
||||
font_color = Color(1, 0, 0.585938, 1)
|
||||
|
||||
@@ -27,12 +27,13 @@ qualityColorMap = {
|
||||
topicColorMap = {
|
||||
0: Color(1, 0, 0.585938, 1),
|
||||
1: Color(0, 0.414063, 1, 1),
|
||||
2: Color(0.757813, 0.497314, 0, 1),
|
||||
2: Color(0.60183, 0.349817, 0, 1),
|
||||
3: Color(0.40625, 1, 0, 1),
|
||||
4: Color(1, 0, 0, 1),
|
||||
5: Color(1, 0.421875, 0, 1),
|
||||
6: Color(1, 1, 1, 1),
|
||||
7: Color(0.449219, 0.449219, 0.449219, 1)
|
||||
7: Color(0.449219, 0.449219, 0.449219, 1),
|
||||
8: Color(1, 0.816993, 0, 1)
|
||||
}
|
||||
metadata/_edit_horizontal_guides_ = [25.0]
|
||||
|
||||
@@ -41,7 +42,7 @@ unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
text = "[传说]"
|
||||
label_settings = SubResource("LabelSettings_whetw")
|
||||
label_settings = SubResource("LabelSettings_8o8ly")
|
||||
|
||||
[node name="label" type="RichTextLabel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
@@ -57,4 +58,4 @@ unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
text = "[生存]"
|
||||
label_settings = SubResource("LabelSettings_wse1t")
|
||||
label_settings = SubResource("LabelSettings_6f4ri")
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c7747qr83iojj"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://b6nox1qqh50ub" path="res://themes/smallText.tres" id="1_ua7kx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbm8l3hr4ihar" path="res://components/UI/ItemShow.tscn" id="2_yqc2h"]
|
||||
|
||||
[node name="WeaponShow" type="HBoxContainer"]
|
||||
offset_right = 189.0
|
||||
offset_bottom = 22.0
|
||||
theme = ExtResource("1_ua7kx")
|
||||
|
||||
[node name="operation" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "获得/提炼"
|
||||
|
||||
[node name="name" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
text = "武器名称"
|
||||
|
||||
[node name="soul" parent="." instance=ExtResource("2_yqc2h")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 10
|
||||
type = 4
|
||||
Reference in New Issue
Block a user