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

refactor: 重构资源路径和组件结构

- 将attackstar.svg从UI目录移动到resources/common目录
- 将VerticalColorBar.tscn从UI/Variants目录移动到根components目录
- 将LaserSummoner.tscn从Bullets/Common目录移动到Bullets根目录
- 移除调试日志打印语句
- 优化ItemStore.gd的getTexture方法默认值处理
- 更新相关场景和脚本中的资源引用路径
- 添加FeedFilter调试工具组件
- 优化ComponentManager初始化逻辑
This commit is contained in:
2025-09-21 13:56:50 +08:00
parent d54c050be9
commit 4e3425eda9
16 changed files with 124 additions and 31 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://ltqx7fyovhla"]
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/Common/LaserSummoner.tscn" id="1_ukbip"]
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/LaserSummoner.tscn" id="1_ukbip"]
[node name="BigLaser" instance=ExtResource("1_ukbip")]
needEnergy = 100.0
+1 -1
View File
@@ -1,6 +1,6 @@
[gd_scene load_steps=17 format=3 uid="uid://bvri0nv1jrigf"]
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/Common/LaserSummoner.tscn" id="1_eb54j"]
[ext_resource type="PackedScene" uid="uid://8gjjfju6p3fh" path="res://components/Bullets/LaserSummoner.tscn" id="1_eb54j"]
[ext_resource type="Script" path="res://scripts/Contents/Bullets/ChickLaser.gd" id="2_7g0f0"]
[ext_resource type="Shader" path="res://shaders/BigLaser.gdshader" id="3_4y0mm"]
[ext_resource type="Texture2D" uid="uid://cv8yl3ncek4ap" path="res://resources/bullets/laser-circle/blue-circle.svg" id="4_cws6l"]
+11
View File
@@ -0,0 +1,11 @@
[gd_scene load_steps=2 format=3 uid="uid://feedfiltercombined"]
[ext_resource type="Script" path="res://scripts/Debug/FeedFilter.gd" id="1_feedfilter"]
[node name="FeedFilter" type="HBoxContainer"]
theme_override_constants/separation = 0
script = ExtResource("1_feedfilter")
targetFields = Array[int]([])
targetTopics = Array[int]([])
composeMode = 0
clickToRefresh = false
+1 -1
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=9 format=3 uid="uid://bkwy3rwkihf4m"]
[ext_resource type="PackedScene" uid="uid://bcvuuy2m0pke0" path="res://components/Abstracts/EffectBase.tscn" id="1_gbycc"]
[ext_resource type="Texture2D" uid="uid://chqmaeivt84b5" path="res://components/UI/attackstar.svg" id="2_2ws80"]
[ext_resource type="Texture2D" uid="uid://chqmaeivt84b5" path="res://resources/common/attackstar.svg" id="2_2ws80"]
[ext_resource type="AudioStream" uid="uid://cn876dtp1ypqx" path="res://resources/sounds/effect/Collect.wav" id="2_nxkfo"]
[sub_resource type="Curve" id="Curve_2biku"]
+1 -1
View File
@@ -8,7 +8,7 @@
[ext_resource type="StyleBox" uid="uid://8pg3ry3y5wjv" path="res://styleboxes/centerRight.tres" id="5_3hym1"]
[ext_resource type="PackedScene" uid="uid://beo6s1kudbbve" path="res://components/Scenes/FullscreenPanels/GameOver.tscn" id="6_10ay6"]
[ext_resource type="Texture2D" uid="uid://k13cte17httt" path="res://resources/items/energy.svg" id="7_2om12"]
[ext_resource type="PackedScene" uid="uid://b07gqo6df0r5y" path="res://components/UI/Variants/VerticalColorBar.tscn" id="8_f4j2b"]
[ext_resource type="PackedScene" uid="uid://b07gqo6df0r5y" path="res://components/VerticalColorBar.tscn" id="8_f4j2b"]
[ext_resource type="StyleBox" uid="uid://ddnjus87wwlm8" path="res://styleboxes/leftPanel.tres" id="11_67ghp"]
[ext_resource type="PackedScene" uid="uid://cksonrrx38k36" path="res://components/Scenes/FullscreenPanels/Pause.tscn" id="12_jkm6o"]
[ext_resource type="PackedScene" uid="uid://dekcqdhrjs07u" path="res://components/Scenes/FullscreenPanels/Weapon.tscn" id="13_bmc24"]
+9 -1
View File
@@ -1,10 +1,12 @@
[gd_scene load_steps=10 format=3 uid="uid://dmxi1ikn6avig"]
[gd_scene load_steps=12 format=3 uid="uid://dmxi1ikn6avig"]
[ext_resource type="Script" path="res://scripts/Tools/Managers/WorldManager.gd" id="1_lxsxj"]
[ext_resource type="PackedScene" uid="uid://dfwg750a47ggx" path="res://components/Scenes/UI.tscn" id="2_04cdd"]
[ext_resource type="Script" path="res://scripts/Tools/Managers/ComponentManager.gd" id="2_fseiu"]
[ext_resource type="PackedScene" uid="uid://bm7ymrri6pykb" path="res://components/Characters/Rooster.tscn" id="3_5ui6q"]
[ext_resource type="Texture2D" uid="uid://c33c8mtm4x3e3" path="res://resources/maps/Galaxy.png" id="4_oy4jj"]
[ext_resource type="Script" path="res://scripts/Tools/Managers/CameraManager.gd" id="5_mk7bv"]
[ext_resource type="Script" path="res://scripts/Tools/ItemStore.gd" id="7_b3hon"]
[sub_resource type="Animation" id="Animation_ykpvi"]
length = 0.001
@@ -72,6 +74,9 @@ y_sort_enabled = true
script = ExtResource("1_lxsxj")
metadata/_edit_vertical_guides_ = [-1.0, 57.0]
[node name="Node" type="Node" parent="."]
script = ExtResource("2_fseiu")
[node name="UI" parent="." instance=ExtResource("2_04cdd")]
[node name="camera" type="Camera2D" parent="."]
@@ -103,3 +108,6 @@ shape = SubResource("CircleShape2D_4hkht")
polygon = PackedVector2Array(-2419, 1803, 2429, 1825, 2392, -366, 2867, -318, 2723, 2241, -2879, 2193, -2797, -2582, 2959, -2528, 2858, -347, 2420, -337, 2441, -1834, -2438, -1792)
[node name="rooster" parent="." groups=["players"] instance=ExtResource("3_5ui6q")]
[node name="Node2" type="Node" parent="."]
script = ExtResource("7_b3hon")
+1 -1
View File
@@ -3,7 +3,7 @@
[ext_resource type="Shader" path="res://shaders/CooldownProgress.gdshader" id="1_jaivk"]
[ext_resource type="Script" path="res://scripts/Statemachine/SkillIcon.gd" id="1_l7say"]
[ext_resource type="Texture2D" uid="uid://cp4ypuarjoshp" path="res://resources/skillIcons/purple-crystal.png" id="2_hh1bl"]
[ext_resource type="Texture2D" uid="uid://chqmaeivt84b5" path="res://components/UI/attackstar.svg" id="4_50rim"]
[ext_resource type="Texture2D" uid="uid://chqmaeivt84b5" path="res://resources/common/attackstar.svg" id="4_50rim"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3fyf3"]
shader = ExtResource("1_jaivk")
-1
View File
@@ -1 +0,0 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="81.9" height="81.9" viewBox="0,0,81.9,81.9"><g transform="translate(-199.05,-139.05)"><g stroke="none" stroke-width="0" stroke-linecap="round" stroke-miterlimit="10"><g><g fill="#ffba47"><path d="M250.00785,180.01989h-20.03499l10.05558,-40.96989l9.9987,40.73811"/><path d="M250.02714,180.21189l-9.9987,40.73811l-10.05558,-40.96989h20.03499"/><path d="M239.98011,190.00785v-20.03499l40.96989,10.05558l-40.73811,9.9987"/><path d="M239.78811,190.02714l-40.73811,-9.9987l40.96989,-10.05558v20.03499"/></g><g fill="#fff06c"><path d="M247.09152,180.01409h-14.19672l7.12535,-29.03112l7.08504,28.86688"/><path d="M247.10519,180.15015l-7.08504,28.86688l-7.12535,-29.03112h14.19672"/><path d="M239.98591,187.09152v-14.19672l29.03112,7.12535l-28.86688,7.08504"/><path d="M239.84985,187.10519l-28.86688,-7.08504l29.03112,-7.12535v14.19672"/></g><g fill="#ffffff"><path d="M241.36303,180.00271h-2.7287l1.36954,-5.57996l1.36179,5.54839"/><path d="M241.36566,180.02886l-1.36179,5.54839l-1.36954,-5.57996h2.7287"/><path d="M239.99729,181.36303v-2.7287l5.57996,1.36954l-5.54839,1.36179"/><path d="M239.97114,181.36566l-5.54839,-1.36179l5.57996,-1.36954v2.7287"/></g></g></g></g></svg><!--rotationCenter:40.950000000000074:40.94999999999999-->

Before

Width:  |  Height:  |  Size: 1.3 KiB

-37
View File
@@ -1,37 +0,0 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://chqmaeivt84b5"
path="res://.godot/imported/attackstar.svg-b1221cbc7b9ccfacea37ada0859e9b08.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://components/UI/attackstar.svg"
dest_files=["res://.godot/imported/attackstar.svg-b1221cbc7b9ccfacea37ada0859e9b08.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false