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 More...
|
|
virtual void | UpdateTextDisplay (string newText) |
| Updates the text display with the parameter string More...
|
|
virtual void | UpdateAmmoDisplays (bool magazineBased, int totalAmmo, int maxAmmo, int ammoInMagazine, int magazineSize, bool displayTotal) |
| Updates the ammo display's text and progress bar More...
|
|
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
-
◆ _isTextDisplayTextMeshProNotNull
bool MoreMountains.TopDownEngine.AmmoDisplay._isTextDisplayTextMeshProNotNull |
|
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:
- F:/Github/Store/TopDownEngine/Assets/TopDownEngine/Common/Scripts/GUI/AmmoDisplay.cs