|
TModLoader v1.4.4.9
TModLoader source code documentation
|
Collaboration diagram for Terraria.ModLoader.ResourceOverlayDrawContext:Public Member Functions | |
| ResourceOverlayDrawContext (PlayerStatsSnapshot snapshot, IPlayerResourcesDisplaySet displaySet, int resourceNumber, Asset< Texture2D > texture) | |
| Creates a context for drawing resources from a display set. | |
| void | Draw () |
Public Attributes | |
| readonly PlayerStatsSnapshot | snapshot |
| A snapshot of the player's health and mana stats. | |
| readonly int | resourceNumber |
| Which heart/star/bar/panel is being drawn NOTE: This value usually starts at 0, but it can start at other values. | |
| Asset< Texture2D > | texture |
| Vector2 | position |
| Rectangle? | source |
The slice of the texture to drawnull represents the entire texture. | |
| Color | color |
| float | rotation |
| Vector2 | origin |
| The center for rotation and scaling within the source rectangle. | |
| Vector2 | scale |
| SpriteEffects | effects |
Properties | |
| IPlayerResourcesDisplaySet | DisplaySet [get] |
| The resource display set that this context is drawing from. | |
| SpriteBatch | SpriteBatch [get] |
Definition at line 8 of file ResourceOverlayDrawContext.cs.