private void OnToast(ref SeString message, ref ToastOptions options, ref bool isHandled)
        {
            try {
                if (isHandled)
                {
                    return;
                }

                if (Config.Hide)
                {
                    if (Config.ShowInCombat && Service.Condition[ConditionFlag.InCombat])
                    {
                        return;
                    }
                }
                else
                {
                    var messageStr = message.ToString();
                    if (Config.Exceptions.All(x => !messageStr.Contains(x)))
                    {
                        return;
                    }
                }

                isHandled = true;
            } catch (Exception ex) {
                SimpleLog.Error(ex);
            }
        }
Example #2
0
        void HandleChatMessage(XivChatType type, uint senderId, ref SeString sender, ref SeString message, ref bool isHandled)
        {
            if ((ushort)type != 2105)
            {
                return;
            }
            var m = message.ToString();

            if (ArrivedAtVistaMessages.Contains(m))
            {
                AtVista = true;
                WriteLog("Arrived at vista: " + m);
            }
            else if (AwayFromVistaMesssages.Contains(m))
            {
                AtVista = false;
                WriteLog("Away from vista: " + m);
            }
        }