Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.UI.ResourceSets.FancyClassicPlayerResourcesDisplaySet Class Reference

Public Member Functions

 FancyClassicPlayerResourcesDisplaySet (string nameKey, string configKey, string resourceFolderName, AssetRequestMode mode)
 
void Draw ()
 
void TryToHover ()
 

Properties

string NameKey [get, private set]
 
string ConfigKey [get, private set]
 

Private Member Functions

void DrawLifeBar (SpriteBatch spriteBatch)
 
void DrawManaBar (SpriteBatch spriteBatch)
 
void HeartPanelDrawer (int elementIndex, int firstElementIndex, int lastElementIndex, out Asset< Texture2D > sprite, out Vector2 offset, out float drawScale, out Rectangle? sourceRect)
 
void HeartFillingDrawer (int elementIndex, int firstElementIndex, int lastElementIndex, out Asset< Texture2D > sprite, out Vector2 offset, out float drawScale, out Rectangle? sourceRect)
 
void StarPanelDrawer (int elementIndex, int firstElementIndex, int lastElementIndex, out Asset< Texture2D > sprite, out Vector2 offset, out float drawScale, out Rectangle? sourceRect)
 
void StarFillingDrawer (int elementIndex, int firstElementIndex, int lastElementIndex, out Asset< Texture2D > sprite, out Vector2 offset, out float drawScale, out Rectangle? sourceRect)
 
void PrepareFields (Player player)
 

Static Private Member Functions

static void DrawLifeBarText (SpriteBatch spriteBatch, Vector2 topLeftAnchor)
 
static void DrawManaText (SpriteBatch spriteBatch)
 

Private Attributes

float _currentPlayerLife
 
float _lifePerHeart
 
int _playerLifeFruitCount
 
int _lastHeartFillingIndex
 
int _lastHeartPanelIndex
 
int _heartCountRow1
 
int _heartCountRow2
 
int _starCount
 
int _lastStarFillingIndex
 
float _manaPerStar
 
float _currentPlayerMana
 
Asset< Texture2D_heartLeft
 
Asset< Texture2D_heartMiddle
 
Asset< Texture2D_heartRight
 
Asset< Texture2D_heartRightFancy
 
Asset< Texture2D_heartFill
 
Asset< Texture2D_heartFillHoney
 
Asset< Texture2D_heartSingleFancy
 
Asset< Texture2D_starTop
 
Asset< Texture2D_starMiddle
 
Asset< Texture2D_starBottom
 
Asset< Texture2D_starSingle
 
Asset< Texture2D_starFill
 
bool _hoverLife
 
bool _hoverMana
 
bool _drawText
 

Detailed Description

Definition at line 9 of file FancyClassicPlayerResourcesDisplaySet.cs.


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