コード例 #1
0
 public static void MakeGirlHeadClickable(UiCellphoneAppProfile __instance, UiTooltipSimple ____tooltip)
 {
     //enable the Girl Profile head to choose pairs, but only when cheating / using all pairs mod
     if (HP2SR.cheatsEnabled || HP2SR.AllPairsEnabled.Value)
     {
         click = (Game.Session.gameCanvas.cellphone.appPrefabs.FirstOrDefault((UiCellphoneApp a) => a is UiCellphoneAppFinder) as UiCellphoneAppFinder).sfxProfilePressed;
         woosh = (Game.Session.gameCanvas.cellphone.appPrefabs.FirstOrDefault((UiCellphoneApp a) => a is UiCellphoneAppFinder) as UiCellphoneAppFinder).sfxLocationSelect;
         __instance.girlHeadButton.Enable();
         __instance.girlHeadButton.ButtonPressedEvent += BasePatches.OnGirlHeadPressed;
         tooltip = ____tooltip;
     }
 }
コード例 #2
0
 public static bool ChangeTooltipText(UiCellphoneAppProfile __instance, UiTooltipSimple ____tooltip, PlayerFileGirl ____playerFileGirl)
 {
     //enable the Girl Profile head to choose pairs, but only when cheating / using all pairs mod
     if (HP2SR.cheatsEnabled || HP2SR.AllPairsEnabled.Value)
     {
         string text = ____playerFileGirl.girlDefinition.girlName + "'s Profile";
         text = text + "\nAge: " + ____playerFileGirl.girlDefinition.girlAge.ToString();
         text = text + "\nClick to visit any\nof this girl's pairs!";
         ____tooltip.Populate(text, 0, 1f, 1920f);
         ____tooltip.Show(Vector2.up * 50f, false);
         return(false);
     }
     return(true);
 }