tModLoader v2024.09
A mod to make and play Terraria mods
HorizontalBarsPlayerResourcesDisplaySet Class Reference

Inherits IPlayerResourcesDisplaySet, and IConfigKeyHolder.

Public Member Functions

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

Static Public Member Functions

static void FillBarByValues (int elementIndex, Asset< Texture2D > sprite, int segmentsCount, float fillPercent, out Vector2 offset, out float drawScale, out Rectangle? sourceRect)
 

Properties

string ConfigKey [get]
 
string DisplayedName [get]
 
string NameKey [get]
 
- Properties inherited from IPlayerResourcesDisplaySet
string DisplayedName [get]
 
- Properties inherited from IConfigKeyHolder
string ConfigKey [get]
 
string NameKey [get]
 

Member Function Documentation

◆ Draw()

void HorizontalBarsPlayerResourcesDisplaySet.Draw ( )

◆ TryToHover()

void HorizontalBarsPlayerResourcesDisplaySet.TryToHover ( )

Property Documentation

◆ ConfigKey

string HorizontalBarsPlayerResourcesDisplaySet.ConfigKey
get

Implements IConfigKeyHolder.

◆ DisplayedName

string HorizontalBarsPlayerResourcesDisplaySet.DisplayedName
get

◆ NameKey

string HorizontalBarsPlayerResourcesDisplaySet.NameKey
get

Implements IConfigKeyHolder.