|
@@ -28,13 +28,19 @@ namespace RecipeMenuCore.Patches
|
|
|
__instance.txtRecipeName[0].text = string.Empty + __instance.GetRecipeName2(___curRecipePage);
|
|
__instance.txtRecipeName[0].text = string.Empty + __instance.GetRecipeName2(___curRecipePage);
|
|
|
__instance.txtRecipeUnlocked[0].text = "Page " + (___curRecipePage + 1) + "/" + (6 + Core.pageUltimateForgeInfoList.Count);
|
|
__instance.txtRecipeUnlocked[0].text = "Page " + (___curRecipePage + 1) + "/" + (6 + Core.pageUltimateForgeInfoList.Count);
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (___craftType == MenuRegistry.Singleton["Gadget Core:Crafter Menu"].GetID())
|
|
|
|
|
+ {
|
|
|
|
|
+ __instance.txtRecipeName[0].text = string.Empty + __instance.GetRecipeName2(___curRecipePage);
|
|
|
|
|
+ __instance.txtRecipeUnlocked[0].text = "Page " + (___curRecipePage + 1) + "/" + (Core.pageUniversalCrafterInfoList.Count);
|
|
|
|
|
+ }
|
|
|
__instance.txtRecipeUnlocked[0].gameObject.GetComponent<Animation>().Play();
|
|
__instance.txtRecipeUnlocked[0].gameObject.GetComponent<Animation>().Play();
|
|
|
__instance.txtRecipeName[0].gameObject.GetComponent<Animation>().Play();
|
|
__instance.txtRecipeName[0].gameObject.GetComponent<Animation>().Play();
|
|
|
__instance.txtRecipeName[1].text = __instance.txtRecipeName[0].text;
|
|
__instance.txtRecipeName[1].text = __instance.txtRecipeName[0].text;
|
|
|
__instance.txtRecipeUnlocked[1].text = __instance.txtRecipeUnlocked[0].text;
|
|
__instance.txtRecipeUnlocked[1].text = __instance.txtRecipeUnlocked[0].text;
|
|
|
if ((___craftType != 0 || (___curRecipePage <= 5 && Core.pageGearForgeInfoListVanilla[___curRecipePage] == null))
|
|
if ((___craftType != 0 || (___curRecipePage <= 5 && Core.pageGearForgeInfoListVanilla[___curRecipePage] == null))
|
|
|
&& (___craftType != 1 || (___curRecipePage <= 1 && Core.pageAlchemyStationInfoListVanilla[___curRecipePage] == null))
|
|
&& (___craftType != 1 || (___curRecipePage <= 1 && Core.pageAlchemyStationInfoListVanilla[___curRecipePage] == null))
|
|
|
- && (___craftType != 2 || (___curRecipePage <= 5 && Core.pageUltimateForgeInfoListVanilla[___curRecipePage] == null)))
|
|
|
|
|
|
|
+ && (___craftType != 2 || (___curRecipePage <= 5 && Core.pageUltimateForgeInfoListVanilla[___curRecipePage] == null))
|
|
|
|
|
+ && (___craftType != MenuRegistry.Singleton["Gadget Core:Crafter Menu"].GetID()))
|
|
|
{
|
|
{
|
|
|
__instance.menuRecipe.GetComponent<Renderer>().material = (Material)Resources.Load(string.Concat(new object[] { "mat/r", ___curRecipePage, "t", ___craftType }));
|
|
__instance.menuRecipe.GetComponent<Renderer>().material = (Material)Resources.Load(string.Concat(new object[] { "mat/r", ___curRecipePage, "t", ___craftType }));
|
|
|
}
|
|
}
|
|
@@ -61,6 +67,13 @@ namespace RecipeMenuCore.Patches
|
|
|
__instance.txtRecipeName[1].text = __instance.txtRecipeName[0].text;
|
|
__instance.txtRecipeName[1].text = __instance.txtRecipeName[0].text;
|
|
|
__instance.menuRecipe.GetComponent<Renderer>().material = page.Mat;
|
|
__instance.menuRecipe.GetComponent<Renderer>().material = page.Mat;
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (___craftType == MenuRegistry.Singleton["Gadget Core:Crafter Menu"].GetID())
|
|
|
|
|
+ {
|
|
|
|
|
+ var page = Core.pageUniversalCrafterInfoList[___curRecipePage];
|
|
|
|
|
+ __instance.txtRecipeName[0].text = page.Title;
|
|
|
|
|
+ __instance.txtRecipeName[1].text = __instance.txtRecipeName[0].text;
|
|
|
|
|
+ __instance.menuRecipe.GetComponent<Renderer>().material = page.Mat;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
__instance.RefreshRecipeUnlock();
|
|
__instance.RefreshRecipeUnlock();
|
|
|
return false;
|
|
return false;
|