HealthBarConfig

Methods
5
Fields
None

Methods

MethodReturnsDescription
getHealthBarFrontSpriteId()numberThe front (filled) sprite's id, -1 for none.
setPadding(number)()Set the type's padding (its width padding), as an interface style does in onPostHealthBarConfig when it swaps the type's sprites. Written…
getHealthBarBackSpriteId()numberThe back (empty) sprite's id, -1 for none.
getWidth()numberThe bar's width, the health scale of actors it is shown for (Bento).
getId()numberThe type's id (Bento).

Returned by

MethodReturnsDescription
PostHealthBarConfig.getHealthBarConfigHealthBarConfig?The health-bar type, as it reads now (nil from a legacy delivery, which carries only its id).

Method details

setPadding

setPadding: (HealthBarConfig, number) -> ()

Set the type's padding (its width padding), as an interface style does in onPostHealthBarConfig when it swaps the type's sprites. Written while the type is live: during that event, or while the game's type cache holds it (a value kept after its type left the cache writes nothing).