40701 {
40703 {
40705 return;
40706 }
40711 int num3 = num + 42;
40714 int num6 = num + 18;
40716 spriteBatch.Draw(
TextureAssets.
HairStyleBack.Value,
new Vector2(
num2, num),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
HairStyleBack.Width(),
TextureAssets.
HairStyleBack.Height()),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 200), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
40718 {
40719 int num7 = PlayerInput.ScrollWheelDelta / 120;
40723 {
40725 {
40728 }
40729 else
40730 {
40733 }
40735 }
40736 }
40738 {
40740 }
40744 {
40746 {
40749 {
40752 }
40753 }
40754 spriteBatch.Draw(
TextureAssets.
ScrollLeftButton.Value,
new Vector2(
num9,
num10),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
CraftUpButton.Width(),
TextureAssets.
CraftUpButton.Height()),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 200), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
40755 }
40757 {
40760 {
40763 {
40766 }
40767 }
40768 spriteBatch.Draw(
TextureAssets.
ScrollRightButton.Value,
new Vector2(
num9,
num10),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
CraftUpButton.Width(),
TextureAssets.
CraftUpButton.Height()),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 200), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
40769 }
40771 {
40773 }
40775 {
40777 }
40780 {
40782 }
40784 {
40786 }
40798 {
40800 }
40802 if (
num16 >= 1000000)
40803 {
40806 }
40807 if (
num16 >= 10000)
40808 {
40811 }
40813 {
40816 }
40818 {
40820 }
40822 {
40824 }
40826 {
40828 }
40830 {
40832 }
40834 {
40836 }
40839 {
40841 }
40844 float num18 = 0.9f;
40847 int num20 = num + 156;
40848 bool flag = false;
40850 {
40852 }
40854 {
40855 flag = true;
40858 {
40860 }
40863 }
40864 else
40865 {
40867 {
40869 }
40871 }
40875 for (
int i = 0;
i < 5;
i++)
40876 {
40880 if (flag)
40881 {
40883 }
40885 {
40887 }
40889 {
40891 }
40893 {
40895 }
40897 {
40899 }
40901 {
40903 }
40904 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value,
text3,
new Vector2((
float)
num21 +
vector.X, (
float)
num22 +
vector.Y),
color2, 0f,
vector,
num18,
SpriteEffects.None, 0f);
40905 }
40909 flag = false;
40911 {
40912 flag = true;
40915 {
40917 }
40920 }
40921 else
40922 {
40924 {
40926 }
40928 }
40932 for (
int j = 0;
j < 5;
j++)
40933 {
40937 if (flag)
40938 {
40940 }
40942 {
40944 }
40946 {
40948 }
40950 {
40952 }
40954 {
40956 }
40958 {
40960 }
40961 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value, textValue,
new Vector2((
float)
num23 +
vector.X, (
float)
num24 +
vector.Y),
color3, 0f,
vector,
num18,
SpriteEffects.None, 0f);
40962 }
40964 {
40966 {
40968 {
40970 return;
40971 }
40972 }
40974 {
40976 return;
40977 }
40978 }
40980 {
40983 }
40989 float num28 = (float)(
int)selColor.A / 255f;
40991 {
40995 aBar = (float)(
int)selColor.A / 255f;
40996 }
40997 else
40998 {
41003 }
41007 {
41009 }
41012 {
41017 {
41019 }
41021 {
41023 }
41025 }
41030 {
41034 }
41036 {
41038 }
41041 {
41046 {
41048 }
41050 {
41052 }
41054 }
41058 float num29 = 0.15f;
41060 {
41064 }
41066 {
41068 }
41071 {
41076 {
41078 }
41080 {
41082 }
41085 }
41093 for (
int m = 0;
m < 15;
m++)
41094 {
41098 {
41099 spriteBatch.Draw(
TextureAssets.
InventoryBack14.Value,
new Vector2(
num30,
num31),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
InventoryBack.Width(),
TextureAssets.
InventoryBack.Height()),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 200), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41100 }
41101 else
41102 {
41103 spriteBatch.Draw(
TextureAssets.
InventoryBack8.Value,
new Vector2(
num30,
num31),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
InventoryBack.Width(),
TextureAssets.
InventoryBack.Height()),
new Microsoft.
Xna.
Framework.
Color(200, 200, 200, 200), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41104 }
41106 {
41108 Utils.DrawSplicedPanel(
spriteBatch, val.Value,
num30,
num31,
TextureAssets.
InventoryBack.Width(),
TextureAssets.
InventoryBack.Height(), val.Width() / 2 - 1, val.Width() / 2 - 1, val.Height() / 2 - 1, val.Height() / 2 - 1,
OurFavoriteColor);
41110 {
41114 }
41115 }
41118 float y =
num31 + 4;
41119 spriteBatch.Draw(
TextureAssets.
Players[
num32, 0].Value,
new Vector2(x, y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
PlayerHair[
num34].Width(), 56),
player[
myPlayer].skinColor, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41120 spriteBatch.Draw(
TextureAssets.
Players[
num32, 1].Value,
new Vector2(x, y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
PlayerHair[
num34].Width(), 56),
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 255), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41121 spriteBatch.Draw(
TextureAssets.
Players[
num32, 2].Value,
new Vector2(x, y),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
PlayerHair[
num34].Width(), 56),
player[
myPlayer].eyeColor, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41123 spriteBatch.Draw(
TextureAssets.
PlayerHair[
num34].Value,
new Vector2(x, y) +
vector3,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
PlayerHair[
num34].Width(), 56),
selColor, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
41127 {
41131 }
41132 }
41133 }
static void DrawString(this SpriteBatch spriteBatch, DynamicSpriteFont spriteFont, string text, Vector2 position, Color color)
static decimal Round(decimal d)
static int Sign(decimal value)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D > ColorHighlight
static Asset< Texture2D >[] PlayerHair
static Asset< Texture2D > InventoryBack8
static Asset< Texture2D > InventoryBack
static Asset< Texture2D > Hue
static Asset< Texture2D > ScrollRightButton
static Asset< Texture2D > HairStyleBack
static Asset< Texture2D > ColorSlider
static Asset< Texture2D > InventoryBack14
static Asset< Texture2D > CraftUpButton
static Asset< Texture2D >[,] Players
static Asset< Texture2D > ColorBlip
static Asset< Texture2D > ScrollLeftButton
static Asset< Texture2D > ColorBar
static string GetTextValue(string key)
static bool npcChatFocus1
static bool npcChatFocus2
static string npcChatText
static SpriteBatch spriteBatch
static Microsoft.Xna.Framework.Color selColor
static bool mouseLeftRelease
static void CancelHairWindow()
static Vector2 MouseScreen
static byte mouseTextColor
static Microsoft.Xna.Framework.Color OurFavoriteColor
static Microsoft.Xna.Framework.Color oldHairColor
static bool InGuideCraftMenu
static Vector3 rgbToHsl(Microsoft.Xna.Framework.Color newColor)
static bool playerInventory
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static IAssetRepository Assets
static HairstyleUnlocksHelper Hairstyles
static void BuyHairWindow()
static void SetPosition(int ID, Vector2 Position)
static void DrawSavings(SpriteBatch sb, float shopx, float shopy, bool horizontal=false)
bool Contains(int x, int y)