Exemple #1
0
        void PrintMessagePro(string Message, bool NoNiecModText, float TimeOut) // Bypass if (Responder.Instance.TutorialModel.IsTutorialRunning())
        {
            try
            {
                niec_native_func.OutputDebugString("NMPrint: " + Message);

                if (NotificationManager.sNotificationManager == null)
                {
                    return;
                }
                StyledNotification.Format format =
                    (!NoNiecModText) ? new StyledNotification.Format("NiecMod\n" + (Message == "" ? "No Message" : Message ?? "No Message"), StyledNotification.NotificationStyle.kGameMessagePositive)
                    : new StyledNotification.Format((Message == "" ? "No Message" : Message ?? "No Message"), StyledNotification.NotificationStyle.kGameMessagePositive);

                format.mConnectionType = StyledNotification.ConnectionType.kSpeech;
                format.mTNSCategory    =
                    Instantiator.RootIsOpenDGSInstalled ?
                    NotificationManager.TNSCategory.Information
                    : NotificationManager.TNSCategory.Store;


                StyledNotification styledNotification = new StyledNotification(format, TimeOut, null, null, ProductVersion.BaseGame, ProductVersion.BaseGame);
                NFinalizeDeath.StyledNotification__Add(NotificationManager.sNotificationManager, styledNotification, format.mTNSCategory);
            }
            catch
            { }
        }