StaminaBarVisibility.HandStaminaView
A private class in Root.Township, Alta.StatSystem. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Client: fades one hand's stamina bars and notches in while stamina is below maximum and out when it is full. StaminaBarVisibility keeps one for each hand.
- Listed in Stats, effects, heat and liquid
- Nested in
StaminaBarVisibility
Constructors
| Member | What it is |
|---|---|
HandStaminaView(StatBarBase[] staminaStatBars, Material notchesMaterial, float alphaLerpSpeed) | Creates a StaminaBarVisibility.HandStaminaView from staminaStatBars, notchesMaterial and alphaLerpSpeed. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private float alpha | Backing field for Alpha. |
private readonly float alphaLerpSpeed | How fast alpha changes per second. |
private Stat handStaminaStat | The stamina stat read from the bars, compared with its maximum to decide fading. |
private readonly int NotchAlpha | Shader property ID for _AlphaLimit on the notch material. |
private readonly Material notchesMaterial | Per-hand clone of the notch material. |
private readonly StatBarBase[] staminaStatBars | This hand's stamina bars. |
Properties
| Member | What it is |
|---|---|
float Alpha { get; set; } | Current opacity. Setting it updates the notch material and every stamina bar. |
Methods
2 private and internal methods
Used in
Members of other types that take, return or hold a HandStaminaView: