Ejemplo 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()));
        }
Ejemplo 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;
        }
Ejemplo 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);
        }