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

◆ Draw()

void Terraria.GameContent.Creative.CreativeUI.Draw ( SpriteBatch spriteBatch)
inline

Definition at line 88 of file CreativeUI.cs.

89 {
90 if (!_initialized)
91 {
92 Initialize();
93 }
94 if (Main.LocalPlayer.difficulty != 3)
95 {
96 Enabled = false;
97 }
98 else if (!Blocked)
99 {
100 Vector2 location = new Vector2(28f, 267f);
101 Vector2 vector = new Vector2(353f, 258f);
102 new Vector2(40f, 267f);
103 _ = vector + new Vector2(50f, 50f);
104 if (Main.screenHeight < 650 && Enabled)
105 {
106 location.X += 52f * Main.inventoryScale;
107 }
108 DrawToggleButton(spriteBatch, location);
109 if (Enabled)
110 {
111 _powersUI.Draw(spriteBatch, Main.gameTimeCache);
112 }
113 }
114 }
void DrawToggleButton(SpriteBatch spritebatch, Vector2 location)
void Draw(SpriteBatch spriteBatch, GameTime time)

References Terraria.GameContent.Creative.CreativeUI._initialized, Terraria.GameContent.Creative.CreativeUI._powersUI, Terraria.GameContent.Creative.CreativeUI.Blocked, Terraria.UI.UserInterface.Draw(), Terraria.GameContent.Creative.CreativeUI.DrawToggleButton(), Terraria.GameContent.Creative.CreativeUI.Enabled, Terraria.Main.gameTimeCache, Terraria.GameContent.Creative.CreativeUI.Initialize(), Terraria.Main.inventoryScale, Terraria.Main.LocalPlayer, Terraria.Main.screenHeight, and Microsoft.Xna.Framework.Graphics.Vector2.