Ejemplo n.º 1
0
        internal AutotextTrigger(ActionTriggers triggers, Action <AutotextTriggerArgs> action, string text, TAFlags flags, TAPostfix postfixType, string postfixChars) : base(triggers, action, true)
        {
            this.text         = text;
            this.flags        = flags;
            this.postfixType  = postfixType;
            this.postfixChars = postfixChars;

            if (flags == 0 && postfixType == 0 && postfixChars == null)
            {
                _paramsString = text;
            }
            else
            {
                using (new Util.StringBuilder_(out var b)) {
                    b.Append(text);
                    if (flags != 0)
                    {
                        b.Append("  (").Append(flags.ToString()).Append(')');
                    }
                    if (postfixType != 0)
                    {
                        b.Append("  postfixType=").Append(postfixType.ToString());
                    }
                    if (postfixChars != null)
                    {
                        b.Append("  postfixChars=").Append(postfixChars);
                    }
                    _paramsString = b.ToString();
                }
            }
            //AOutput.Write(this);
        }
Ejemplo n.º 2
0
 internal AutotextTrigger(ActionTriggers triggers, Action <AutotextTriggerArgs> action, string text, TAFlags flags, TAPostfix postfixType, string postfixChars, (string, int) source)