예제 #1
0
 // Start is called before the first frame update
 private void Start()
 {
     // PixelButton
     pixelToggle = UgreTools.GetPlayerPrefBool("pixelToggle");
     if (pixelCameraButton != null && pixelPerfectCamera != null)
     {
         pixelCameraButton.onClick.AddListener(TogglePixelCamera);
         pixelText = pixelText != null ? pixelText : pixelCameraButton.GetComponentInChildren <TextMeshProUGUI>();
         SetPixelText();
     }
     if (impButton != null)
     {
         impButton.onClick.AddListener(ToggleImp);
         impText = impText != null ? impText : impButton.GetComponentInChildren <TextMeshProUGUI>();
         SetImpText();
     }
     if (inchBtn != null)
     {
         inchBtn.onClick.AddListener(ToggleInch);
         inchText = inchText != null ? inchText : inchBtn.GetComponentInChildren <TextMeshProUGUI>();
         SetInchText();
     }
     if (poundBtn != null)
     {
         poundBtn.onClick.AddListener(TooglePound);
         poundText = poundText != null ? poundText : poundBtn.GetComponentInChildren <TextMeshProUGUI>();
         SetPoundText();
     }
     if (gallonBtn != null)
     {
         gallonBtn.onClick.AddListener(ToogleGallon);
         gallonText = gallonText != null ? gallonText : gallonBtn.GetComponentInChildren <TextMeshProUGUI>();
         SetGallonText();
     }
     if (currEventFontSize != null)
     {
         currEventFontSize.text = Settings.EventLogFontSize.ToString();
     }
     if (eventFontUp != null && eventFontDown != null)
     {
         eventFontUp.onClick.AddListener(EventFontSizeUp);
         eventFontDown.onClick.AddListener(EventFontSizeDown);
     }
     setGenders.onClick.AddListener(OpenSetGenders);
     if (toggleSkippedMenu != null && skippedMenu != null)
     {
         toggleSkippedMenu.onClick.AddListener(() => skippedMenu.SetActive(!skippedMenu.activeSelf));
     }
 }
예제 #2
0
 public static void Load()
 {
     // Units
     Imperial = UgreTools.GetPlayerPrefBool(impSaveName);
     Inch     = UgreTools.GetPlayerPrefBool(inchSaveName);
     Pound    = UgreTools.GetPlayerPrefBool(poundSaveName);
     Gallon   = UgreTools.GetPlayerPrefBool(gallonSaveName);
     // Genders
     Male     = PlayerPrefs.GetString("Male", Male);
     Female   = PlayerPrefs.GetString("Female", Female);
     Herm     = PlayerPrefs.GetString("Herm", Herm);
     Cuntboy  = PlayerPrefs.GetString("Cuntboy", Cuntboy);
     Dickgirl = PlayerPrefs.GetString("Dickgirl", Dickgirl);
     Doll     = PlayerPrefs.GetString("Doll", Doll);
     // FontSizes
     EventLogFontSize  = UgreTools.GetFloatPref(EventLogFontSize, eventLogFontSizeSaveName);
     CombatLogFontSize = UgreTools.GetFloatPref(CombatLogFontSize, combatLogFontSizeSaveName);
     SexlogFontSize    = UgreTools.GetFloatPref(SexlogFontSize, sexlogFontSizeSaveName);
     // Misc
     //  Vore = UgreTools.GetPlayerPrefBool("Vore");
     Scat = UgreTools.GetPlayerPrefBool("Scat");
 }