Exemple #1
0
        public static FinishNowScreen ShowModalPerk(string perkId, OnScreenModalResult onModalResult, object modalResultCookie, int crystalCost, string title, string message, bool alwaysOnTop)
        {
            FinishNowScreen finishNowScreen = FinishNowScreen.CreateFinishNowPerkScreen(perkId, onModalResult, modalResultCookie);

            finishNowScreen.crystals        = crystalCost;
            finishNowScreen.titleOverride   = title;
            finishNowScreen.messageOverride = message;
            finishNowScreen.IsAlwaysOnTop   = alwaysOnTop;
            Service.ScreenController.AddScreen(finishNowScreen);
            return(finishNowScreen);
        }
Exemple #2
0
 public unsafe static long $Invoke1(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(FinishNowScreen.CreateFinishNowPerkScreen(Marshal.PtrToStringUni(*(IntPtr *)args), (OnScreenModalResult)GCHandledObjects.GCHandleToObject(args[1]), GCHandledObjects.GCHandleToObject(args[2]))));
 }