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

◆ Open()

static void Terraria.IngameOptions.Open ( )
inlinestatic

Definition at line 73 of file IngameOptions.cs.

74 {
75 Main.ClosePlayerChat();
76 Main.chatText = "";
77 Main.playerInventory = false;
78 Main.editChest = false;
79 Main.npcChatText = "";
81 Main.ingameOptionsWindow = true;
82 category = 0;
83 for (int i = 0; i < leftScale.Length; i++)
84 {
85 leftScale[i] = 0f;
86 }
87 for (int j = 0; j < rightScale.Length; j++)
88 {
89 rightScale[j] = 0f;
90 }
91 leftHover = -1;
92 rightHover = -1;
93 oldLeftHover = -1;
94 oldRightHover = -1;
95 rightLock = -1;
96 inBar = false;
97 notBar = false;
98 noSound = false;
99 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static float[] rightScale
static float[] leftScale

References Terraria.IngameOptions.category, Terraria.Main.ClosePlayerChat(), Terraria.IngameOptions.inBar, Terraria.IngameOptions.leftHover, Terraria.IngameOptions.leftScale, Terraria.IngameOptions.noSound, Terraria.IngameOptions.notBar, Terraria.IngameOptions.oldLeftHover, Terraria.IngameOptions.oldRightHover, Terraria.Audio.SoundEngine.PlaySound(), Terraria.IngameOptions.rightHover, Terraria.IngameOptions.rightLock, and Terraria.IngameOptions.rightScale.

Referenced by Terraria.Main.DrawInterface_29_SettingsButton(), and Terraria.Player.TryOpeningInGameOptionsBasedOnInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: