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

◆ SelectColorPicker()

void Terraria.GameContent.UI.States.UICharacterCreation.SelectColorPicker ( CategoryId selection)
inlineprivate

Definition at line 1286 of file UICharacterCreation.cs.

1287 {
1289 switch (selection)
1290 {
1291 case CategoryId.CharInfo:
1292 Click_CharInfo(null, null);
1293 return;
1294 case CategoryId.Clothing:
1295 Click_ClothStyles(null, null);
1296 return;
1297 case CategoryId.HairStyle:
1298 Click_HairStyles(null, null);
1299 return;
1300 }
1303 for (int i = 0; i < _colorPickers.Length; i++)
1304 {
1305 if (_colorPickers[i] != null)
1306 {
1308 }
1309 }
1311 switch (_selectedPicker)
1312 {
1313 case CategoryId.HairColor:
1315 break;
1316 case CategoryId.Eye:
1318 break;
1319 case CategoryId.Skin:
1321 break;
1322 case CategoryId.Shirt:
1324 break;
1325 case CategoryId.Undershirt:
1327 break;
1328 case CategoryId.Pants:
1330 break;
1331 case CategoryId.Shoes:
1333 break;
1334 }
1337 }
void Click_HairStyles(UIMouseEvent evt, UIElement listeningElement)
void Click_CharInfo(UIMouseEvent evt, UIElement listeningElement)
void Click_ClothStyles(UIMouseEvent evt, UIElement listeningElement)
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
void Append(UIElement element)
Definition UIElement.cs:166

References Terraria.GameContent.UI.States.UICharacterCreation._colorPickers, Terraria.GameContent.UI.States.UICharacterCreation._currentColorHSL, Terraria.GameContent.UI.States.UICharacterCreation._hslContainer, Terraria.GameContent.UI.States.UICharacterCreation._middleContainer, Terraria.GameContent.UI.States.UICharacterCreation._player, Terraria.GameContent.UI.States.UICharacterCreation._selectedPicker, Terraria.UI.UIElement.Append(), Terraria.GameContent.UI.States.UICharacterCreation.Click_CharInfo(), Terraria.GameContent.UI.States.UICharacterCreation.Click_ClothStyles(), Terraria.GameContent.UI.States.UICharacterCreation.Click_HairStyles(), Terraria.Player.eyeColor, Terraria.Player.hairColor, Microsoft.Xna.Framework.Vector3.One, Terraria.Player.pantsColor, Terraria.GameContent.UI.States.UICharacterCreation.RgbToScaledHsl(), Terraria.GameContent.UI.States.UICharacterCreation.ScaledHslToRgb(), Terraria.GameContent.UI.Elements.UIColoredImageButton.SetSelected(), Terraria.Player.shirtColor, Terraria.Player.shoeColor, Terraria.Player.skinColor, Terraria.Player.underShirtColor, Terraria.GameContent.UI.States.UICharacterCreation.UnselectAllCategories(), and Terraria.GameContent.UI.States.UICharacterCreation.UpdateHexText().

Referenced by Terraria.GameContent.UI.States.UICharacterCreation.Click_ColorPicker(), and Terraria.GameContent.UI.States.UICharacterCreation.TryMovingCategory().