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

◆ Click_PasteHex()

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

Definition at line 878 of file UICharacterCreation.cs.

879 {
881 string value = Platform.Get<IClipboard>().Value;
882 if (GetHexColor(value, out var hsl))
883 {
888 }
889 }
static void PlaySound(int type, Vector2 position, int style=1)
bool GetHexColor(string hexString, out Vector3 hsl)

References Terraria.GameContent.UI.States.UICharacterCreation._currentColorHSL, Terraria.GameContent.UI.States.UICharacterCreation.ApplyPendingColor(), Terraria.GameContent.UI.States.UICharacterCreation.GetHexColor(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.GameContent.UI.States.UICharacterCreation.ScaledHslToRgb(), Terraria.GameContent.UI.States.UICharacterCreation.UpdateColorPickers(), and Terraria.GameContent.UI.States.UICharacterCreation.UpdateHexText().

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