37732 {
37733 Recipe.GetThroughDelayedFindRecipes();
37735 {
37737 }
37738 int num = 0;
37750 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value, Lang.inter[4].Value,
new Vector2(40f, 0f) +
vector,
new Microsoft.
Xna.
Framework.
Color(
mouseTextColor,
mouseTextColor,
mouseTextColor,
mouseTextColor), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37753 {
37755 }
37756 for (
int i = 0;
i < 10;
i++)
37757 {
37758 for (
int j = 0;
j < 5;
j++)
37759 {
37765 {
37769 {
37771 }
37773 {
37777 {
37778 Recipe.FindRecipes();
37779 }
37780 }
37782 }
37784 }
37785 }
37789 {
37791 }
37794 {
37798 }
37800 {
37801 bool flag = false;
37805 {
37806 flag = true;
37807 }
37808 if (flag)
37809 {
37812 }
37814 for (
int k = 0;
k < 4;
k++)
37815 {
37819 if (flag)
37820 {
37823 }
37827 {
37829 }
37831 {
37836 {
37838 {
37846 }
37848 {
37851 }
37853 {
37856 }
37858 {
37861 }
37862 }
37863 }
37864 spriteBatch.Draw(
TextureAssets.
MapIcon[
num18].Value,
new Vector2(
num16,
num17),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
MapIcon[
num18].Width(),
TextureAssets.
MapIcon[
num18].Height()),
new Microsoft.
Xna.
Framework.
Color(
num15,
num15,
num15,
num15), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37865 }
37866 }
37868 {
37871 {
37873 }
37874 }
37875 else
37876 {
37879 {
37881 }
37882 }
37890 {
37893 }
37896 {
37899 {
37900 case 1:
37902 break;
37903 case 2:
37905 break;
37906 case 3:
37908 break;
37909 }
37910 }
37912 {
37918 for (
int l = 0;
l < 2;
l++)
37919 {
37921 {
37922 case 0:
37924 break;
37925 case 1:
37927 break;
37928 }
37930 for (
int m = 0;
m < 5;
m++)
37931 {
37932 int context = 0;
37934 bool flag2 =
false;
37936 {
37937 case 0:
37938 context = 19;
37940 break;
37941 case 1:
37942 context = 20;
37944 break;
37945 case 2:
37946 context = 18;
37948 break;
37949 case 3:
37950 context = 17;
37951 break;
37952 case 4:
37953 context = 16;
37954 break;
37955 }
37957 {
37958 context = 33;
37961 }
37963 bool flag3 =
false;
37968 {
37970 {
37972 }
37974 {
37978 {
37980 {
37982 }
37984 {
37986 }
37990 {
37991 NetMessage.SendData(4, -1, -1,
null,
myPlayer);
37992 }
37993 }
37995 }
37996 }
37998 {
38001 {
38003 }
38005 r2.Offset(-
r2.Width / 2, -
r2.Height / 2);
38007 {
38011 {
38016 {
38017 NetMessage.SendData(4, -1, -1,
null,
myPlayer);
38018 }
38019 }
38021 }
38022 }
38024 {
38028 }
38031 {
38034 {
38037 }
38038 }
38040 {
38043 {
38046 }
38047 }
38048 }
38049 }
38057 {
38059 }
38061 {
38063 }
38065 {
38067 }
38069 for (
int n = 0;
n <
Player.maxBuffs;
n++)
38070 {
38072 {
38080 {
38082 }
38083 }
38084 }
38085 UILinkPointNavigator.Shortcuts.BUFFS_DRAWN =
num28;
38086 UILinkPointNavigator.Shortcuts.BUFFS_PER_COLUMN =
num29;
38088 {
38091 {
38095 {
38097 }
38099 {
38101 }
38102 else
38103 {
38105 }
38106 }
38107 }
38108 }
38110 {
38112 }
38113 else
38114 {
38117 {
38119 }
38121 bool flag4 =
false;
38126 {
38128 }
38135 {
38137 {
38138 continue;
38139 }
38143 {
38145 }
38153 {
38157 }
38159 {
38162 }
38164 {
38166 }
38169 {
38171 }
38175 {
38178 {
38182 {
38183 NetMessage.SendData(4, -1, -1,
null,
myPlayer);
38184 }
38185 }
38187 }
38189 {
38194 {
38196 }
38198 }
38200 {
38202 }
38205 {
38208 {
38211 }
38212 }
38213 }
38216 {
38218 }
38221 {
38223 {
38224 continue;
38225 }
38234 {
38236 }
38239 {
38241 }
38243 {
38248 {
38251 }
38253 }
38255 {
38257 }
38259 }
38262 {
38264 }
38267 {
38269 {
38270 continue;
38271 }
38280 {
38282 }
38284 {
38289 {
38291 {
38293 }
38295 }
38297 }
38299 {
38301 }
38303 }
38306 }
38310 {
38313 }
38315 {
38317 }
38319 {
38322 {
38324 }
38325 }
38326 else
38327 {
38330 {
38332 }
38333 }
38337 {
38339 {
38341 {
38343 }
38344 }
38346 {
38348 }
38350 {
38353 Recipe.FindRecipes();
38354 }
38355 else
38356 {
38359 string text = Lang.inter[46].Value +
": ";
38361 {
38364 {
38366 }
38376 {
38378 }
38379 if (
num63 >= 1000000)
38380 {
38383 }
38384 if (
num63 >= 10000)
38385 {
38388 }
38390 {
38393 }
38395 {
38397 }
38399 {
38401 }
38403 {
38405 }
38407 {
38409 }
38411 {
38413 }
38421 {
38423 }
38427 {
38430 {
38432 }
38436 {
38443 }
38444 }
38445 else
38446 {
38448 }
38449 }
38450 else
38451 {
38452 text = Lang.inter[20].Value;
38453 }
38454 ChatManager.
DrawColorCodedStringWithShadow(
spriteBatch,
FontAssets.
MouseText.Value,
text,
new Vector2(
num56 + 50,
num57),
new Microsoft.
Xna.
Framework.
Color(
mouseTextColor,
mouseTextColor,
mouseTextColor,
mouseTextColor), 0f,
Vector2.
Zero,
Vector2.
One);
38456 {
38461 {
38462 Recipe.FindRecipes();
38463 }
38466 }
38468 }
38469 }
38471 {
38473 {
38476 Recipe.FindRecipes();
38477 }
38478 else
38479 {
38483 {
38489 {
38490 Recipe.FindRecipes();
38491 }
38494 }
38496 }
38497 }
38501 {
38502 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeBig = -1;
38503 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = -1;
38505 {
38506 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value, Lang.inter[25].Value,
new Vector2(76f, 414 +
num54),
color3, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
38507 }
38509 {
38512 {
38514 }
38516 {
38518 }
38520 {
38522 {
38524 }
38527 {
38529 }
38531 {
38533 }
38534 }
38536 {
38538 {
38540 }
38543 {
38545 }
38547 {
38549 }
38550 }
38551 else
38552 {
38554 }
38556 {
38557 continue;
38558 }
38561 double num70 = inventoryBack.A + 50;
38562 double num71 = 255.0;
38564 {
38567 }
38571 {
38573 }
38575 {
38576 continue;
38577 }
38580 {
38582 }
38584 {
38585 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = 0;
38587 {
38588 ItemSlot.DrawGoldBGForCraftingMaterial = true;
38589 }
38590 }
38591 else
38592 {
38593 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = -1;
38594 }
38599 }
38601 {
38602 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeBig = -1;
38603 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = -1;
38605 {
38607 {
38608 UILinkPointNavigator.Shortcuts.CRAFT_CurrentIngredientsCount =
num72 + 1;
38609 break;
38610 }
38613 double num75 = inventoryBack.A + 50;
38614 double num76 = 255.0;
38620 {
38622 }
38624 {
38626 }
38627 white.R = (byte)
num75;
38628 white.G = (byte)
num75;
38629 white.B = (byte)
num75;
38630 white.A = (byte)
num75;
38631 white2.R = (byte)
num76;
38632 white2.G = (byte)
num76;
38633 white2.B = (byte)
num76;
38634 white2.A = (byte)
num76;
38637 {
38638 break;
38639 }
38641 {
38645 }
38648 {
38650 }
38651 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = 1 +
num72;
38656 }
38657 }
38659 {
38661 }
38662 else
38663 {
38667 {
38669 }
38674 {
38678 {
38680 {
38683 }
38684 else
38685 {
38688 }
38689 }
38690 }
38691 }
38692 }
38694 {
38695 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeBig = -1;
38696 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeSmall = -1;
38699 {
38701 }
38706 UILinkPointNavigator.Shortcuts.CRAFT_IconsPerRow =
num83;
38707 UILinkPointNavigator.Shortcuts.CRAFT_IconsPerColumn =
num84;
38715 {
38718 {
38720 }
38721 }
38723 {
38725 {
38728 {
38731 {
38733 }
38736 }
38737 }
38738 spriteBatch.Draw(
TextureAssets.
CraftUpButton.Value,
new Vector2(
num89,
num90),
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);
38739 }
38741 {
38744 {
38747 {
38751 {
38753 }
38755 }
38756 }
38757 spriteBatch.Draw(
TextureAssets.
CraftDownButton.Value,
new Vector2(
num89,
num90),
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);
38758 }
38760 {
38763 double num94 = inventoryBack.A + 50;
38764 double num95 = 255.0;
38768 {
38771 {
38778 {
38781 }
38782 }
38788 {
38790 }
38791 }
38793 {
38796 {
38798 }
38799 UILinkPointNavigator.Shortcuts.CRAFT_CurrentRecipeBig =
num91 -
recStart;
38804 }
38808 {
38814 {
38815 break;
38816 }
38817 }
38818 }
38819 }
38823 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value, Lang.inter[26].Value,
new Vector2(496f, 84f + (
vector2.Y -
vector2.Y *
num96) / 2f),
new Microsoft.
Xna.
Framework.
Color(
mouseTextColor,
mouseTextColor,
mouseTextColor,
mouseTextColor), 0f,
default(
Vector2), 0.75f *
num96,
SpriteEffects.None, 0f);
38826 {
38832 {
38838 {
38839 Recipe.FindRecipes();
38840 }
38842 }
38844 }
38848 DynamicSpriteFontExtensionMethods.
DrawString(
spriteBatch,
FontAssets.
MouseText.Value, Lang.inter[27].Value,
new Vector2(532f, 84f + (
vector4.Y -
vector4.Y *
num100) / 2f),
new Microsoft.
Xna.
Framework.
Color(
mouseTextColor,
mouseTextColor,
mouseTextColor,
mouseTextColor), 0f,
default(
Vector2), 0.75f *
num100,
SpriteEffects.None, 0f);
38851 {
38857 {
38863 {
38864 Recipe.FindRecipes();
38865 }
38867 }
38869 }
38871 {
38873 }
38875 {
38880 {
38882 }
38884 {
38886 {
38892 {
38898 }
38900 }
38901 }
38902 }
38904 {
38906 Recipe.FindRecipes();
38907 }
38911 {
38913 }
38918 {
38926 {
38929 {
38932 }
38934 {
38937 Recipe.FindRecipes();
38938 }
38940 }
38942 {
38945 }
38946 spriteBatch.Draw(
TextureAssets.
ChestStack[
num108].Value,
new Vector2(
num109,
num110),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
ChestStack[
num108].Width(),
TextureAssets.
ChestStack[
num108].Height()),
Microsoft.
Xna.
Framework.
Color.
White, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
38948 {
38950 }
38951 }
38953 {
38954 return;
38955 }
38964 {
38969 {
38972 Recipe.FindRecipes();
38973 }
38974 }
38976 {
38979 }
38983 {
38985 }
38986 }
static void DrawString(this SpriteBatch spriteBatch, DynamicSpriteFont spriteFont, string text, Vector2 position, Color color)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D >[] Reforge
static Asset< Texture2D >[] CraftToggle
static Asset< Texture2D > InventoryBack
static Asset< Texture2D > InventoryTickOff
static Asset< Texture2D >[] InventorySort
static Asset< Texture2D > CraftUpButton
static Asset< Texture2D >[] MapIcon
static Asset< Texture2D >[] Extra
static Asset< Texture2D >[] ChestStack
static Asset< Texture2D > InventoryTickOn
static Asset< Texture2D > CraftDownButton
static Color AlphaDarken(Color input)
static readonly Color CoinGold
static readonly Color CoinPlatinum
static readonly Color CoinSilver
static readonly Color CoinCopper
static readonly LegacySoundStyle Item37
static string GetTextValue(string key)
static float mapFullscreenScale
void MouseTextHackZoom(string text, string buffTooltip=null)
static float craftingAlpha
static void DrawGuideCraftText(int adjY, Microsoft.Xna.Framework.Color craftingTipColor, out int inventoryX, out int inventoryY)
static int npcChatCornerItem
static void GetBuilderAccsCountToShow(Player plr, out int blockReplaceIcons, out int torchGodIcons, out int totalDrawnIcons)
static int DrawPageIcons(int yPos)
static SpriteBatch spriteBatch
static void LockCraftingForThisCraftClickDuration()
static bool bannerMouseOver
static bool inventorySortMouseOver
static bool[] tileContainer
AchievementAdvisor _achievementAdvisor
static void DrawEmoteBubblesButton(int pivotTopLeftX, int pivotTopLeftY)
static CreativeUI CreativeMenu
static void SetNPCShopIndex(int index)
static void HoverOverCraftingItemButton(int recipeIndex)
static bool mouseLeftRelease
static void DrawTrashItemSlot(int pivotTopLeftX, int pivotTopLeftY)
static void DrawBestiaryIcon(int pivotTopLeftX, int pivotTopLeftY)
static Microsoft.Xna.Framework.Color inventoryBack
static byte mouseTextColor
static int numAvailableRecipes
static float inventoryScale
static bool InReforgeMenu
static void DrawDefenseCounter(int inventoryX, int inventoryY)
static bool _settingsButtonIsPushedToSide
static int[] availableRecipe
static bool allChestStackHover
static bool mouseRightRelease
static string GetBuffTooltip(Player player, int buffType)
static void DrawPVPIcons()
static bool InGuideCraftMenu
static bool recFastScroll
static string hoverItemName
static int DrawBuffIcon(int drawBuffText, int buffSlotOnPlayer, int x, int y)
static bool CaptureModeDisabled
static void DrawLoadoutButtons(int inventoryTop, bool demonHeartSlotAvailable, bool masterModeSlotAvailable)
void DrawHotbarLockIcon(int pivotTopLeftX, int pivotTopLeftY, bool pushSideToolsUp)
static bool playerInventory
static void SetRecipeMaterialDisplayName(int i)
static float[] availableRecipeY
static bool ShouldPVPDraw
static Player LocalPlayer
static bool mapFullscreen
void MouseText(string cursorText, int rare=0, byte diff=0, int hackedMouseX=-1, int hackedMouseY=-1, int hackedScreenWidth=-1, int hackedScreenHeight=-1, int pushWidthX=0)
static float reforgeScale
static bool _cannotDrawAccessoriesHorizontally
void DrawOneAchievement(SpriteBatch spriteBatch, Vector2 position, bool large)
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
static void Draw(SpriteBatch spritebatch)
static void ChangePage(int PageID)
static void SetPosition(int ID, Vector2 Position)
static void Draw(SpriteBatch spriteBatch, ref Item inv, int context, Vector2 position, Color lightColor=default(Color))
static void OverrideHover(ref Item inv, int context=0)
static void DrawRadialDpad(SpriteBatch sb, Vector2 position)
static void DrawSavings(SpriteBatch sb, float shopx, float shopy, bool horizontal=false)
static void RightClick(ref Item inv, int context=0)
static void LeftClick(ref Item inv, int context=0)
static void MouseHover(int context=0)
static void Handle(ref Item inv, int context=0)
static void SortInventory()