private void setVisualizeHandlers()
 {
     vHandlers = new List <IVisualizeHandler>();
     vHandlers.Add(new Components.CapitalismMoneyDialPatch.MoneyDialVisualizeHandler());
     vHandlerMain = new MainVisualizeHandler();
     VisualizeMod.addHandler(vHandlerMain);
 }
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;
        }