Highroad Engine v1.3
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Tools.MMProgressBar Class Reference

Add this bar to an object and link it to a bar (possibly the same object the script is on), and you'll be able to resize the bar object based on a current value, located between a min and max value. See the HealthBar.cs script for a use case More...

Inheritance diagram for MoreMountains.Tools.MMProgressBar:
MoreMountains.Tools.MMMonoBehaviour

Public Types

enum  MMProgressBarStates {
  Idle , Decreasing , Increasing , InDecreasingDelay ,
  InIncreasingDelay
}
 
enum  FillModes {
  LocalScale , FillAmount , Width , Height ,
  Anchor
}
 the possible fill modes More...
 
enum  BarDirections { LeftToRight , RightToLeft , UpToDown , DownToUp }
 the possible directions for the fill (for local scale and fill amount only) More...
 
enum  TimeScales { UnscaledTime , Time }
 the possible timescales the bar can work on More...
 
enum  BarFillModes { SpeedBased , FixedDuration }
 the possible ways to animate the bar fill More...
 

Public Member Functions

virtual void UpdateBar01 (float normalizedValue)
 Updates the bar's values, using a normalized value More...
 
virtual void UpdateBar (float currentValue, float minValue, float maxValue)
 Updates the bar's values based on the specified parameters More...
 
virtual void SetBar (float currentValue, float minValue, float maxValue)
 Sets the bar value to the one specified More...
 
virtual void SetBar01 (float newPercent)
 Sets the bar value to the normalized value set in parameter More...
 
virtual void Initialization ()
 
virtual void Plus10Percent ()
 Test method More...
 
virtual void Minus10Percent ()
 Test method More...
 
virtual void Bump ()
 Triggers a camera bump More...
 
virtual void ShowBar ()
 A simple method you can call to show the bar (set active true) More...
 
virtual void HideBar (float delay)
 Hides (SetActive false) the progress bar object, after an optional delay More...
 

Public Attributes

string PlayerID
 optional - the ID of the player associated to this bar More...
 
Transform ForegroundBar
 the main, foreground bar More...
 
Transform DelayedBarDecreasing
 the delayed bar that will show when moving from a value to a new, lower value More...
 
Transform DelayedBarIncreasing
 the delayed bar that will show when moving from a value to a new, higher value More...
 
float MinimumBarFillValue = 0f
 the local scale or fillamount value to reach when the value associated to the bar is at 0% More...
 
float MaximumBarFillValue = 1f
 the local scale or fillamount value to reach when the bar is full More...
 
bool SetInitialFillValueOnStart = false
 whether or not to initialize the value of the bar on start More...
 
float InitialFillValue = 0f
 the initial value of the bar More...
 
BarDirections BarDirection = BarDirections.LeftToRight
 the direction this bar moves to More...
 
FillModes FillMode = FillModes.LocalScale
 the foreground bar's fill mode More...
 
TimeScales TimeScale = TimeScales.UnscaledTime
 defines whether the bar will work on scaled or unscaled time (whether or not it'll keep moving if time is slowed down for example) More...
 
BarFillModes BarFillMode = BarFillModes.SpeedBased
 the selected fill animation mode More...
 
bool LerpForegroundBar = true
 whether or not the foreground bar should lerp More...
 
float LerpForegroundBarSpeedDecreasing = 15f
 the speed at which to lerp the foreground bar More...
 
float LerpForegroundBarSpeedIncreasing = 15f
 
float LerpForegroundBarDurationDecreasing = 0.2f
 
float LerpForegroundBarDurationIncreasing = 0.2f
 the duration each update of the foreground bar should take (only if in fixed duration bar fill mode) More...
 
AnimationCurve LerpForegroundBarCurveDecreasing = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)
 the curve to use when animating the foreground bar fill More...
 
AnimationCurve LerpForegroundBarCurveIncreasing = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)
 
float DecreasingDelay = 1f
 the delay before the delayed bar moves (in seconds) More...
 
bool LerpDecreasingDelayedBar = true
 whether or not the delayed bar's animation should lerp More...
 
float LerpDecreasingDelayedBarSpeed = 15f
 the speed at which to lerp the delayed bar More...
 
float LerpDecreasingDelayedBarDuration = 0.2f
 the duration each update of the foreground bar should take (only if in fixed duration bar fill mode) More...
 
AnimationCurve LerpDecreasingDelayedBarCurve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)
 the curve to use when animating the delayed bar fill More...
 
float IncreasingDelay = 1f
 the delay before the delayed bar moves (in seconds) More...
 
bool LerpIncreasingDelayedBar = true
 whether or not the delayed bar's animation should lerp More...
 
float LerpIncreasingDelayedBarSpeed = 15f
 the speed at which to lerp the delayed bar More...
 
float LerpIncreasingDelayedBarDuration = 0.2f
 the duration each update of the foreground bar should take (only if in fixed duration bar fill mode) More...
 
AnimationCurve LerpIncreasingDelayedBarCurve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)
 the curve to use when animating the delayed bar fill More...
 
bool BumpScaleOnChange = true
 whether or not the bar should "bump" when changing value More...
 
bool BumpOnIncrease = false
 whether or not the bar should bump when its value increases More...
 
bool BumpOnDecrease = false
 whether or not the bar should bump when its value decreases More...
 
float BumpDuration = 0.2f
 the duration of the bump animation More...
 
bool ChangeColorWhenBumping = true
 whether or not the bar should flash when bumping More...
 
Color BumpColor = Color.white
 the color to apply to the bar when bumping More...
 
AnimationCurve BumpScaleAnimationCurve = new AnimationCurve(new Keyframe(1, 1), new Keyframe(0.3f, 1.05f), new Keyframe(1, 1))
 the curve to map the bump animation on More...
 
AnimationCurve BumpColorAnimationCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0))
 the curve to map the bump animation color animation on More...
 
UnityEvent OnBump
 an event to trigger every time the bar bumps More...
 
UnityEvent OnBarMovementDecreasingStart
 
UnityEvent OnBarMovementDecreasingStop
 
UnityEvent OnBarMovementIncreasingStart
 
UnityEvent OnBarMovementIncreasingStop
 
Text PercentageText
 
string TextPrefix
 
string TextSuffix
 
float TextValueMultiplier = 1f
 
string TextFormat = "{000}"
 
float DebugNewTargetValue
 the value the bar will move to if you press the DebugSet button More...
 
bool DebugUpdateBarButton
 
bool DebugSetBarButton
 
bool TestBumpButton
 
bool Plus10PercentButton
 
bool Minus10PercentButton
 
float BarProgress
 the current progress of the bar, ideally read only More...
 
float BarTarget
 the current progress of the bar, ideally read only More...
 
float DelayedBarIncreasingProgress
 
float DelayedBarDecreasingProgress
 

Protected Member Functions

virtual void Start ()
 On start we store our image component More...
 
virtual void OnEnable ()
 
virtual void DebugUpdateBar ()
 This test method, called via the inspector button of the same name, lets you test what happens when you update the bar to a certain value More...
 
virtual void DebugSetBar ()
 Test method More...
 
virtual void UpdateText ()
 
virtual IEnumerator UpdateBarsCo ()
 On Update we update our bars More...
 
virtual void DetermineDeltaTime ()
 
virtual void DetermineDirection ()
 
virtual void UpdateBars ()
 Updates the foreground bar's scale More...
 
virtual float ComputeNewFill (bool lerpBar, float barSpeed, float barDuration, AnimationCurve barCurve, float delay, float lastPercent, out float t)
 
virtual void SetBarInternal (float newAmount, Transform bar, Image image, Vector2 initialSize)
 
virtual IEnumerator BumpCoroutine ()
 A coroutine that (usually quickly) changes the scale of the bar More...
 
virtual IEnumerator HideBarCo (float delay)
 An internal coroutine used to handle the disabling of the progress bar after a delay More...
 

Protected Attributes

bool _initialized
 
Vector2 _initialBarSize
 
Color _initialColor
 
Vector3 _initialScale
 
Image _foregroundImage
 
Image _delayedDecreasingImage
 
Image _delayedIncreasingImage
 
Vector3 _targetLocalScale = Vector3.one
 
float _newPercent
 
float _percentLastTimeBarWasUpdated
 
float _lastUpdateTimestamp
 
float _time
 
float _deltaTime
 
int _direction
 
Coroutine _coroutine
 
bool _coroutineShouldRun = false
 
bool _isDelayedBarIncreasingNotNull
 
bool _isDelayedBarDecreasingNotNull
 
bool _actualUpdate
 
Vector2 _anchorVector
 
float _delayedBarDecreasingProgress
 
float _delayedBarIncreasingProgress
 
MMProgressBarStates CurrentState = MMProgressBarStates.Idle
 

Properties

bool Bumping [getprotected set]
 whether or not the bar is bumping right now More...
 

Detailed Description

Add this bar to an object and link it to a bar (possibly the same object the script is on), and you'll be able to resize the bar object based on a current value, located between a min and max value. See the HealthBar.cs script for a use case

Member Enumeration Documentation

◆ BarDirections

the possible directions for the fill (for local scale and fill amount only)

Enumerator
LeftToRight 
RightToLeft 
UpToDown 
DownToUp 

◆ BarFillModes

the possible ways to animate the bar fill

Enumerator
SpeedBased 
FixedDuration 

◆ FillModes

the possible fill modes

Enumerator
LocalScale 
FillAmount 
Width 
Height 
Anchor 

◆ MMProgressBarStates

Enumerator
Idle 
Decreasing 
Increasing 
InDecreasingDelay 
InIncreasingDelay 

◆ TimeScales

the possible timescales the bar can work on

Enumerator
UnscaledTime 
Time 

Member Function Documentation

◆ Bump()

virtual void MoreMountains.Tools.MMProgressBar.Bump ( )
virtual

Triggers a camera bump

◆ BumpCoroutine()

virtual IEnumerator MoreMountains.Tools.MMProgressBar.BumpCoroutine ( )
protectedvirtual

A coroutine that (usually quickly) changes the scale of the bar

Returns
The coroutine.

◆ ComputeNewFill()

virtual float MoreMountains.Tools.MMProgressBar.ComputeNewFill ( bool  lerpBar,
float  barSpeed,
float  barDuration,
AnimationCurve  barCurve,
float  delay,
float  lastPercent,
out float  t 
)
protectedvirtual

◆ DebugSetBar()

virtual void MoreMountains.Tools.MMProgressBar.DebugSetBar ( )
protectedvirtual

Test method

◆ DebugUpdateBar()

virtual void MoreMountains.Tools.MMProgressBar.DebugUpdateBar ( )
protectedvirtual

This test method, called via the inspector button of the same name, lets you test what happens when you update the bar to a certain value

◆ DetermineDeltaTime()

virtual void MoreMountains.Tools.MMProgressBar.DetermineDeltaTime ( )
protectedvirtual

◆ DetermineDirection()

virtual void MoreMountains.Tools.MMProgressBar.DetermineDirection ( )
protectedvirtual

◆ HideBar()

virtual void MoreMountains.Tools.MMProgressBar.HideBar ( float  delay)
virtual

Hides (SetActive false) the progress bar object, after an optional delay

Parameters
delay

◆ HideBarCo()

virtual IEnumerator MoreMountains.Tools.MMProgressBar.HideBarCo ( float  delay)
protectedvirtual

An internal coroutine used to handle the disabling of the progress bar after a delay

Parameters
delay
Returns

◆ Initialization()

virtual void MoreMountains.Tools.MMProgressBar.Initialization ( )
virtual

◆ Minus10Percent()

virtual void MoreMountains.Tools.MMProgressBar.Minus10Percent ( )
virtual

Test method

◆ OnEnable()

virtual void MoreMountains.Tools.MMProgressBar.OnEnable ( )
protectedvirtual

◆ Plus10Percent()

virtual void MoreMountains.Tools.MMProgressBar.Plus10Percent ( )
virtual

Test method

◆ SetBar()

virtual void MoreMountains.Tools.MMProgressBar.SetBar ( float  currentValue,
float  minValue,
float  maxValue 
)
virtual

Sets the bar value to the one specified

Parameters
currentValue
minValue
maxValue

◆ SetBar01()

virtual void MoreMountains.Tools.MMProgressBar.SetBar01 ( float  newPercent)
virtual

Sets the bar value to the normalized value set in parameter

Parameters
newPercent

◆ SetBarInternal()

virtual void MoreMountains.Tools.MMProgressBar.SetBarInternal ( float  newAmount,
Transform  bar,
Image  image,
Vector2  initialSize 
)
protectedvirtual

◆ ShowBar()

virtual void MoreMountains.Tools.MMProgressBar.ShowBar ( )
virtual

A simple method you can call to show the bar (set active true)

◆ Start()

virtual void MoreMountains.Tools.MMProgressBar.Start ( )
protectedvirtual

On start we store our image component

◆ UpdateBar()

virtual void MoreMountains.Tools.MMProgressBar.UpdateBar ( float  currentValue,
float  minValue,
float  maxValue 
)
virtual

Updates the bar's values based on the specified parameters

Parameters
currentValueCurrent value.
minValueMinimum value.
maxValueMax value.

◆ UpdateBar01()

virtual void MoreMountains.Tools.MMProgressBar.UpdateBar01 ( float  normalizedValue)
virtual

Updates the bar's values, using a normalized value

Parameters
normalizedValue

◆ UpdateBars()

virtual void MoreMountains.Tools.MMProgressBar.UpdateBars ( )
protectedvirtual

Updates the foreground bar's scale

◆ UpdateBarsCo()

virtual IEnumerator MoreMountains.Tools.MMProgressBar.UpdateBarsCo ( )
protectedvirtual

On Update we update our bars

◆ UpdateText()

virtual void MoreMountains.Tools.MMProgressBar.UpdateText ( )
protectedvirtual

Member Data Documentation

◆ _actualUpdate

bool MoreMountains.Tools.MMProgressBar._actualUpdate
protected

◆ _anchorVector

Vector2 MoreMountains.Tools.MMProgressBar._anchorVector
protected

◆ _coroutine

Coroutine MoreMountains.Tools.MMProgressBar._coroutine
protected

◆ _coroutineShouldRun

bool MoreMountains.Tools.MMProgressBar._coroutineShouldRun = false
protected

◆ _delayedBarDecreasingProgress

float MoreMountains.Tools.MMProgressBar._delayedBarDecreasingProgress
protected

◆ _delayedBarIncreasingProgress

float MoreMountains.Tools.MMProgressBar._delayedBarIncreasingProgress
protected

◆ _delayedDecreasingImage

Image MoreMountains.Tools.MMProgressBar._delayedDecreasingImage
protected

◆ _delayedIncreasingImage

Image MoreMountains.Tools.MMProgressBar._delayedIncreasingImage
protected

◆ _deltaTime

float MoreMountains.Tools.MMProgressBar._deltaTime
protected

◆ _direction

int MoreMountains.Tools.MMProgressBar._direction
protected

◆ _foregroundImage

Image MoreMountains.Tools.MMProgressBar._foregroundImage
protected

◆ _initialBarSize

Vector2 MoreMountains.Tools.MMProgressBar._initialBarSize
protected

◆ _initialColor

Color MoreMountains.Tools.MMProgressBar._initialColor
protected

◆ _initialized

bool MoreMountains.Tools.MMProgressBar._initialized
protected

◆ _initialScale

Vector3 MoreMountains.Tools.MMProgressBar._initialScale
protected

◆ _isDelayedBarDecreasingNotNull

bool MoreMountains.Tools.MMProgressBar._isDelayedBarDecreasingNotNull
protected

◆ _isDelayedBarIncreasingNotNull

bool MoreMountains.Tools.MMProgressBar._isDelayedBarIncreasingNotNull
protected

◆ _lastUpdateTimestamp

float MoreMountains.Tools.MMProgressBar._lastUpdateTimestamp
protected

◆ _newPercent

float MoreMountains.Tools.MMProgressBar._newPercent
protected

◆ _percentLastTimeBarWasUpdated

float MoreMountains.Tools.MMProgressBar._percentLastTimeBarWasUpdated
protected

◆ _targetLocalScale

Vector3 MoreMountains.Tools.MMProgressBar._targetLocalScale = Vector3.one
protected

◆ _time

float MoreMountains.Tools.MMProgressBar._time
protected

◆ BarDirection

BarDirections MoreMountains.Tools.MMProgressBar.BarDirection = BarDirections.LeftToRight

the direction this bar moves to

◆ BarFillMode

BarFillModes MoreMountains.Tools.MMProgressBar.BarFillMode = BarFillModes.SpeedBased

the selected fill animation mode

◆ BarProgress

float MoreMountains.Tools.MMProgressBar.BarProgress

the current progress of the bar, ideally read only

◆ BarTarget

float MoreMountains.Tools.MMProgressBar.BarTarget

the current progress of the bar, ideally read only

◆ BumpColor

Color MoreMountains.Tools.MMProgressBar.BumpColor = Color.white

the color to apply to the bar when bumping

◆ BumpColorAnimationCurve

AnimationCurve MoreMountains.Tools.MMProgressBar.BumpColorAnimationCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0))

the curve to map the bump animation color animation on

◆ BumpDuration

float MoreMountains.Tools.MMProgressBar.BumpDuration = 0.2f

the duration of the bump animation

◆ BumpOnDecrease

bool MoreMountains.Tools.MMProgressBar.BumpOnDecrease = false

whether or not the bar should bump when its value decreases

◆ BumpOnIncrease

bool MoreMountains.Tools.MMProgressBar.BumpOnIncrease = false

whether or not the bar should bump when its value increases

◆ BumpScaleAnimationCurve

AnimationCurve MoreMountains.Tools.MMProgressBar.BumpScaleAnimationCurve = new AnimationCurve(new Keyframe(1, 1), new Keyframe(0.3f, 1.05f), new Keyframe(1, 1))

the curve to map the bump animation on

◆ BumpScaleOnChange

bool MoreMountains.Tools.MMProgressBar.BumpScaleOnChange = true

whether or not the bar should "bump" when changing value

◆ ChangeColorWhenBumping

bool MoreMountains.Tools.MMProgressBar.ChangeColorWhenBumping = true

whether or not the bar should flash when bumping

◆ CurrentState

MMProgressBarStates MoreMountains.Tools.MMProgressBar.CurrentState = MMProgressBarStates.Idle
protected

◆ DebugNewTargetValue

float MoreMountains.Tools.MMProgressBar.DebugNewTargetValue

the value the bar will move to if you press the DebugSet button

◆ DebugSetBarButton

bool MoreMountains.Tools.MMProgressBar.DebugSetBarButton

◆ DebugUpdateBarButton

bool MoreMountains.Tools.MMProgressBar.DebugUpdateBarButton

◆ DecreasingDelay

float MoreMountains.Tools.MMProgressBar.DecreasingDelay = 1f

the delay before the delayed bar moves (in seconds)

◆ DelayedBarDecreasing

Transform MoreMountains.Tools.MMProgressBar.DelayedBarDecreasing

the delayed bar that will show when moving from a value to a new, lower value

◆ DelayedBarDecreasingProgress

float MoreMountains.Tools.MMProgressBar.DelayedBarDecreasingProgress

◆ DelayedBarIncreasing

Transform MoreMountains.Tools.MMProgressBar.DelayedBarIncreasing

the delayed bar that will show when moving from a value to a new, higher value

◆ DelayedBarIncreasingProgress

float MoreMountains.Tools.MMProgressBar.DelayedBarIncreasingProgress

◆ FillMode

FillModes MoreMountains.Tools.MMProgressBar.FillMode = FillModes.LocalScale

the foreground bar's fill mode

◆ ForegroundBar

Transform MoreMountains.Tools.MMProgressBar.ForegroundBar

the main, foreground bar

◆ IncreasingDelay

float MoreMountains.Tools.MMProgressBar.IncreasingDelay = 1f

the delay before the delayed bar moves (in seconds)

◆ InitialFillValue

float MoreMountains.Tools.MMProgressBar.InitialFillValue = 0f

the initial value of the bar

◆ LerpDecreasingDelayedBar

bool MoreMountains.Tools.MMProgressBar.LerpDecreasingDelayedBar = true

whether or not the delayed bar's animation should lerp

◆ LerpDecreasingDelayedBarCurve

AnimationCurve MoreMountains.Tools.MMProgressBar.LerpDecreasingDelayedBarCurve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)

the curve to use when animating the delayed bar fill

◆ LerpDecreasingDelayedBarDuration

float MoreMountains.Tools.MMProgressBar.LerpDecreasingDelayedBarDuration = 0.2f

the duration each update of the foreground bar should take (only if in fixed duration bar fill mode)

◆ LerpDecreasingDelayedBarSpeed

float MoreMountains.Tools.MMProgressBar.LerpDecreasingDelayedBarSpeed = 15f

the speed at which to lerp the delayed bar

◆ LerpForegroundBar

bool MoreMountains.Tools.MMProgressBar.LerpForegroundBar = true

whether or not the foreground bar should lerp

◆ LerpForegroundBarCurveDecreasing

AnimationCurve MoreMountains.Tools.MMProgressBar.LerpForegroundBarCurveDecreasing = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)

the curve to use when animating the foreground bar fill

◆ LerpForegroundBarCurveIncreasing

AnimationCurve MoreMountains.Tools.MMProgressBar.LerpForegroundBarCurveIncreasing = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)

◆ LerpForegroundBarDurationDecreasing

float MoreMountains.Tools.MMProgressBar.LerpForegroundBarDurationDecreasing = 0.2f

◆ LerpForegroundBarDurationIncreasing

float MoreMountains.Tools.MMProgressBar.LerpForegroundBarDurationIncreasing = 0.2f

the duration each update of the foreground bar should take (only if in fixed duration bar fill mode)

◆ LerpForegroundBarSpeedDecreasing

float MoreMountains.Tools.MMProgressBar.LerpForegroundBarSpeedDecreasing = 15f

the speed at which to lerp the foreground bar

◆ LerpForegroundBarSpeedIncreasing

float MoreMountains.Tools.MMProgressBar.LerpForegroundBarSpeedIncreasing = 15f

◆ LerpIncreasingDelayedBar

bool MoreMountains.Tools.MMProgressBar.LerpIncreasingDelayedBar = true

whether or not the delayed bar's animation should lerp

◆ LerpIncreasingDelayedBarCurve

AnimationCurve MoreMountains.Tools.MMProgressBar.LerpIncreasingDelayedBarCurve = AnimationCurve.EaseInOut(0f, 0f, 1f, 1f)

the curve to use when animating the delayed bar fill

◆ LerpIncreasingDelayedBarDuration

float MoreMountains.Tools.MMProgressBar.LerpIncreasingDelayedBarDuration = 0.2f

the duration each update of the foreground bar should take (only if in fixed duration bar fill mode)

◆ LerpIncreasingDelayedBarSpeed

float MoreMountains.Tools.MMProgressBar.LerpIncreasingDelayedBarSpeed = 15f

the speed at which to lerp the delayed bar

◆ MaximumBarFillValue

float MoreMountains.Tools.MMProgressBar.MaximumBarFillValue = 1f

the local scale or fillamount value to reach when the bar is full

◆ MinimumBarFillValue

float MoreMountains.Tools.MMProgressBar.MinimumBarFillValue = 0f

the local scale or fillamount value to reach when the value associated to the bar is at 0%

◆ Minus10PercentButton

bool MoreMountains.Tools.MMProgressBar.Minus10PercentButton

◆ OnBarMovementDecreasingStart

UnityEvent MoreMountains.Tools.MMProgressBar.OnBarMovementDecreasingStart

◆ OnBarMovementDecreasingStop

UnityEvent MoreMountains.Tools.MMProgressBar.OnBarMovementDecreasingStop

◆ OnBarMovementIncreasingStart

UnityEvent MoreMountains.Tools.MMProgressBar.OnBarMovementIncreasingStart

◆ OnBarMovementIncreasingStop

UnityEvent MoreMountains.Tools.MMProgressBar.OnBarMovementIncreasingStop

◆ OnBump

UnityEvent MoreMountains.Tools.MMProgressBar.OnBump

an event to trigger every time the bar bumps

◆ PercentageText

Text MoreMountains.Tools.MMProgressBar.PercentageText

◆ PlayerID

string MoreMountains.Tools.MMProgressBar.PlayerID

optional - the ID of the player associated to this bar

◆ Plus10PercentButton

bool MoreMountains.Tools.MMProgressBar.Plus10PercentButton

◆ SetInitialFillValueOnStart

bool MoreMountains.Tools.MMProgressBar.SetInitialFillValueOnStart = false

whether or not to initialize the value of the bar on start

◆ TestBumpButton

bool MoreMountains.Tools.MMProgressBar.TestBumpButton

◆ TextFormat

string MoreMountains.Tools.MMProgressBar.TextFormat = "{000}"

◆ TextPrefix

string MoreMountains.Tools.MMProgressBar.TextPrefix

◆ TextSuffix

string MoreMountains.Tools.MMProgressBar.TextSuffix

◆ TextValueMultiplier

float MoreMountains.Tools.MMProgressBar.TextValueMultiplier = 1f

◆ TimeScale

TimeScales MoreMountains.Tools.MMProgressBar.TimeScale = TimeScales.UnscaledTime

defines whether the bar will work on scaled or unscaled time (whether or not it'll keep moving if time is slowed down for example)

Property Documentation

◆ Bumping

bool MoreMountains.Tools.MMProgressBar.Bumping
getprotected set

whether or not the bar is bumping right now


The documentation for this class was generated from the following file: