食用指南
使用到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
|