public static void PaintNodeColorAnimated(uGUI_CraftNode node) { #if SUBNAUTICA var frontColor = RecyclingData.IsBlackListed(node.techType0) ? Color.black : GUIFormatter.frontColor; #elif BELOWZERO var frontColor = RecyclingData.IsBlackListed(node.techType) ? Color.black : GUIFormatter.frontColor; #endif AnimateIconColor(node.icon, frontColor, backColor); }
private static void Postfix(uGUI_CraftingMenu __instance, ref bool __result, uGUI_CraftNode sender) { if (!Active) { return; } if (CurrentMenu != __instance) { return; } if (sender.action != TreeAction.Craft) { return; } __result &= !RecyclingData.IsBlackListed(sender.techType0); }
public static void PaintNodeColorAnimated(uGUI_CraftNode node) { var frontColor = RecyclingData.IsBlackListed(node.techType0) ? Color.black : GUIFormatter.frontColor; AnimateIconColor(node.icon, frontColor, backColor); }