getHealthBarFrontSpriteId
getHealthBarFrontSpriteId: (HealthBarConfig) -> numberThe front (filled) sprite's id, -1 for none.
| Method | Returns | Description |
|---|---|---|
getHealthBarFrontSpriteId() | number | The 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() | number | The back (empty) sprite's id, -1 for none. |
getWidth() | number | The bar's width, the health scale of actors it is shown for (Bento). |
getId() | number | The type's id (Bento). |
| Method | Returns | Description |
|---|---|---|
PostHealthBarConfig.getHealthBarConfig | HealthBarConfig? | The health-bar type, as it reads now (nil from a legacy delivery, which carries only its id). |
getHealthBarFrontSpriteIdgetHealthBarFrontSpriteId: (HealthBarConfig) -> numberThe front (filled) sprite's id, -1 for none.
setPaddingsetPadding: (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).
getHealthBarBackSpriteIdgetHealthBarBackSpriteId: (HealthBarConfig) -> numberThe back (empty) sprite's id, -1 for none.
getWidthgetWidth: (HealthBarConfig) -> numberThe bar's width, the health scale of actors it is shown for (Bento).
getIdgetId: (HealthBarConfig) -> numberThe type's id (Bento).