private static void Postfix(uGUI_CraftingMenu __instance, uGUI_CraftingMenu.Node node) { if (!Active) { return; } if (__instance != CurrentMenu) { return; } GUIFormatter.SetNodeChroma(node, true); }
private static void Postfix(uGUI_CraftNode __instance, bool available) { if (!Active) { return; } if (__instance.view != CurrentMenu) { return; } if (__instance.visible) { var enabled = available && !__instance.IsLockedInHierarchy(); GUIFormatter.SetNodeChroma(__instance, enabled); } }
private static void Postfix(uGUI_CraftNode __instance, bool available) { if (!Active) { return; } if (uGUI_CraftNodeReflector.GetView(__instance) != CurrentMenu) { return; } if (uGUI_CraftNodeReflector.GetVisible(__instance)) { var enabled = available && !uGUI_CraftNodeReflector.IsLockedInHierarchy(__instance); GUIFormatter.SetNodeChroma(__instance, enabled); } }