StatBarSimple.MaterialValue
A protected class in Root.Township, Alta.StatSystem. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One float on a stat bar's material that can be set straight away or eased towards a target. Easing runs on the bar's Lerping event.
Constructors
Fields
7 private and internal fields
| Member | What it is |
|---|
private StatBarSimple bar | The stat bar whose material and Lerping event are used. |
private float currentValue | Backing field for CurrentValue. |
private bool isLerping | True while hooked to the bar's Lerping event. |
private float lerpSpeed | How fast the value moves towards the target, per second. |
private float lerpTarget | The value being eased towards. |
private Material material | The bar's material that holds the property. |
private int propertyID | Shader property id of the float. |
Properties
| Member | What it is |
|---|
float Value { get; set; } | Get or set the value directly. Setting it stops at the new value with no easing. |
1 private and internal property
| Member | What it is |
|---|
private float CurrentValue { get; set; } | The value currently on the material. Setting it writes the shader property. |
Methods
| Member | What it is |
|---|
void Lerp(float target) | Starts easing towards a target at lerpSpeed per second, hooking the bar's Lerping event until it arrives. Sets it straight away if already there. |
1 private and internal method
| Member | What it is |
|---|
private void Lerp(ref bool isLerping) | Starts easing towards a target at lerpSpeed per second, hooking the bar's Lerping event until it arrives. Sets it straight away if already there. |
Used in
Members of other types that take, return or hold a MaterialValue: