Complete 3 Custom Hp bar
This commit is contained in:
parent
8fd91028f6
commit
be9759f002
BIN
assets/demonjiimg/core/ldp-bar.png
Normal file
BIN
assets/demonjiimg/core/ldp-bar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/magicdragonimg/dragon/dragon-hpbar.png
Normal file
BIN
assets/magicdragonimg/dragon/dragon-hpbar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 826 B |
BIN
assets/oldsungodimg/lalaiye/hp-none-number.png
Normal file
BIN
assets/oldsungodimg/lalaiye/hp-none-number.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 231 B |
Binary file not shown.
Before Width: | Height: | Size: 94 B |
BIN
assets/public/hpbar.png
Normal file
BIN
assets/public/hpbar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 B |
|
@ -2,9 +2,13 @@
|
|||
name: 蝴蝶母舰
|
||||
class: CustomUnitMetadata
|
||||
price: 0
|
||||
maxHp: 2000
|
||||
maxHp: 2400
|
||||
mass: 90000
|
||||
|
||||
@memory #:number[]
|
||||
updateUnitMemory: #[0]= self.hp%10, #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000)
|
||||
updateUnitMemoryRate:0
|
||||
|
||||
displayText: Fairy Ji Butterfly MotherShip
|
||||
displayText_zh: 妖姬祭蝶母舰
|
||||
|
||||
|
@ -65,7 +69,7 @@ scaleImagesTo:120
|
|||
#scaleTurretImagesTo: 25
|
||||
#showEnergyBar:false
|
||||
#imageScale: 1.5
|
||||
|
||||
showHealthBar:false
|
||||
image_shadow: AUTO
|
||||
shadowOffsetX:1
|
||||
shadowOffsetY:1
|
||||
|
@ -430,3 +434,88 @@ atmospheric: true
|
|||
useAsBuilder: true
|
||||
#upgradedFrom: LastSpanish
|
||||
|
||||
#----血条------
|
||||
|
||||
[decal_血条]
|
||||
layer:afterBody
|
||||
image:ROOT:/assets/public/hpbar.png
|
||||
imageScaleX:(self.hp/self.maxHp)*82
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
yOffsetAbsolute:70
|
||||
pivotOffset:0
|
||||
#Thanks 杰厕灵 in Code
|
||||
xOffsetAbsolute: ((1-(self.hp / self.maxHp)) * (-${core.radius}/1.31))
|
||||
#isVisible:if self.hp > self.maxHp*0.6
|
||||
color:#00ffff
|
||||
|
||||
[decal_血条底板]
|
||||
image:ROOT:/assets/demonjiimg/core/ldp-bar.png
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
imageScaleX:1.3
|
||||
yOffsetAbsolute:70
|
||||
xOffsetAbsolute:2
|
||||
pivotOffset:0
|
||||
order:-1
|
||||
layer:onTop
|
||||
|
||||
|
||||
#如果使用INT 个位需要进行血量满的判定
|
||||
#如果使用INT 个位需要进行血量满的判定
|
||||
[decal_xis_个位]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:70
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-none-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
isVisible:if not self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
#判定单位血量满的情况
|
||||
[decal_xis_个位满]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:70
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
isVisible:if self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
[decal_xis_十位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:1
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:0
|
||||
|
||||
[decal_xis_百位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:2
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:-5
|
||||
|
||||
[decal_xis_千位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:3
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0
|
||||
|
||||
xOffsetAbsolute:-10
|
|
@ -13,7 +13,9 @@ buildSpeed:40s
|
|||
|
||||
[core]
|
||||
radius:20
|
||||
|
||||
@memory #:number[]
|
||||
updateUnitMemory: #[0]= self.hp%10, #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000)
|
||||
updateUnitMemoryRate:0
|
||||
name:遗落之龙
|
||||
|
||||
displayText: Lose Dragon
|
||||
|
@ -61,6 +63,7 @@ shadowOffsetY:-7
|
|||
imageScale:1
|
||||
lock_body_rotation_with_main_turret:true
|
||||
dustEffect:true
|
||||
showHealthBar:false
|
||||
|
||||
[leg_1]
|
||||
x:-12
|
||||
|
@ -153,3 +156,87 @@ isLocked:true
|
|||
|
||||
[ai]
|
||||
useAsBuilder: true
|
||||
|
||||
#----血条------
|
||||
|
||||
[decal_血条]
|
||||
layer:afterBody
|
||||
image:ROOT:/assets/public/hpbar.png
|
||||
imageScaleX:(self.hp/self.maxHp)*84
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
color:#8c8c8c
|
||||
yOffsetAbsolute:39
|
||||
pivotOffset:0
|
||||
#Thanks 杰厕灵 in Code
|
||||
xOffsetAbsolute: ((1-(self.hp / self.maxHp)) * (-${core.radius}/0.5))
|
||||
#isVisible:if self.hp > self.maxHp*0.6
|
||||
|
||||
[decal_血条底板]
|
||||
image:ROOT:/assets/magicdragonimg/dragon/dragon-hpbar.png
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
imageScaleX:1.3
|
||||
yOffsetAbsolute:39
|
||||
xOffsetAbsolute:3
|
||||
pivotOffset:0
|
||||
order:-1
|
||||
layer:onTop
|
||||
teamColors:true
|
||||
|
||||
[decal_xis_个位]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:39
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-none-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
isVisible:if not self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
#判定单位血量满的情况
|
||||
[decal_xis_个位满]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:39
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
isVisible:if self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
[decal_xis_十位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:1
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:0
|
||||
|
||||
[decal_xis_百位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:2
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:-5
|
||||
|
||||
[decal_xis_千位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:3
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0
|
||||
|
||||
xOffsetAbsolute:-10
|
|
@ -1,6 +1,3 @@
|
|||
|
||||
|
||||
|
||||
[core]
|
||||
name: EmptyS
|
||||
class: CustomUnitMetadata
|
||||
|
|
|
@ -8,7 +8,7 @@ name: 拉莱耶风暴战舰
|
|||
class: CustomUnitMetadata
|
||||
|
||||
@memory #:number[]
|
||||
updateUnitMemory: #[0]= int(self.hp%10), #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000)
|
||||
updateUnitMemory: #[0]= self.hp%10, #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000)
|
||||
updateUnitMemoryRate:0
|
||||
|
||||
displayText_zh:拉莱耶风暴战舰
|
||||
|
@ -45,7 +45,7 @@ autoRepair: true
|
|||
nanoRepairSpeed: 1.2
|
||||
canReclaimResources: true
|
||||
|
||||
generation_credits: 10
|
||||
generation_credits: 20
|
||||
generation_delay: 40
|
||||
|
||||
nanoRange: 200
|
||||
|
@ -437,11 +437,11 @@ priority: low
|
|||
|
||||
[decal_血条]
|
||||
layer:afterBody
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/xxxbar.png
|
||||
image:ROOT:/assets/public/hpbar.png
|
||||
imageScaleX:(self.hp/self.maxHp)*77
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
teamColors:true
|
||||
color:#00ff00
|
||||
yOffsetAbsolute:119.5
|
||||
pivotOffset:0
|
||||
#Thanks 杰厕灵 in Code
|
||||
|
@ -461,17 +461,35 @@ order:-1
|
|||
layer:onTop
|
||||
teamColors:true
|
||||
|
||||
#如果使用INT 个位需要进行血量满的判定
|
||||
[decal_xis_个位]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:120
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-none-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
isVisible:if not self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
#判定单位血量满的情况
|
||||
[decal_xis_个位满]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:120
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
|
||||
isVisible:if self.hp(full=true)
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
|
@ -480,15 +498,15 @@ xOffsetAbsolute: 5
|
|||
[decal_xis_十位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:1
|
||||
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:0
|
||||
|
||||
[decal_xis_百位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:2
|
||||
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:-5
|
||||
|
@ -496,7 +514,7 @@ xOffsetAbsolute:-5
|
|||
[decal_xis_千位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:3
|
||||
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
isVisible:if memory.#[${A}] != 0
|
||||
|
||||
xOffsetAbsolute:-10
|
|
@ -3,12 +3,80 @@ autoTriggerOnEvent:destroyed
|
|||
showMessageToAllPlayers:The Lalaiye is seriously injured, and it is trying to shut down .....%{self.playerName}The LaLaiye is destroyed .....
|
||||
showMessageToAllPlayers_zh:拉莱耶试用型受到严重伤害,正在尝试关.....%{self.playerName}的拉莱耶试用型被摧毁.....
|
||||
|
||||
[decal_血条]
|
||||
layer:afterBody
|
||||
image:ROOT:/assets/public/hpbar.png
|
||||
imageScaleX:(self.hp/self.maxHp)*77
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
color:#00cc00
|
||||
yOffsetAbsolute:119.5
|
||||
pivotOffset:0
|
||||
#Thanks 杰厕灵 in Code
|
||||
xOffsetAbsolute: ((1-(self.hp / self.maxHp)) * (-${core.radius}/2.12))
|
||||
#isVisible:if self.hp > self.maxHp*0.6
|
||||
|
||||
|
||||
[decal_血条底板]
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-barmain.png
|
||||
alwaysStartDirAtZero:true
|
||||
dirOffset:0
|
||||
imageScaleX:1.3
|
||||
yOffsetAbsolute:120
|
||||
xOffsetAbsolute:10
|
||||
pivotOffset:0
|
||||
order:-1
|
||||
layer:onTop
|
||||
teamColors:true
|
||||
|
||||
[decal_xis_个位]
|
||||
@define A:0
|
||||
layer:onTop
|
||||
order:10.01
|
||||
yOffsetAbsolute:120
|
||||
image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png
|
||||
imageScale:0.7
|
||||
frame: memory.#[${A}]
|
||||
frame_width:6
|
||||
frame_height:8
|
||||
|
||||
alwayStartDirAtZero:true
|
||||
onlyWhileAlive:true
|
||||
onlyOnNonPreview:true
|
||||
xOffsetAbsolute: 5
|
||||
|
||||
[decal_xis_十位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:1
|
||||
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:0
|
||||
|
||||
[decal_xis_百位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:2
|
||||
|
||||
isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0
|
||||
|
||||
xOffsetAbsolute:-5
|
||||
|
||||
[decal_xis_千位]
|
||||
@copyFromSection: decal_xis_个位
|
||||
@define A:3
|
||||
|
||||
isVisible:if memory.#[${A}] != 0
|
||||
|
||||
xOffsetAbsolute:-10
|
||||
|
||||
[core]
|
||||
name: 拉莱耶试用型
|
||||
class: CustomUnitMetadata
|
||||
displayText_zh:拉莱耶试用型
|
||||
displayDescription_zh:来自外星名为莱顿科技的信物可以制作一些和莱顿科技的产物。\n-不过若是想要更多来自莱顿势力的支持,势必需要继续和莱顿科技继续融洽。
|
||||
|
||||
@memory #:number[]
|
||||
updateUnitMemory: #[0]= int(self.hp%10), #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000)
|
||||
updateUnitMemoryRate:0
|
||||
displayText:Laleya Trial Type
|
||||
displayDescription:Letters from the alien named Leiden Technology can make some products with Leiden Technology.\n-However, if you want more support from Leiden forces, it is necessary to continue to continue with Leiden Technology.
|
||||
tags:拉莱耶
|
||||
|
@ -90,7 +158,7 @@ image_shadow: AUTO
|
|||
#splastEffect: true
|
||||
#dustEffect: true
|
||||
icon_zoomed_out:ROOT:/assets/oldsungodimg/lalaiye/icon.png
|
||||
|
||||
showHealthBar:false
|
||||
movementEffect:CUSTOM:尾焰,CUSTOM:trail,CUSTOM:trail2,CUSTOM:trail4,CUSTOM:trail5,CUSTOM:尾焰X
|
||||
movementEffectRate: 3
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[mod]
|
||||
title:StarRiver-V0.9.5.1-T2.5-Beta2
|
||||
description:时间错乱的根源,代价的根本只是一场演习战的时间。\n\n-总制作:JDSALing,Lilys\n\n-美工:DC,默鸽,冷群,小果果,北梦孤辰,迷迭香,Lea,葛城\n\n-语言支持:中文(源语言),English(美国英文)\n\n-音乐制作:Prohonor\n\n-本地组支持:Catand\n\n-联动声明:浸没技术,莱顿科技,统一教会\n\n-人物立绘:PbFish\n\n-测试人员:第四维,兰兹,口水猫,清明,牙疼,Catand,Fang,瓜皮,Mizuki,卡俄斯,葛城,EDAJ,此账号已注销,白虎鲸,苏叶\n\n-外部联动:SES BTM MP97\n\n-CopyRight-2023-RE-CORE\n\n-The root of the time confusion, the cost is simply a practice war time.\n-Chief Producer: JDSALing \n-Artists: Mo Ge, Leng Qun, Xiao Guoguo, Beimeng Guchen, Rosemary, Lea\n-Language Support: Chinese (source language), English (American English)-\nExternal linkage: SES BTM MP97\n\n-CopyRight-2023-RE-CORE
|
||||
description:时间错乱的根源,代价的根本只是一场演习战的时间。\n\n-总制作:JDSALing,Lilys\n\n-美工:DC,默鸽,冷群,小果果,北梦孤辰,迷迭香,Lea,葛城\n\n-语言支持:中文(源语言),English(美国英文)\n\n-音乐制作:Prohonor\n\n-本地组支持:Catand\n\n-联动声明:浸没技术,莱顿科技,统一教会\n\n-人物立绘:PbFish\n\n-测试人员:第四维,兰兹,口水猫,清明,牙疼,Catand,Fang,瓜皮,Mizuki,卡俄斯,葛城,EDAJ,此账号已注销,白虎鲸,苏叶,Plee\n\n-外部联动:SES BTM MP97\n\n-CopyRight-2023-RE-CORE\n\n-The root of the time confusion, the cost is simply a practice war time.\n-Chief Producer: JDSALing \n-Artists: Mo Ge, Leng Qun, Xiao Guoguo, Beimeng Guchen, Rosemary, Lea\n-Language Support: Chinese (source language), English (American English)-\nExternal linkage: SES BTM MP97\n\n-CopyRight-2023-RE-CORE
|
||||
thumbnail:icon.png
|
||||
minVersion:1.15p11
|
Loading…
Reference in New Issue
Block a user