Skip to content

[New Feature]Custom Health Bar #376

@Markgrafin

Description

@Markgrafin

Description:

There are great restrictions on HealthBar.
I hope someone is interested in this and can develop this logic to solve some problems

Statement description:

CustomHealthBar=XXXX.SHP
CustomHealthBar.ConditionGreen=0,11 ;list of integers Frames 0-11 will be displayed as healthy
CustomHealthBar.ConditionYellow=12,16 ;list of integers
CustomHealthBar.ConditionRed=16,21 ;list of integers
frames of XXXX.shp for Green, Yellow, Red

CustomHealthBar.Percentage= ; boolean

This is a unique statement, which is generally not recommended
This statement can realize percentage Health Bar and Health volume digital display
For example:100% 1200/1200 84% 837/1200
SHP needs to describe itself

CustomHealthBar.Palette=xxxx.pal

Possible Implementation:

CustomHealthBar=XXXX.SHP
CustomHealthBar.ConditionGreen=0,11         ;list of integers Frames 0-11 will be displayed as healthy
CustomHealthBar.ConditionYellow=12,16        ;list of integers
CustomHealthBar.ConditionRed=16,21           ;list of integers
CustomHealthBar.Percentage=     ; boolean
CustomHealthBar.Palette=xxxx.pal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions