Exemple #1
0
        public static bool Load(UnityModManager.ModEntry modEntry)
        {
            var harmony = HarmonyInstance.Create(modEntry.Info.Id);

            harmony.PatchAll();
            mod = modEntry;

            ModMenu.AddButton(harmony, "Body Motions...", BtnBodyMotions_Action);

            BodyTellManager.OnUpdate += HandDotUpdateHook.UpdateTests;

            return(true);
        }
Exemple #2
0
        public static bool Load(UnityModManager.ModEntry modEntry)
        {
            var harmony = HarmonyInstance.Create(modEntry.Info.Id);

            harmony.PatchAll();
            mod = modEntry;

            config = new ConfigFile(mod);
            config.Load();

            ModMenu.AddButton(harmony, "GUI Appearance...", BtnCustomize_Action);

            return(true);
        }
Exemple #3
0
        public static bool Load(UnityModManager.ModEntry modEntry)
        {
            harmony = HarmonyInstance.Create(modEntry.Info.Id);
            harmony.PatchAll();
            mod    = modEntry;
            config = new ConfigFile(mod);
            config.Load();

            ModMenu.AddButton(harmony, "Saved Body Parts...", SavedBodyParts_Action);

            pointMenu = new Menu("Saved Body Parts");
            pointMenu.SetBackButton(DialogType.OwnProfile);
            pointMenu.TwoColumns   = true;
            pointMenu.DialogClose += PointMenu_DialogClose;

            MenuButton mbtn;

            mbtn         = new MenuButton("HeadTop", "(XA0) Hat");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("Head", "(XA1) Head");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("ArmLeft", "(XA2) Left Arm");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("TorsoUpper", "(XA3) Upper Torso");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("ArmRight", "(XA4) Right Arm");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("TorsoLower", "(XA5) Lower Torso");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("LegLeft", "(XA6,8) Left Leg");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);
            mbtn         = new MenuButton("LegRight", "(XA7,9) Right Leg");
            mbtn.Action += Mbtn_Action;
            pointMenu.Add(mbtn);

            regex      = new Regex("^xa([0-9]) ?(.*)$");
            regexForIn = new Regex(" in ([0-9]*.?[0-9]*)s?$");
            BodyTellManager.ToldByBody += BodyTellManager_ToldByBody;
            return(true);
        }