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

◆ CancelClothesWindow()

static void Terraria.Main.CancelClothesWindow ( bool quiet = false)
inlinestatic

Definition at line 41163 of file Main.cs.

41164 {
41165 if (clothesWindow)
41166 {
41167 clothesWindow = false;
41168 if (!quiet)
41169 {
41171 }
41172 player[myPlayer].shirtColor = oldClothesColor[0];
41173 player[myPlayer].underShirtColor = oldClothesColor[1];
41174 player[myPlayer].pantsColor = oldClothesColor[2];
41175 player[myPlayer].shoeColor = oldClothesColor[3];
41176 player[myPlayer].eyeColor = oldClothesColor[4];
41177 player[myPlayer].skinColor = oldClothesColor[5];
41178 dresserInterfaceDummy.skinVariant = oldClothesStyle;
41179 dresserInterfaceDummy.Male = player[myPlayer].Male;
41180 player[myPlayer].skinVariant = dresserInterfaceDummy.skinVariant;
41181 }
41182 }
static void PlaySound(int type, Vector2 position, int style=1)
static Microsoft.Xna.Framework.Color[] oldClothesColor
Definition Main.cs:2467
static int myPlayer
Definition Main.cs:1801
static bool clothesWindow
Definition Main.cs:702
static Player dresserInterfaceDummy
Definition Main.cs:2475
static int oldClothesStyle
Definition Main.cs:2469
static Player[] player
Definition Main.cs:1803

References Terraria.Main.clothesWindow, Terraria.Main.dresserInterfaceDummy, Terraria.Main.myPlayer, Terraria.Main.oldClothesColor, Terraria.Main.oldClothesStyle, Terraria.Main.player, and Terraria.Audio.SoundEngine.PlaySound().

Referenced by Terraria.Main.DrawClothesWindow(), Terraria.Main.OpenClothesWindow(), Terraria.Player.TileInteractionsUse(), Terraria.Player.ToggleCreativeMenu(), and Terraria.Player.ToggleInv().