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

◆ DrawGuideCraftText_Old()

static void Terraria.Main.DrawGuideCraftText_Old ( int adjY,
Color craftingTipColor,
out int inventoryX,
out int inventoryY )
inlinestaticprivate

Definition at line 54612 of file Main.cs.

54613 {
54614 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
54615 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
54616 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
54617 //IL_008b: Unknown result type (might be due to invalid IL or missing references)
54618 //IL_0484: Unknown result type (might be due to invalid IL or missing references)
54619 //IL_049d: Unknown result type (might be due to invalid IL or missing references)
54620 //IL_04a9: Unknown result type (might be due to invalid IL or missing references)
54621 //IL_04af: Unknown result type (might be due to invalid IL or missing references)
54622 //IL_01f1: Unknown result type (might be due to invalid IL or missing references)
54623 //IL_01f6: Unknown result type (might be due to invalid IL or missing references)
54624 //IL_01fe: Unknown result type (might be due to invalid IL or missing references)
54625 //IL_0204: Unknown result type (might be due to invalid IL or missing references)
54626 //IL_027f: Unknown result type (might be due to invalid IL or missing references)
54627 //IL_0284: Unknown result type (might be due to invalid IL or missing references)
54628 //IL_028c: Unknown result type (might be due to invalid IL or missing references)
54629 //IL_0292: Unknown result type (might be due to invalid IL or missing references)
54630 //IL_02e9: Unknown result type (might be due to invalid IL or missing references)
54631 //IL_02ee: Unknown result type (might be due to invalid IL or missing references)
54632 //IL_02f6: Unknown result type (might be due to invalid IL or missing references)
54633 //IL_02fc: Unknown result type (might be due to invalid IL or missing references)
54634 //IL_0353: Unknown result type (might be due to invalid IL or missing references)
54635 //IL_0358: Unknown result type (might be due to invalid IL or missing references)
54636 //IL_0360: Unknown result type (might be due to invalid IL or missing references)
54637 //IL_0366: Unknown result type (might be due to invalid IL or missing references)
54638 //IL_03bd: Unknown result type (might be due to invalid IL or missing references)
54639 //IL_03c2: Unknown result type (might be due to invalid IL or missing references)
54640 //IL_03ca: Unknown result type (might be due to invalid IL or missing references)
54641 //IL_03d0: Unknown result type (might be due to invalid IL or missing references)
54642 //IL_0427: Unknown result type (might be due to invalid IL or missing references)
54643 //IL_042c: Unknown result type (might be due to invalid IL or missing references)
54644 //IL_0434: Unknown result type (might be due to invalid IL or missing references)
54645 //IL_043a: Unknown result type (might be due to invalid IL or missing references)
54646 //IL_0178: Unknown result type (might be due to invalid IL or missing references)
54647 //IL_017d: Unknown result type (might be due to invalid IL or missing references)
54648 //IL_0185: Unknown result type (might be due to invalid IL or missing references)
54649 //IL_018b: Unknown result type (might be due to invalid IL or missing references)
54650 inventoryX = 73;
54651 inventoryY = 331;
54652 inventoryY += adjY;
54653 int num = 0;
54654 int num4 = 0;
54655 inventoryX += num;
54656 inventoryY += num4;
54657 string text;
54658 if (guideItem.type > 0)
54659 {
54660 text = Lang.inter[21].Value + " " + guideItem.Name;
54661 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[22].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54662 int num5 = focusRecipe;
54663 int num6 = 0;
54664 for (int i = 0; i < recipe[availableRecipe[num5]].requiredTile.Count; i++)
54665 {
54666 int num7 = (i + 1) * 26;
54667 if (recipe[availableRecipe[num5]].requiredTile[i] == -1)
54668 {
54669 if (i == 0 && !recipe[availableRecipe[num5]].needWater && !recipe[availableRecipe[num5]].needHoney && !recipe[availableRecipe[num5]].needLava && !recipe[availableRecipe[num5]].needSnowBiome && !recipe[availableRecipe[num5]].needGraveyardBiome)
54670 {
54671 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[23].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num7)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54672 }
54673 break;
54674 }
54675 num6++;
54676 int num8 = recipe[availableRecipe[num5]].requiredTile[i];
54677 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.GetMapObjectName(MapHelper.TileToLookup(num8, Recipe.GetRequiredTileStyle(num8))), new Vector2((float)inventoryX, (float)(inventoryY + 118 + num7)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54678 }
54679 if (recipe[availableRecipe[num5]].needWater)
54680 {
54681 int num9 = (num6 + 1) * 26;
54682 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[53].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num9)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54683 }
54684 if (recipe[availableRecipe[num5]].needHoney)
54685 {
54686 int num10 = (num6 + 1) * 26;
54687 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[58].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num10)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54688 }
54689 if (recipe[availableRecipe[num5]].needLava)
54690 {
54691 int num11 = (num6 + 1) * 26;
54692 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[56].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num11)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54693 }
54694 if (recipe[availableRecipe[num5]].needSnowBiome)
54695 {
54696 int num2 = (num6 + 1) * 26;
54697 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[123].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num2)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54698 }
54699 if (recipe[availableRecipe[num5]].needGraveyardBiome)
54700 {
54701 int num3 = (num6 + 1) * 26;
54702 spriteBatch.DrawString(FontAssets.MouseText.Value, Lang.inter[124].Value, new Vector2((float)inventoryX, (float)(inventoryY + 118 + num3)), craftingTipColor, 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54703 }
54704 }
54705 else
54706 {
54707 text = Lang.inter[24].Value;
54708 }
54709 inventoryX -= num;
54710 inventoryY -= num4;
54711 spriteBatch.DrawString(FontAssets.MouseText.Value, text, new Vector2((float)(inventoryX + 50), (float)(inventoryY + 12)), new Color((int)mouseTextColor, (int)mouseTextColor, (int)mouseTextColor, (int)mouseTextColor), 0f, default(Vector2), 1f, (SpriteEffects)0, 0f);
54712 }
static Asset< DynamicSpriteFont > MouseText
Definition FontAssets.cs:10
static Recipe[] recipe
Definition Main.cs:1944
static SpriteBatch spriteBatch
Definition Main.cs:1043
static int focusRecipe
Definition Main.cs:1952
static byte mouseTextColor
A value that oscillates between 190 and 255. It is used to drive the slight pulsing color effect seen...
Definition Main.cs:1904
static int[] availableRecipe
Definition Main.cs:1946
static Item guideItem
Definition Main.cs:1928
static int TileToLookup(int tileType, int option)

References Terraria.Main.availableRecipe, Terraria.Graphics.Light.Color, Terraria.Main.focusRecipe, Terraria.Lang.GetMapObjectName(), Terraria.Recipe.GetRequiredTileStyle(), Terraria.Main.guideItem, Terraria.Lang.inter, Terraria.GameContent.FontAssets.MouseText, Terraria.Main.mouseTextColor, Terraria.Main.recipe, Terraria.Main.spriteBatch, and Terraria.Map.MapHelper.TileToLookup().

+ Here is the call graph for this function: