Crate bevy_stat_bars

Source

Structs§

Statbar
Insert this component to add a statbar to an entity. Multiple statbars can be inserted on a single entity by using different marker components.
StatbarBorder
Adds a border around the corresponding Statbar
StatbarColorLerp
Linearly interpolate the value of the bar color between min and max using the value of the Statbar
StatbarColorSwitch
Change the statbar color depending on the value of the statbar’s subject
StatbarDepth
Insert as a resource to set z depth of Statbars
StatbarObserveEntity
Insert this component to observe components from another entity. Does not have a generic parameter for a marker component.
StatbarObserveParent
Insert this component to observe components from the entities parent. Overrides any local obversable components and StatbarObservedEntity.
StatbarObserveResource

Enums§

StatbarSystem

Traits§

RegisterStatbarSubject
StatbarObservable
Implement StatbarObservable for a component you want to visualise with a stat bar. Should return a value between 0.0 (= empty) and 1.0 (= full). If the value is larger or smaller it is clamped before rendering.