Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

HugeBar

Open ststl-s opened this issue 3 years ago • 4 comments

现在可以设置在屏幕上持续存在一个巨型生命值来显示一个单位的耐久。

注意:根据显示数值类型在不同的项下进行设置,相应的块为[HugeBar_Type]。目前只有Health和Shield。如[HugeBar_Health]。

[HugeBar_Type]>HugeBar.RectWidthPercentage= (double - percentage)

巨型血条宽度占屏幕宽度的百分比。默认82%。

[HugeBar_Type]>HugeBar.RectWH= (X,Y)

设置巨型血条的宽度和高度,第一个值为宽度,第二个值为高度。宽度设置为负值时宽度使用上一条设置的值。默认-1,30。

[HugeBar_Type]>HugeBar.Pips.Color1= (R,G,B)

巨型血条的血条格子在血量百分比高于[AudioVisual]>ConditionYellow时显示的主颜色。

[HugeBar_Type]>HugeBar.Pips.Color1.ConditionYellow= (R,G,B)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时显示的主颜色。

[HugeBar_Type]>HugeBar.Pips.Color1.ConditionRed= (R,G,B)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionRed时显示的主颜色。

[HugeBar_Type]>HugeBar.Pips.Color2= (R, G, B)

巨型血条的血条格子在血量百分比高于[AudioVisual]>ConditionYellow时显示的次要颜色。

[HugeBar_Type]>HugeBar.Pips.Color2.ConditionYellow= (R, G, B)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时显示的次要颜色。

[HugeBar_Type]>HugeBar.Pips.Color2.ConditionRed= (R, G, B)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionRed时显示的次要颜色。

[HugeBar_Type]>HugeBar.Shape= (filename, includingthe .shp extension)

巨型血条的血条框使用哪个shp文件。必须对应shp存在且设置了帧才会启用。

[HugeBar_Type]>HugeBar.Palette= (filename, includingthe .pal extension)

巨型血条的血条框shp文件使用哪个色盘。默认palette.pal。

[HugeBar_Type]>HugeBar.Frame= (integer)

巨型血条的血条框在血量百分比高于[AudioVisual]>ConditionYellow时使用血条框的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Frame.ConditionYellow= (integer)

巨型血条的血条框在血量百分比低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时使用血条框的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Frame.ConditionRed= (integer)

巨型血条的血条框在血量百分比低于[AudioVisual]>ConditionRed时使用血条框的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Pips.Shape= (filename, includingthe .shp extension)

巨型血条的血条格子使用哪个shp文件。必须对应shp存在且设置了帧才会启用。

[HugeBar_Type]>HugeBar.Pips.Palette= (filename, includingthe .pal extension)

巨型血条的血条格子shp文件使用哪个色盘。默认palette.pal。

[HugeBar_Type]>HugeBar.Pips.Frame= (integer)

巨型血条的血条格子在血量百分比高于[AudioVisual]>ConditionYellow时使用血条格子的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Pips.Frame.ConditionYellow= (integer)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时使用血条格子的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Pips.Frame.ConditionRed= (integer)

巨型血条的血条格子在血量百分比低于[AudioVisual]>ConditionRed时使用血条格子的shp文件的哪一帧。

[HugeBar_Type]>HugeBar.Offset= (X,Y)

巨型血条的血条框框开始绘制的位置偏移量。负数左/上,正数右/下。

[HugeBar_Type]>HugeBar.Pips.Offset= (X,Y)

巨型血条的血条格子相对于血条框的开始绘制位置的偏移量。负数左/上,正数右/下。

[HugeBar_Type]>Value.Text.Color= (R,G,B)

巨型血条的数值显示在血量百分比高于[AudioVisual]>ConditionYellow时的文本颜色。

[HugeBar_Type]>Value.Text.Color.ConditionYellow= (R,G,B)

巨型血条的数值显示在血量百分比低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时显示的文本颜色。

[HugeBar_Type]>Value.Text.Color.ConditionRed= (R,G,B)

巨型血条的数值显示在血量百分比低于[AudioVisual]>ConditionRed时显示的文本颜色。

[HugeBar_Type]>Value.Shape= (filename, includingthe .shp extension)

巨型血条的数值显示使用哪个shp文件。

[HugeBar_Type]>Value.Palette= (filename, includingthe .pal extension)

巨型血条的数值显示shp文件使用哪个色盘。

[HugeBar_Type]>Value.Num.BaseFrame= (integer)

巨型血条的数字使用数值显示shp文件的哪一帧作为起始帧,在血量百分比高于[AudioVisual]>ConditionYellow时使用起始后第0-9帧,低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时使用第10-19帧,低于[AudioVisual]>ConditionRed时使用第20-29帧。默认0。

[HugeBar_Type]>Value.Sign.BaseFrame= (integer)

巨型血条的符号使用数值显示shp文件的哪一帧作为起始帧,在血量百分比高于[AudioVisual]>ConditionYellow时使用起始后第0-1帧,低于[AudioVisual]>ConditionYellow但高于[AudioVisual]>ConditionRed时使用第2-3帧,低于[AudioVisual]>ConditionRed时使用第4-5帧。两帧中的符号分别用于普通显示和百分比显示。默认30。

[HugeBar_Type]>Value.Shape.Interval= (integer)

巨型血条的数值显示每两个字符绘制位置的横向距离,默认8。

[HugeBar_Type]>DisplayValue= (boolean)

巨型血条是否显示数值。默认yes。

[HugeBar_Type]>Value.Offset= (X,Y)

巨型血条数值显示的位置偏移量,加算血条框偏移量。负数左/上,正数右/下。

[HugeBar_Type]>Value.Percentage= (boolean)

巨型血条的数值是否以百分比显示。默认no。

[HugeBar_Type]>Anchor.Horizontal= (enum left|center/centre|right)

巨型血条显示位置在作战画面上的水平位置。默认center。

[HugeBar_Type]>Anchor.Vertical= (enum top|center/centre|bottom)

巨型血条显示位置在作战画面上的垂直位置。默认top。

[TechnoType]>HugeBar= (boolean)

单位是否启用巨型血条。默认no。

[TechnoType]>HugeBar.Priority= (integer)

单位巨型血条的优先级,高优先级会优先显示。默认-1。

ststl-s avatar Jul 25 '22 16:07 ststl-s

wait for #658 and #589

ststl-s avatar Jul 25 '22 16:07 ststl-s

Nightly build for this pull request:

github-actions[bot] avatar Jul 25 '22 16:07 github-actions[bot]

@ststl-s я тоже могу общаться на своём родном языке 😛

Metadorius avatar Jul 25 '22 16:07 Metadorius

я тоже могу общаться на своём родном языке

Oh I'm awfully sorry... docs in english is complex.. so wait for #658 and #589, because some modules are part of those PR.. then I will write docs in english...

ststl-s avatar Jul 25 '22 17:07 ststl-s

I have some problems.I have set the "HugeBar.Frame" and others. The "HugeBar.Shape=" doesn't work in game.

DISBAIC avatar Dec 14 '22 02:12 DISBAIC

I have some problems.I have set the "HugeBar.Frame" and others. The "HugeBar.Shape=" doesn't work in game.

This can't even save/load now, wait for #589.

ststl-s avatar Dec 14 '22 10:12 ststl-s

Thank you for your reply.So,will the “hugebar” be included in #589?

DISBAIC avatar Dec 14 '22 11:12 DISBAIC