Exemplo n.º 1
0
        private static void Deactivate()
        {
            if (!Active)
            {
                return;
            }
            Active = false;

            int            c = 0, n = 0;
            uGUI_CraftNode menuRoot = GUIHandler.CurrentMenu.icons;

            ForeachChildRecursively(menuRoot, x => ReplaceNodeTech(x));
            menuRoot?.UpdateRecursively(ref c, ref n);
            ForeachChildRecursively(menuRoot, x => GUIFormatter.RevertNodeColorAnimated(x));
        }
Exemplo n.º 2
0
        private static void Deactivate()
        {
            if (!Active)
            {
                return;
            }
            Active = false;

            int c = 0, n = 0;
            var menuRoot = GUIHandler.CurrentMenu.tree;

            if (menuRoot != null)
            {
                ForeachChildRecursively(menuRoot, x => ReplaceNodeTech(x));
                GUIHandler.CurrentMenu.UpdateNotifications(menuRoot, ref c, ref n);
                ForeachChildRecursively(menuRoot, x => GUIFormatter.RevertNodeColorAnimated(x));
            }
        }
Exemplo n.º 3
0
        private static void Deactivate()
        {
            if (!Active)
            {
                return;
            }
            Active = false;

            int c = 0, n = 0;
            var menuRoot = uGUI_CraftingMenuReflector.GetIcons(GUIHandler.CurrentMenu);

            replacedNodeTechs.ForEach(x => x.Key.techType0 = x.Value);
            replacedNodeTechs.Clear();
            if (menuRoot != null)
            {
                menuRoot.UpdateRecursively(ref c, ref n);
            }
            ForeachChildRecursively(menuRoot, x => GUIFormatter.RevertNodeColorAnimated(x));
        }