找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 76|回复: 1

[SHP] 【素材分享】步兵英雄血条UI+地面标志[需要Phobos引擎支持]

[复制链接]
发表于 11 小时前 | 显示全部楼层 |阅读模式
本帖最后由 yh9169 于 2026-5-13 01:44 编辑

作者:雷德克里莫
禁止二改或者商用
同样是请大佬定制的素材,订单转公素,如果有不会用的可以留言后面发一下食用指南

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
 楼主| 发表于 1 小时前 | 显示全部楼层
食用指南
使用到PB的自定义血条显示、数字化显示和自定义选择框,详情自行移步说明书查阅。
1.注册自定义选择框,[SelectBoxTypes]下0=你注册的选择框名称,这个是选中绿圈和地面标志

[SelectBoxTypes]
0=SUINHERO

[SUINHERO]                                                         
Shape=SUHEROG.shp;为空会出现一个略带遮挡效果的框,我不喜欢所以这样处理这个框就不会出现                                    
Palette=palette.pal                                                
Frames=1,1,1                                                        
Offset=0,0                                                         
Translucency=0                                                      
VisibleToHouses=all                                                
VisibleToHouses.Observer=true                                       
DrawAboveTechno=false                                               
GroundShape=SUHEROG.shp;如果不喜欢地面这个标志想改成选中绿圈包里有,请自行更名替换                                             
GroundPalette=palette.pal                                          
GroundFrames=0,0,0                                                  
GroundOffset=0,0                                                   
Ground.AlwaysDraw=true                                             
GroundLine=false                                                   
GroundLineColor=0,255,0                                             
GroundLineColor.ConditionYellow=255,255,0                           
GroundLineColor.ConditionRed=255,0,0                                
GroundLine.Dashed=false            


2.分别注册数字化显示和血条UI,[DigitalDisplayTypes]下0=你注册的数字化显示名称,1=你注册的UI血条名称,这个是数字化显示生命值和生命值的UI

[DigitalDisplayTypes]
0=HERODIGITALDISPLAYTYPE
1=HEROHEALTHBAR



[HERODIGITALDISPLAYTYPE]                                            ; DigitalDisplayType
; Generic
InfoType=Health                                ; Displayed value enumeration (Health|Shield|Ammo|Mindcontrol|Spawns|Passengers|Tiberium|Experience|Occupants|GattlingStage|ROF|Reload|SpawnTimer|GattlingTimer|ProduceCash|PassengerKill|AutoDeath|SuperWeapon|IronCurtain|TemporalLife|FactoryProcess)
InfoIndex=0                                    ; integer
Offset=0,0;如果希望生命值显示在血条右侧38,6                                     ; integers - horizontal, vertical
Offset.ShieldDelta=                            ; integers - horizontal, vertical
Align=right                                    ; Text alignment enumeration (left|right|center/centre)
Anchor.Horizontal=right                        ; Horizontal position enumeration (left|center/centre|right)
Anchor.Vertical=top                            ; Vertical position enumeration (top|center/centre|bottom)
Anchor.Building=top                            ; Hexagon vertex enumeration (top|lefttop|leftbottom|bottom|rightbottom|righttop)
Percentage=false                               ; boolean
HideMaxValue=false                             ; boolean
VisibleToHouses=all                            ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
VisibleToHouses.Observer=true                  ; boolean
VisibleInSpecialState=true                     ; boolean
ValueScaleDivisor=                             ; integer
ValueAsTimer=false                             ; boolean
ShowType=cursorhover,selected;展示的时机如果希望和血条UI一直存在可以用all                  ; Displayed ShowType Enumeration (cursorhover|selected|idle|all)
; Text
Text.Color=0,255,0                             ; integers - Red, Green, Blue
Text.Color.ConditionYellow=255,255,0           ; integers - Red, Green, Blue
Text.Color.ConditionRed=255,0,0                ; integers - Red, Green, Blue
Text.Background=false                          ; boolean
; Shape
Shape=digits.shp;这里使用的是phobos资源库提供的,包里有一份可以替换的number.shp                               ; filename with .shp extension, if not present, game-drawn text will be used instead
Palette=palette.pal                            ; filename with .pal extension
Shape.Spacing=                                 ; integers - horizontal, vertical spacing between digits
Shape.PercentageFrame=false                    ; boolean


[HEROHEALTHBAR]                                ; DigitalDisplayType
; Generic
InfoType=Health                                ; Displayed value enumeration (Health|Shield|Ammo|Mindcontrol|Spawns|Passengers|Tiberium|Experience|Occupants|GattlingStage|ROF|Reload|SpawnTimer|GattlingTimer|ProduceCash|PassengerKill|AutoDeath|SuperWeapon|IronCurtain|TemporalLife|FactoryProcess)
InfoIndex=0                                    ; integer
Offset=17,75                                   ; integers - horizontal, vertical
Offset.ShieldDelta=                            ; integers - horizontal, vertical
Align=right                                    ; Text alignment enumeration (left|right|center/centre)
Anchor.Horizontal=right                        ; Horizontal position enumeration (left|center/centre|right)
Anchor.Vertical=top                            ; Vertical position enumeration (top|center/centre|bottom)
Anchor.Building=top                            ; Hexagon vertex enumeration (top|lefttop|leftbottom|bottom|rightbottom|righttop)
Percentage=false                               ; boolean
HideMaxValue=false                             ; boolean
VisibleToHouses=all                            ; Affected House Enumeration (none|owner/self|allies/ally|team|enemies/enemy|all)
VisibleToHouses.Observer=true                  ; boolean
VisibleInSpecialState=true                     ; boolean
ValueScaleDivisor=                             ; integer
ValueAsTimer=false                             ; boolean
ShowType=all                                   ; Displayed ShowType Enumeration (cursorhover|selected|idle|all)
; Text
Text.Color=0,255,0                             ; integers - Red, Green, Blue
Text.Color.ConditionYellow=255,255,0           ; integers - Red, Green, Blue
Text.Color.ConditionRed=255,0,0                ; integers - Red, Green, Blue
Text.Background=false                          ; boolean
; Shape
Shape=SUHERO.shp                               ; filename with .shp extension, if not present, game-drawn text will be used instead
Palette=palette.pal                            ; filename with .pal extension
Shape.Spacing=4,0                              ; integers - horizontal, vertical spacing between digits
Shape.PercentageFrame=true                     ; boolean



3.在应用血条UI的单位下启用效果
[BORIS]


;英雄血条数字显示及血条UI
DigitalDisplay.Disable=false                   ; boolean
DigitalDisplayTypes=HEROHEALTHBAR,HERODIGITALDISPLAYTYPE                           ; List of DigitalDisplayTypes
DigitalDisplay.Health.FakeAtDisguise=true      ; boolean
; ;血条显示持久化,即无论是否选中都展示血条
HealthBar.Hide=false                          ; boolean
HealthBar.HidePips=true                       ; boolean
HealthBar.Permanent=true                     ; boolean
HealthBar.Permanent.PipScale=false            ; boolean
;自定义选择框,即地面标志或选中绿圈
SelectBox=SUINHERO                           ; Select box
HideSelectBox=false                          ; boolean

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-5-13 13:21 , Processed in 0.080712 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表