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

◆ OpenShop()

void Terraria.Main.OpenShop ( int shopIndex)
inlineprivate

Definition at line 52030 of file Main.cs.

52031 {
52032 playerInventory = true;
52033 stackSplit = 9999;
52034 npcChatText = "";
52035 SetNPCShopIndex(1);
52038 }
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 ...
void SetupShop(int type)
Definition Chest.cs:1705
static string npcChatText
Definition Main.cs:1982
static void SetNPCShopIndex(int index)
Definition Main.cs:52040
Chest[] shop
Definition Main.cs:1996
static int npcShop
Definition Main.cs:3005
static int stackSplit
Definition Main.cs:1914
static bool playerInventory
Definition Main.cs:1912

References Terraria.Main.npcChatText, Terraria.Main.npcShop, Terraria.Main.playerInventory, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Main.SetNPCShopIndex(), Terraria.Chest.SetupShop(), Terraria.Main.shop, and Terraria.Main.stackSplit.

Referenced by Terraria.Main.GUIChatDrawInner().

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