A class that combines a progress bar and a text display and that can be used to display the current ammo level of a weapon.
More...
|
| override void | Initialization () |
| | On init we initialize our string builder.
|
| virtual void | UpdateTextDisplay (string newText) |
| | Updates the text display with the parameter string.
|
| virtual void | UpdateAmmoDisplays (bool magazineBased, int totalAmmo, int maxAmmo, int ammoInMagazine, int magazineSize, bool displayTotal) |
| | Updates the ammo display's text and progress bar.
|
A class that combines a progress bar and a text display and that can be used to display the current ammo level of a weapon.
◆ Initialization()
| override void MoreMountains.TopDownEngine.AmmoDisplay.Initialization |
( |
| ) |
|
On init we initialize our string builder.
◆ UpdateAmmoDisplays()
| virtual void MoreMountains.TopDownEngine.AmmoDisplay.UpdateAmmoDisplays |
( |
bool | magazineBased, |
|
|
int | totalAmmo, |
|
|
int | maxAmmo, |
|
|
int | ammoInMagazine, |
|
|
int | magazineSize, |
|
|
bool | displayTotal ) |
|
virtual |
Updates the ammo display's text and progress bar.
- Parameters
-
| magazineBased | If set to true magazine based. |
| totalAmmo | Total ammo. |
| maxAmmo | Max ammo. |
| ammoInMagazine | Ammo in magazine. |
| magazineSize | Magazine size. |
| displayTotal | If set to true display total. |
◆ UpdateTextDisplay()
| virtual void MoreMountains.TopDownEngine.AmmoDisplay.UpdateTextDisplay |
( |
string | newText | ) |
|
|
virtual |
Updates the text display with the parameter string.
- Parameters
-
◆ _ammoInMagazineLastTime
| int MoreMountains.TopDownEngine.AmmoDisplay._ammoInMagazineLastTime |
|
protected |
◆ _isTextDisplayTextMeshProNotNull
| bool MoreMountains.TopDownEngine.AmmoDisplay._isTextDisplayTextMeshProNotNull |
|
protected |
◆ _magazineSizeLastTime
| int MoreMountains.TopDownEngine.AmmoDisplay._magazineSizeLastTime |
|
protected |
◆ _maxAmmoLastTime
| int MoreMountains.TopDownEngine.AmmoDisplay._maxAmmoLastTime |
|
protected |
◆ _stringBuilder
| StringBuilder MoreMountains.TopDownEngine.AmmoDisplay._stringBuilder |
|
protected |
◆ _totalAmmoLastTime
| int MoreMountains.TopDownEngine.AmmoDisplay._totalAmmoLastTime |
|
protected |
◆ AmmoDisplayID
| int MoreMountains.TopDownEngine.AmmoDisplay.AmmoDisplayID = 0 |
◆ TextDisplay
| Text MoreMountains.TopDownEngine.AmmoDisplay.TextDisplay |
the Text object used to display the current ammo numbers
The documentation for this class was generated from the following file:
- H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/GUI/AmmoDisplay.cs