Exemplo n.º 1
0
        public static bool RefreshGump(Mobile player, StashEntry stashentry)
        {
            //if this mobile has a stash entry gump up
            if (player.HasGump(typeof(StashEntryGump)))
            {
                StashEntryGump gump = (StashEntryGump)player.FindGump(typeof(StashEntryGump));

                //if this gump that's up is showing this list entry, or if none was specified, then refresh
                if (stashentry == null || gump.StashEntry == stashentry)
                {
                    //then, resend this gump!
                    player.SendGump(new StashEntryGump(gump));
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 2
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            //store flags
            int buttonid = info.ButtonID;

            //right click
            if (buttonid == 0)
            {
                return;
            }

            int index = buttonid - 1;

            _StashEntry.SortData.AddColumn(index);

            if (!StashEntryGump.RefreshGump(_Owner, _StashEntry))
            {
                _Owner.SendGump(new StashEntryGump(_Owner, _StashEntry));
            }
        }
Exemplo n.º 3
0
 //gump refresh constructor
 public StashEntryGump(StashEntryGump oldgump) : this(oldgump.Owner, oldgump.StashEntry, oldgump.Page)
 {
 }
		//gump refresh constructor
		public StashEntryGump( StashEntryGump oldgump ) : this( oldgump.Owner, oldgump.StashEntry, oldgump.Page )
		{
		}