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

◆ DrawSplash_LoadingStar()

void Terraria.Main.DrawSplash_LoadingStar ( Color splashColor)
inlineprivate

Definition at line 67048 of file Main.cs.

67049 {
67050 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
67051 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
67052 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
67053 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
67054 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
67055 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
67056 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
67057 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
67058 //IL_006f: Unknown result type (might be due to invalid IL or missing references)
67059 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
67060 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
67061 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
67062 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
67063 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
67064 int num = 4;
67065 Vector2 position = new Vector2((float)screenWidth, (float)screenHeight) - new Vector2(30f);
67066 int num2 = (int)_splashFrameCount / num;
67067 if (num2 >= 15)
67068 {
67069 num2 = 0;
67070 }
67071 if (num2 >= 8)
67072 {
67073 num2 = 14 - num2;
67074 }
67075 Rectangle rectangle = TextureAssets.Item[75].Frame(1, 8, 0, num2);
67076 rectangle.Height -= 2;
67077 float rotation = 0f;
67078 Vector2 origin = rectangle.Size() / 2f;
67079 origin.Y += 2f;
67080 spriteBatch.Draw(TextureAssets.Item[75].Value, position, (Rectangle?)rectangle, splashColor, rotation, origin, 1f, (SpriteEffects)0, 0f);
67081 }
static Asset< Texture2D >[] Item
static SpriteBatch spriteBatch
Definition Main.cs:1043
float _splashFrameCount
Definition Main.cs:2618
static int screenHeight
Definition Main.cs:1870
static int screenWidth
Definition Main.cs:1868

References Terraria.Main._splashFrameCount, Terraria.GameContent.TextureAssets.Item, Terraria.Main.screenHeight, Terraria.Main.screenWidth, and Terraria.Main.spriteBatch.