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

◆ DrawGamepadInstructions()

static void Terraria.Main.DrawGamepadInstructions ( )
inlinestatic

Definition at line 20036 of file Main.cs.

20037 {
20039 {
20040 return;
20041 }
20043 PlayerInput.AllowExecutionOfGamepadInstructions = false;
20044 if (!GamepadDisableInstructionsDisplay && text.Length > 0 && (!player[myPlayer].dead || gameMenu))
20045 {
20046 float num = 35f;
20047 float num2 = 1f;
20049 if (gameMenu)
20050 {
20051 num = 55f;
20052 }
20053 if (menuMode == 0)
20054 {
20055 num += 32f;
20056 }
20058 float t = num2;
20059 Utils.Swap(ref GlyphTagHandler.GlyphsScale, ref t);
20061 Utils.Swap(ref GlyphTagHandler.GlyphsScale, ref t);
20062 }
20063 }
static Asset< DynamicSpriteFont > MouseText
Definition FontAssets.cs:10
static string ComposeInstructionsForGamepad()
static bool drawingPlayerChat
Definition Main.cs:1739
static SpriteBatch spriteBatch
Definition Main.cs:974
static int myPlayer
Definition Main.cs:1801
static int screenHeight
Definition Main.cs:1721
static int menuMode
Definition Main.cs:2379
static bool gameMenu
Definition Main.cs:1926
static bool GamepadDisableInstructionsDisplay
Definition Main.cs:271
static Player[] player
Definition Main.cs:1803
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
static Vector2 GetStringSize(DynamicSpriteFont font, string text, Vector2 baseScale, float maxWidth=-1f)

References Terraria.GameInput.PlayerInput.ComposeInstructionsForGamepad(), Terraria.UI.Chat.ChatManager.DrawColorCodedStringWithShadow(), Terraria.Main.drawingPlayerChat, Terraria.Main.gameMenu, Terraria.Main.GamepadDisableInstructionsDisplay, Terraria.UI.Chat.ChatManager.GetStringSize(), Terraria.GameContent.UI.Chat.GlyphTagHandler.GlyphsScale, Terraria.Main.menuMode, Terraria.GameContent.FontAssets.MouseText, Terraria.Main.myPlayer, Terraria.Main.player, Terraria.Main.screenHeight, Terraria.GameInput.PlayerInput.SettingsForUI.ShowGamepadHints, Terraria.Main.spriteBatch, System.text, Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Color.White, and Microsoft.Xna.Framework.Vector2.Zero.

Referenced by Terraria.Main.DrawPendingMouseText().