示例#1
0
 private static void Postfix(uGUI_CraftingMenu __instance, uGUI_CraftingMenu.Node node)
 {
     if (!Active)
     {
         return;
     }
     if (__instance != CurrentMenu)
     {
         return;
     }
     GUIFormatter.SetNodeChroma(node, true);
 }
示例#2
0
                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);
                    }
                }
示例#3
0
                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);
                    }
                }