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

◆ Click_CopyPlayerTemplate()

void Terraria.GameContent.UI.States.UICharacterCreation.Click_CopyPlayerTemplate ( UIMouseEvent evt,
UIElement listeningElement )
inlineprivate

Definition at line 891 of file UICharacterCreation.cs.

892 {
893 //IL_011e: Unknown result type (might be due to invalid IL or missing references)
894 //IL_0123: Unknown result type (might be due to invalid IL or missing references)
895 //IL_012a: Unknown result type (might be due to invalid IL or missing references)
896 //IL_0131: Unknown result type (might be due to invalid IL or missing references)
897 //IL_013d: Expected O, but got Unknown
899 string text = JsonConvert.SerializeObject((object)new Dictionary<string, object>
900 {
901 { "version", 1 },
902 { "hairStyle", _player.hair },
903 { "clothingStyle", _player.skinVariant },
904 {
905 "hairColor",
907 },
908 {
909 "eyeColor",
911 },
912 {
913 "skinColor",
915 },
916 {
917 "shirtColor",
919 },
920 {
921 "underShirtColor",
923 },
924 {
925 "pantsColor",
927 },
928 {
929 "shoeColor",
931 }
933 {
936 Formatting = (Formatting)1
937 });
939 Platform.Get<IClipboard>().Value = text;
940 }
static void PlaySound(int type, Vector2 position, int style=1)
static void PrettyPrintProfiles(ref string text)
Color hairColor
Definition Player.cs:2133
Color underShirtColor
Definition Player.cs:2141
Color shirtColor
Definition Player.cs:2139
Color skinColor
Definition Player.cs:2135
Color pantsColor
Definition Player.cs:2143
Color shoeColor
Definition Player.cs:2145

References Terraria.GameContent.UI.States.UICharacterCreation._player, Terraria.Player.eyeColor, Terraria.GameContent.UI.States.UICharacterCreation.GetHexText(), Terraria.Player.hairColor, Terraria.Player.pantsColor, Terraria.Audio.SoundEngine.PlaySound(), Terraria.GameInput.PlayerInput.PrettyPrintProfiles(), Terraria.Player.shirtColor, Terraria.Player.shoeColor, Terraria.Player.skinColor, and Terraria.Player.underShirtColor.

Referenced by Terraria.GameContent.UI.States.UICharacterCreation.MakeClothStylesMenu().