示例#1
0
        public ValorTitleItemEdit(ValorRewardController mValorRewardController, ValorTitleItem mtitle, ValorItem mVItem, bool addingItem)
            : base(820, 300)
        {
            _mIsAdd          = addingItem;
            _MValorRc        = mValorRewardController;
            _MValorTitleItem = mtitle;
            _mVItem          = mVItem;

            Closable   = true;
            Disposable = false;
            Dragable   = true;
            Resizable  = false;

            AddBackground(0, 0, 500, 450, 2620);
            if (mVItem == null)
            {
                EditTitle();
            }
            else
            {
                EditItem();
            }

            AddButton(350, 400, 4023, 4024, 1, GumpButtonType.Reply, 0);             //ok
            AddButton(430, 400, 4017, 4018, 0, GumpButtonType.Reply, 0);             //cancel
        }
示例#2
0
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            ValorTitleItem t = ValorTitleItem;

            if (ValorRewardController.Instance == null)
            {
                return;
            }
            if (t != null && !ValorRewardController.Instance.GetTitles.Exists(x => x.fTitle == _fTitle) &&
                ValorRewardController.Instance.GetTitles.Exists(x => x.Title == _mTitle))
            {
                LabelTo(from, 1049644, _mTitle);                 // [~1_stuff~]
            }
            else if (t != null && ValorRewardController.Instance.GetTitles.Exists(x => x.fTitle == _fTitle) &&
                     ValorRewardController.Instance.GetTitles.Exists(x => x.Title == _mTitle))
            {
                LabelTo(from, 1049644, _mTitle + " | " + _fTitle);                 // [~1_stuff~]
            }
        }
示例#3
0
        public ValorBoardGumpViewItem(Mobile user, ValorRewardController controller, ValorTitleItem titleItem, ValorItem item)
            : base(820, 300)
        {
            _Controller = controller;
            _TitleItem  = titleItem;
            _Item       = item;

            _User = user as PlayerMobile;

            Closable   = true;
            Disposable = false;
            Dragable   = true;
            Resizable  = false;

            if (_Item != null)
            {
                ViewItem();
            }
            else if (_TitleItem != null)
            {
                ViewTitle();
            }
        }
示例#4
0
		public TitleScrollOld(ValorTitleItem r)
			: this(r.Title)
		{ }
		public ValorTitleItemEdit(ValorRewardController mValorRewardController, ValorTitleItem mtitle, ValorItem mVItem, bool addingItem)
			: base(820, 300)
		{
			_mIsAdd = addingItem;
			_MValorRc = mValorRewardController;
			_MValorTitleItem = mtitle;
			_mVItem = mVItem;

			Closable = true;
			Disposable = false;
			Dragable = true;
			Resizable = false;

			AddBackground(0, 0, 500, 450, 2620);
			if (mVItem == null)
			{
				EditTitle();
			}
			else
			{
				EditItem();
			}

			AddButton(350, 400, 4023, 4024, 1, GumpButtonType.Reply, 0); //ok
			AddButton(430, 400, 4017, 4018, 0, GumpButtonType.Reply, 0); //cancel
		}
示例#6
0
 public TitleScrollOld(ValorTitleItem r)
     : this(r.Title)
 {
 }
示例#7
0
 public void AddTitle(ValorTitleItem r)
 {
     MTitle.Add(r);
 }