1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 08:21:54 +08:00

feat: 更新FullscreenPanelBase和VectorStar组件,优化UI布局和武器属性

This commit is contained in:
2025-09-06 21:12:11 +08:00
parent 0f3dc2ca9f
commit 6a4f5e8baf
5 changed files with 31 additions and 21 deletions
@@ -95,6 +95,8 @@ layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -500.0
offset_bottom = -500.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_8e8nf")
+16 -6
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=10 format=3 uid="uid://ro1df12asa6y"]
[gd_scene load_steps=12 format=3 uid="uid://ro1df12asa6y"]
[ext_resource type="PackedScene" uid="uid://crtdkysmnkith" path="res://components/Abstracts/BulletBase.tscn" id="1_fyvdf"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/VectorStar.gd" id="2_1u5ed"]
@@ -22,6 +22,13 @@ point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_c22if"]
curve = SubResource("Curve_y5wc0")
[sub_resource type="Curve" id="Curve_ji22g"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_q44nv"]
curve = SubResource("Curve_ji22g")
[sub_resource type="Curve" id="Curve_r5tug"]
_data = [Vector2(0.696697, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
@@ -31,13 +38,16 @@ curve = SubResource("Curve_r5tug")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_bieyj"]
particle_flag_disable_z = true
angle_min = 1.07288e-05
angle_max = 360.0
angle_curve = SubResource("CurveTexture_q44nv")
direction = Vector3(-1, 0, 0)
spread = 0.0
initial_velocity_min = 100.0
initial_velocity_max = 200.0
spread = 180.0
initial_velocity_min = 10.0
initial_velocity_max = 50.0
gravity = Vector3(0, 0, 0)
scale_min = 0.6
scale_max = 0.8
scale_min = 0.25
scale_max = 0.75
scale_curve = SubResource("CurveTexture_6bcs1")
alpha_curve = SubResource("CurveTexture_c22if")
+4 -6
View File
@@ -26,9 +26,10 @@ storeType = {
"power": 2.0,
"trace": 0.0
}
descriptionTemplate = "每$angle发射1/$count条以$power效率追踪$trace秒的[b]彩飞星[/b],每条造成$atk点伤害。"
descriptionTemplate = "每$angle发射1/$count条以$power效率追踪$trace秒的[b]彩飞星[/b],每条造成$atk点伤害。"
needEnergy = 50.0
cooldown = 1000.0
debugRebuild = true
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("4_c5xse")
@@ -37,10 +38,7 @@ stream = ExtResource("4_c5xse")
texture = ExtResource("2_ou6jo")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "30.0"
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
text = "50.0"
[node name="name" parent="container/info" index="2"]
displayName = "彩虹旗"
@@ -49,5 +47,5 @@ typeTopic = 3
[node name="description" parent="container" index="2"]
size_flags_vertical = 3
text = "[center]每[color=cyan]30.0°[/color]发射1/[color=cyan]7[/color]条以[color=cyan]25%[/color]效率追踪[color=cyan]2.00[/color]秒的[b]彩飞星[/b],每条造成[color=cyan]20[/color]点伤害。[/center]"
text = "[center]每[color=cyan]30.0°[/color]发射1/[color=cyan]7[/color]条以[color=cyan]25%[/color]效率追踪[color=cyan]2.00[/color]秒的[b]彩飞星[/b],每条造成[color=cyan]20[/color]点伤害。[/center]"
autowrap_mode = 2
+6 -8
View File
@@ -10,8 +10,8 @@ avatarTexture = ExtResource("3_wfty8")
displayName = "星辰核心"
quality = 2
store = {
"atk": 5,
"forwardtime": 1,
"atk": 7,
"forwardtime": 0.75,
"maxcount": 10,
"mincount": 5
}
@@ -22,21 +22,19 @@ storeType = {
"mincount": 1.0
}
descriptionTemplate = "发射$mincount~$maxcount个[b]无主[/b]的矢量星,在$forwardtime秒后向目标冲刺并造成$atk点伤害。"
needEnergy = 25.0
needEnergy = 10.0
cooldown = 500.0
debugRebuild = true
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("3_wfty8")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "25.0"
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
text = "10.0"
[node name="name" parent="container/info" index="2"]
displayName = "星辰核心"
quality = 2
[node name="description" parent="container" index="2"]
text = "[center]发射[color=cyan]5[/color]~[color=cyan]10[/color]个[b]无主[/b]的矢量星,在[color=cyan]1.00[/color]秒后向目标冲刺并造成[color=cyan]5[/color]点伤害。[/center]"
text = "[center]发射[color=cyan]5[/color]~[color=cyan]10[/color]个[b]无主[/b]的矢量星,在[color=cyan]0.75[/color]秒后向目标冲刺并造成[color=cyan]7[/color]点伤害。[/center]"
+3 -1
View File
@@ -21,6 +21,8 @@ func _ready():
energyPercent = $"%percent"
itemCollect = $"%itemCollect"
skillIconContainer = $"%skillContainer"
# for i in FieldStore.entityMap:
# print(FieldStore.entityMap[i])
func _process(_delta):
bossbar.visible = !!bossbar.entity
func _physics_process(_delta):
@@ -47,7 +49,7 @@ func _physics_process(_delta):
fieldsAnimator.play("hide")
if Input.is_action_just_pressed("pause"):
if currentPanel:
if currentPanel.name == "Pause":
if currentPanel.name != "MakeFeed":
closeCurrentPanel()
else:
setPanel("Pause")