Ejemplo n.º 1
0
 private void HeaderNavigationController_RebuildHeaders(On.RoR2.UI.HeaderNavigationController.orig_RebuildHeaders orig, HeaderNavigationController self)
 {
     if (!self.headers.Any(p => p.headerName == "Button, custom"))
     {
         //if (self.headers.Any(p => p.headerName == "Button, Gameplay"))
         //{
         makeconfig(self);
         //}
     }
     orig(self);
 }
Ejemplo n.º 2
0
        private void GenerateNewHeader(On.RoR2.UI.HeaderNavigationController.orig_RebuildHeaders orig, HeaderNavigationController self)
        {
            orig(self);

            if (!self.headers.Any(p => p.headerName == "Button, custom"))
            {
                if (self.headers.Any(p => p.headerName == "Gameplay"))
                {
                    MakeHeader(self);
                }
            }
        }
Ejemplo n.º 3
0
        internal static void GenerateNewHeader(On.RoR2.UI.HeaderNavigationController.orig_RebuildHeaders orig, HeaderNavigationController self)
        {
            //should prevent duplicates
            if (!self.headers.Any(p => p.headerName == "Button, Custom"))
            {
                //only in the options section
                if (self.headers.Any(p => p.headerName == "Gameplay"))
                {
                    MakeModCategory(self);
                }
            }

            orig(self);
        }