Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawInterface_Resources_GolfPower()

static void Terraria.Main.DrawInterface_Resources_GolfPower ( )
inlinestaticprivate

Definition at line 40512 of file Main.cs.

40513 {
40514 Projectile projectile = null;
40515 for (int i = 0; i < 1000; i++)
40516 {
40517 Projectile projectile2 = Main.projectile[i];
40518 if (projectile2.active && projectile2.owner == myPlayer && projectile2.type == 722)
40519 {
40521 break;
40522 }
40523 }
40524 if (projectile == null)
40525 {
40526 return;
40527 }
40529 if (projectile3 != null)
40530 {
40532 if (!(relativeStrength < 0.001f))
40533 {
40534 Vector2 position = LocalPlayer.Bottom - Camera.ScaledPosition;
40535 position *= GameViewMatrix.Zoom;
40536 position /= UIScale;
40537 position.X -= 27f;
40538 position.Y += 14f;
40541 }
40542 }
40543 }
static ShotStrength CalculateShotStrength(Vector2 shotVector, ClubProperties clubProperties)
static Projectile FindGolfBallForHelper(Projectile golfHelper)
static Asset< Texture2D > GolfSwingBarPanel
static Asset< Texture2D > GolfSwingBarFill
static SpriteBatch spriteBatch
Definition Main.cs:974
static int myPlayer
Definition Main.cs:1801
static float UIScale
Definition Main.cs:2624
static SpriteViewMatrix GameViewMatrix
Definition Main.cs:227
static Projectile[] projectile
Definition Main.cs:1691

References Terraria.GameContent.Golf.GolfHelper.CalculateShotStrength(), Terraria.GameContent.Golf.GolfHelper.FindGolfBallForHelper(), Terraria.Main.GameViewMatrix, Terraria.GameContent.TextureAssets.GolfSwingBarFill, Terraria.GameContent.TextureAssets.GolfSwingBarPanel, System.Text.RegularExpressions.i, Terraria.Main.myPlayer, Terraria.Main.projectile, Terraria.Graphics.Camera.ScaledPosition, Terraria.Main.spriteBatch, Terraria.Main.UIScale, and Microsoft.Xna.Framework.Color.White.

Referenced by Terraria.Main.DrawInterface_9_WireSelection().