예제 #1
0
        public bool SearchTriggers_PEGI()
        {
            bool changed = false;

            List <int>     indxs;
            List <Trigger> lt = triggers.GetAllObjs(out indxs);

            int showMax = 20;

            for (int i = 0; i < lt.Count; i++)
            {
                Trigger t = lt[i];

                if (((Trigger.searchField.Length < 1) || Regex.IsMatch(t.name, Trigger.searchField, RegexOptions.IgnoreCase)))
                {
                    showMax--;

                    Trigger.searchMatchesFound++;

                    t.PEGI();

                    if (t._usage.HasMoreTriggerOptions())
                    {
                        if (Trigger.editedTrigger != t)
                        {
                            if (icon.Edit.Click(20))
                            {
                                Trigger.editedTrigger = t;
                            }
                        }
                        else if (icon.Close.Click(20))
                        {
                            Trigger.editedTrigger = null;
                        }
                    }

                    changed |= t._usage.Inspect(t);

                    pegi.newLine();

                    if (t._usage.HasMoreTriggerOptions())
                    {
                        pegi.Space();
                        pegi.newLine();
                    }
                }
                if (showMax < 0)
                {
                    break;
                }
            }

            return(changed);
        }
예제 #2
0
        public void RemoveAllTags()
        {
            List <int>           groupInds;
            List <CountlessBool> lsts = boolTags.GetAllObjs(out groupInds);

            //Stories.all.GetAllObjs(out inds);

            for (int i = 0; i < groupInds.Count; i++)
            {
                CountlessBool vb  = lsts[i];
                List <int>    tag = vb.GetItAll();

                foreach (int t in tag)
                {
                    SetTagBool(groupInds[i], t, false);
                }
            }

            boolTags = new UnnullableSTD <CountlessBool>();
        }