Esempio n. 1
0
        public override int CompareTo(TitleObject other)
        {
            int result = base.CompareTo(other);

            if (this.CompareNull(other as Title, ref result))
            {
                return(result);
            }

            return(Insensitive.Compare(ToString(), other.ToString()));
        }
Esempio n. 2
0
        public ScrollConfirmGump(
            PlayerMobile user,
            Gump parent                  = null,
            TitleObject value            = null,
            Action <GumpButton> onAccept = null,
            Action <GumpButton> onCancel = null)
            : base(user, parent, null, 100, null, null, 23001, onAccept, onCancel)
        {
            _Value = value;

            CanMove = true;
            Modal   = false;

            Title = String.Empty;
        }
Esempio n. 3
0
        public override int CompareTo(TitleObject other)
        {
            int result = base.CompareTo(other);

            if (this.CompareNull(other as TitleHue, ref result))
            {
                return(result);
            }

            var hue = (TitleHue)other;

            if (Hue > hue.Hue)
            {
                --result;
            }
            else if (Hue > hue.Hue)
            {
                ++result;
            }

            return(result);
        }