public static void OnWorldLoadFinishedHandler(object sender, EventArgs e)
 {
     try
     {
         if (GameUtils.IsInstalled(ProductVersion.EP7) || GameUtils.IsInstalled(ProductVersion.EP3))
         {
             Instantiator.AddInteractionsToCityHall();
             if (Instantiator.pInteractionsActive)
             {
                 Instantiator.AddAllInteractionsForSims();
                 Instantiator.AddAllInteractionsForUrnstones();
                 Instantiator.AddAllInteractionsForHospitals();
             }
             if (Instantiator.pBloodActive)
             {
                 VTBlood.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pBiteMarkActive)
             {
                 VTBiteMark.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pThirstActive)
             {
                 VTThirst.OnWorldLoadFinishedHandler();
             }
             if (Instantiator.pConversionActive)
             {
                 VTConversion.OnWorldLoadFinishedHandler();
             }
             if (!Instantiator.pLoadNotificationDeActived)
             {
                 StyledNotification.Show(new StyledNotification.Format("Loaded Vampire Tweaker correctly without any errors", StyledNotification.NotificationStyle.kSystemMessage));
                 SimpleMessageDialog.Show("Vampire Tweaker", "Every functionality of the mod is deactivated, please, consider to go to City Hall>Vampire Tweaker... to customize the mod with a easy method and disable this message and the notification to load on start. Anything won´t work if you don´t active in the City Hall the function.");
                 if (!GameUtils.IsInstalled(ProductVersion.EP7))
                 {
                     StyledNotification.Show(new StyledNotification.Format("We have detected you haven´t installed Supernatural EP. Some functionalities of the mod requires this expansion, but it won´t generate any conflicts. The functionalities will be activated the first time you install Supernatural EP", StyledNotification.NotificationStyle.kSystemMessage));
                 }
             }
             if (!Instantiator.pBuffActive)
             {
                 sBuffSparkleDisable = EventTracker.AddListener(EventTypeId.kGotBuff, new ProcessEventDelegate(EnableSparkle.OnGotBuff));
             }
         }
         if (!GameUtils.IsInstalled(ProductVersion.EP7) || !GameUtils.IsInstalled(ProductVersion.EP3))
         {
             SimpleMessageDialog.Show("Vampire Tweaker", "It seems you haven´t installed any expansion of Vampires (Late Night or Supernatural). The mod is deactivated and any function won´t work. Upgrade the Expansion Pack or install it. If you won´t install any expansion, you should remove this mod, it isn´t useful for you without the EPs.");
         }
     }
     catch (Exception exception)
     {
         Instantiator.Exception(exception);
         StyledNotification.Show(new StyledNotification.Format("Failed to load Vampire Tweaker things. Error generated by fer456.VampireTweaker.Interactions.dll into VampireTweaker.ModInitiatorAndHandler.Instantiator || See info below and in Documents_Electronic Arts_The Sims 3" + exception, StyledNotification.NotificationStyle.kDebugAlert));
     }
 }
Example #2
0
 protected override bool Run()
 {
     Instantiator.pBiteMarkActive = !Instantiator.pBiteMarkActive;
     if (Instantiator.pBiteMarkActive)
     {
         VTBiteMark.OnWorldLoadFinishedHandler();
         SimpleMessageDialog.Show("Vampire Tweaker - Bite Mark Effect", "Bite Mark is enabled succesfully.");
     }
     else
     {
         SimpleMessageDialog.Show("Vampire Tweaker - Bite Mark Effect", "Disabling bite mark, please be patient, it will take a while...");
         VTBiteMark.RemoveMakeupFromToggle();
     }
     return(true);
 }
Example #3
0
 public static int CleanMakeup()
 {
     try
     {
         VTBlood.cleanVampFaces(true);
         VTThirst.cleanVampFaces(true);
         VTBiteMark.cleanHumanNecks(true);
         VTConversion.cleanBodys(true);
     }
     catch (Exception exception)
     {
         SimpleMessageDialog.Show("Vampire Tweaker - Uninstalling Wizard", "An error is ocurred when uninstalling. Check notification bar");
         StyledNotification.Show(new StyledNotification.Format("Failed the uninstall process in the removal of the makeup. Retry the uninstall. If you get the same error, run the command VampireTweaker_UninstallHelp to get more information \n" + exception, StyledNotification.NotificationStyle.kDebugAlert));
     }
     return(1);
 }