Exemple #1
0
 public override void ShutDownProcess()
 {
     //foreach (UIelement element in menuTab.items)
     //{
     //foreach (MenuObject obj in element.subObjects)
     //{
     //this.pages[0].subObjects.Remove(obj);
     //}
     //this.pages[0].Container.RemoveChild(element.myContainer);
     //element.myContainer.RemoveFromContainer();
     //}
     KillTabElements();
     OptionScript.KillTabs();
     base.ShutDownProcess();
     this.darkSprite.RemoveFromContainer();
     currentTab = null;
 }
Exemple #2
0
        public static void Initialize()
        {
            directory = new DirectoryInfo(string.Concat(new object[] {
                Custom.RootFolderDirectory(),
                "ModConfigs",
                Path.DirectorySeparatorChar
            }));
            if (!directory.Exists)
            {
                directory.Create();
            }

            On.Menu.OptionsMenu.UpdateInfoText  += new On.Menu.OptionsMenu.hook_UpdateInfoText(OptionsMenuPatch.UpdateInfoTextPatch);
            On.Menu.OptionsMenu.Update          += new On.Menu.OptionsMenu.hook_Update(OptionsMenuPatch.UpdatePatch);
            On.Menu.OptionsMenu.Singal          += new On.Menu.OptionsMenu.hook_Singal(OptionsMenuPatch.SingalPatch);
            On.Menu.OptionsMenu.ShutDownProcess += new On.Menu.OptionsMenu.hook_ShutDownProcess(OptionsMenuPatch.ShutDownProcessPatch);
            ProgressData.SubPatch();

            go     = new GameObject("OptionController");
            script = go.AddComponent <OptionScript>();
        }