(client) fix:修复匿名定义中的图片无法加载的问题

This commit is contained in:
m0_75251201
2025-07-19 13:33:49 +08:00
parent 526e8850e4
commit 0c8eebdd4b
31 changed files with 2684 additions and 568 deletions

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Define>
<AttributesDef>
<defName>TestGun</defName>
<attack>10</attack>
<defense>3</defense>
<attackSpeed>3</attackSpeed>
<attackRange>10</attackRange>
<attackTargetCount>1</attackTargetCount>
</AttributesDef>
<WeaponDef>
<defName>TestGun</defName>
<label>测试枪</label>
<description>一把测试用的枪</description>
<attributes>TestGun</attributes>
<texture>TestGun</texture>
<itemTexture>TestGunItem</itemTexture>
<bullet>yellowBullet</bullet>
</WeaponDef>
<BulletDef>
<defName>yellowBullet</defName>
<moveSpeed>10</moveSpeed>
<texture>
<path>Resources\Item\YellowBullet.png</path>
</texture>
</BulletDef>
<ImageDef>
<defName>TestGunItem</defName>
<path>Resources\Item\TestGun.png</path>
</ImageDef>
<ImageDef>
<defName>TestGun</defName>
<path>Resources\Item\TestGunUse.png</path>
</ImageDef>
<AttributesDef>
<defName>Claw</defName>
<attack>3</attack>
<defense>1</defense>
<attackSpeed>1</attackSpeed>
<attackRange>1</attackRange>
<attackTargetCount>1</attackTargetCount>
</AttributesDef>
<WeaponDef>
<defName>Claw</defName>
<label>爪子</label>
<description>爪子</description>
<attributes>Claw</attributes>
</WeaponDef>
</Define>