예제 #1
0
파일: Main.cs 프로젝트: MrPurple6411/Agony
        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));
        }
예제 #2
0
파일: Main.cs 프로젝트: MrPurple6411/Agony
        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));
            }
        }
예제 #3
0
파일: Main.cs 프로젝트: snoopybeegle/Agony
        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));
        }