Пример #1
0
        protected override OptionResult Run(GameHitParameters <TTarget> parameters)
        {
            string text = StringInputDialog.Show(Name, GetPrompt(), this.DisplayValue);

            if (string.IsNullOrEmpty(text))
            {
                return(OptionResult.Failure);
            }

            uint value = 0;

            try
            {
                value = uint.Parse("FF" + text, System.Globalization.NumberStyles.HexNumber);
            }
            catch
            { }

            if (value == 0)
            {
                SimpleMessageDialog.Show(Name, Common.Localize("Hex:Error"));
                return(OptionResult.Failure);
            }

            Value = Validate(value);

            Tagger.InitTags(false);

            Common.Notify(ToString());
            return(OptionResult.SuccessRetain);
        }
Пример #2
0
        protected override OptionResult Run(GameHitParameters <TTarget> parameters)
        {
            Value = Value;

            Tagger.InitTags(false);

            Common.Notify(ToString());

            FilterHelper.FlushCache(mName);

            if (!FilterHelper.FilterHasMatches(mName))
            {
                Common.Notify(Common.Localize("Filter:NoMatches"));
            }

            return(OptionResult.SuccessClose);
        }
Пример #3
0
        protected override OptionResult Run(GameHitParameters <TTarget> parameters)
        {
            Value = Value;

            Tagger.Settings.mColorByJobPerformance         = false;
            Tagger.Settings.mColorTagsByAge                = false;
            Tagger.Settings.mColorTagsByRelationship       = false;
            Tagger.Settings.mColorTagsByRelationshipStatus = false;
            Tagger.Settings.mColorTagsBySimType            = false;
            Tagger.Settings.mColorByCash = false;
            Tagger.Settings.mColorByMood = false;

            Tagger.InitTags(false);

            Common.Notify(ToString());
            return(OptionResult.SuccessClose);
        }
Пример #4
0
        protected override void PrivatePerform(IEnumerable <ListedSettingOption <string, GameObject> .Item> results)
        {
            base.PrivatePerform(results);

            Tagger.InitTags(false);
        }