Esempio n. 1
0
 public static void JustCheckingDifficulty(UiCellphoneAppNew __instance)
 {
     if (HP2SR.lastChosenCategory < RunTimer.categories.Length)
     {
         HP2SR.ShowTooltip(RunTimer.GetAll(HP2SR.lastChosenCategory, HP2SR.lastChosenDifficulty), 3000, 0, 50);
     }
 }
Esempio n. 2
0
        public static void DefaultCategory(UiCellphoneAppNew __instance, ref int ____newSaveFileIndex, ref UiAppFileIconSlot ____selectedFileIconSlot)
        {
            if (HP2SR.cheatsEnabled || HP2SR.AllPairsEnabled.Value)
            {
                return;
            }

            //default girl head to the last chosen category, show their details on the mouse
            if (____selectedFileIconSlot != null)
            {
                ____selectedFileIconSlot.button.Enable();
            }
            ____selectedFileIconSlot = __instance.fileIconSlots[HP2SR.lastChosenCategory];
            ____selectedFileIconSlot.button.Disable();
            HP2SR.ShowTooltip(RunTimer.GetAll(HP2SR.lastChosenCategory, HP2SR.lastChosenDifficulty), 3000, 0, 50);

            __instance.Refresh();
        }
Esempio n. 3
0
        public static bool CategoryNameDisplay(UiAppFileIconSlot __instance, ref UiTooltipSimple ____tooltip)
        {
            if (HP2SR.cheatsEnabled || HP2SR.AllPairsEnabled.Value || !Game.Manager.Ui.currentCanvas.titleCanvas)
            {
                return(true);
            }
            int cat  = __instance.girlDefinition.id - 1;
            int diff = HP2SR.lastChosenDifficulty;

            if (cat < RunTimer.categories.Length)
            {
                HP2SR.ShowTooltip(RunTimer.GetAll(cat, diff), 3000, 0, 50);
                return(false);
            }
            else
            {
                HP2SR.tooltip = null;
                HP2SR.tooltipTimer.Reset();
                return(true);
            }
        }