Beispiel #1
0
        public override void Entry(IModHelper help)
        {
            helper = help;
            config = Helper.ReadConfig <PConfig>();
            string customContentFolder = Path.Combine(helper.DirectoryPath, "Portraits");

            displayAlpha = 0;

            if (!Directory.Exists(customContentFolder))
            {
                Directory.CreateDirectory(customContentFolder);
            }

            SaveEvents.AfterLoad += SaveEvents_AfterLoad;
        }
Beispiel #2
0
        public override void Entry(IModHelper help)
        {
            helper   = help;
            instance = this;
            config   = Helper.ReadConfig <PConfig>();
            string customContentFolder = Path.Combine(helper.DirectoryPath, "Portraits");

            displayAlpha = 0;
            VisualizeMod.addHandler(vHandler);

            if (!Directory.Exists(customContentFolder))
            {
                Directory.CreateDirectory(customContentFolder);
            }

            SaveEvents.AfterLoad          += SaveEvents_AfterLoad;
            SaveEvents.AfterReturnToTitle += SaveEvents_AfterReturnToTitle;
        }
        public override void Entry(IModHelper help)
        {
            helper   = help;
            instance = this;
            config   = Helper.ReadConfig <PConfig>();
            string customContentFolder = Path.Combine(helper.DirectoryPath, "Portraits");

            displayAlpha = 0;

            if (!Directory.Exists(customContentFolder))
            {
                Directory.CreateDirectory(customContentFolder);
            }

            help.Events.GameLoop.SaveLoaded      += OnSaveLoaded;
            help.Events.GameLoop.ReturnedToTitle += OnReturnedToTitle;
            harmonyFix();
        }
        public override void Entry(IModHelper help)
        {
            helper   = help;
            instance = this;
            config   = Helper.ReadConfig <PConfig>();
            string customContentFolder = Path.Combine(helper.DirectoryPath, "Portraits");

            displayAlpha = 0;

            if (!Directory.Exists(customContentFolder))
            {
                Directory.CreateDirectory(customContentFolder);
            }

            help.Events.GameLoop.SaveLoaded      += OnSaveLoaded;
            help.Events.GameLoop.ReturnedToTitle += OnReturnedToTitle;
            harmonyFix();

            Helper.ConsoleCommands.Add("pmenu", "", (s, p) =>
            {
                MenuLoader.OpenMenu(Game1.activeClickableMenu);
            });
        }