From be9759f00232757d48d0f6ca7f1899127b847e2a Mon Sep 17 00:00:00 2001 From: LingASDJ <2735951230@qq.com> Date: Wed, 1 Mar 2023 22:41:25 +0800 Subject: [PATCH] Complete 3 Custom Hp bar --- assets/demonjiimg/core/ldp-bar.png | Bin 0 -> 1324 bytes assets/magicdragonimg/dragon/dragon-hpbar.png | Bin 0 -> 826 bytes .../oldsungodimg/lalaiye/hp-none-number.png | Bin 0 -> 231 bytes assets/oldsungodimg/lalaiye/xxxbar.png | Bin 94 -> 0 bytes assets/public/hpbar.png | Bin 0 -> 87 bytes code/demonji/蝴蝶母舰/蝴蝶母舰.ini | 93 +++++++++++++++++- code/magicdragon/尼德霍格/尼德霍格T1.ini | 91 ++++++++++++++++- .../magicdragon/模块化中心/核心2-空白插槽.ini | 3 - .../oldsungod/拉莱耶/T2.5/拉莱耶-风暴母舰.ini | 36 +++++-- code/oldsungod/拉莱耶/拉莱耶试用型.ini | 72 +++++++++++++- mod-info.txt | 2 +- 11 files changed, 278 insertions(+), 19 deletions(-) create mode 100644 assets/demonjiimg/core/ldp-bar.png create mode 100644 assets/magicdragonimg/dragon/dragon-hpbar.png create mode 100644 assets/oldsungodimg/lalaiye/hp-none-number.png delete mode 100644 assets/oldsungodimg/lalaiye/xxxbar.png create mode 100644 assets/public/hpbar.png diff --git a/assets/demonjiimg/core/ldp-bar.png b/assets/demonjiimg/core/ldp-bar.png new file mode 100644 index 0000000000000000000000000000000000000000..9d97288d91ad32229c187f88256009e7c1a3b5bb GIT binary patch literal 1324 zcmV+{1=IS8P)Lj_bdjmFlgiput%wi9$wW~$5jVcSlt2m`($Y8I|m$K@^ zWUUm`hzz7uC{uixQxH+4HO^@53Sv}PQPQMK?x;?`J*2tKO=FYWT34rkIOLpjzw^K6 z{O@6Yoznk8NEJ7i%CUGg;cau zr0y|1RwjkjY8@AOP=rB|k_-2Av2&~=b4}BR;T0MYkp*dOi+v#g%ND%{Kz}GmQ&SV| z?d^Cx9srz9r*7}_`KZ`k$#6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`|yK)4x1?dP%3G)<~EvzhzOK}3DvE-R_)I-cioe0=<@M26^|dRKaSOd141 z%+BR76N%8H2lNpkgq)d~k?U(~gTw#7^zF4C{Abw8A5E3#b|^n81ONa407*qoM6N<$ Ef^+wc`Tzg` literal 0 HcmV?d00001 diff --git a/assets/oldsungodimg/lalaiye/hp-none-number.png b/assets/oldsungodimg/lalaiye/hp-none-number.png new file mode 100644 index 0000000000000000000000000000000000000000..d9513ed9f2f807492bd78526920bbde9753f7b28 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^HbBh5!3HFkiqAO-q!^2X+?^QKos)S9UoBxkK-ptmlnrm=> cP5)DShtJ}(3NktBfsSMFboFyt=akR{0I8x`ssI20 literal 0 HcmV?d00001 diff --git a/assets/oldsungodimg/lalaiye/xxxbar.png b/assets/oldsungodimg/lalaiye/xxxbar.png deleted file mode 100644 index af0d34553989c64d71cceb9a1c7fe0c131a68151..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94 zcmeAS@N?(olHy`uVBq!ia0vp^j6lrJ!3HEx`lwF 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 \ No newline at end of file diff --git a/code/magicdragon/尼德霍格/尼德霍格T1.ini b/code/magicdragon/尼德霍格/尼德霍格T1.ini index aa12785..789a543 100644 --- a/code/magicdragon/尼德霍格/尼德霍格T1.ini +++ b/code/magicdragon/尼德霍格/尼德霍格T1.ini @@ -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 @@ -152,4 +155,88 @@ convertTo:遗落之龙 isLocked:true [ai] -useAsBuilder: true \ No newline at end of file +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 \ No newline at end of file diff --git a/code/magicdragon/模块化中心/核心2-空白插槽.ini b/code/magicdragon/模块化中心/核心2-空白插槽.ini index 47fb9a9..07202a4 100644 --- a/code/magicdragon/模块化中心/核心2-空白插槽.ini +++ b/code/magicdragon/模块化中心/核心2-空白插槽.ini @@ -1,6 +1,3 @@ - - - [core] name: EmptyS class: CustomUnitMetadata diff --git a/code/oldsungod/拉莱耶/T2.5/拉莱耶-风暴母舰.ini b/code/oldsungod/拉莱耶/T2.5/拉莱耶-风暴母舰.ini index f022857..886b2ca 100644 --- a/code/oldsungod/拉莱耶/T2.5/拉莱耶-风暴母舰.ini +++ b/code/oldsungod/拉莱耶/T2.5/拉莱耶-风暴母舰.ini @@ -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 \ No newline at end of file diff --git a/code/oldsungod/拉莱耶/拉莱耶试用型.ini b/code/oldsungod/拉莱耶/拉莱耶试用型.ini index b29bc3e..2ed6ae8 100644 --- a/code/oldsungod/拉莱耶/拉莱耶试用型.ini +++ b/code/oldsungod/拉莱耶/拉莱耶试用型.ini @@ -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 diff --git a/mod-info.txt b/mod-info.txt index cbdc9c6..d777ebb 100644 --- a/mod-info.txt +++ b/mod-info.txt @@ -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 \ No newline at end of file