Пример #1
0
        public static bool RefreshGump(Mobile player, ListEntry listentry)
        {
            //if this mobile has a list entry gump up
            if (player.HasGump(typeof(ListEntryGump)))
            {
                ListEntryGump gump = (ListEntryGump)player.FindGump(typeof(ListEntryGump));

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

            return(false);
        }
Пример #2
0
 //gump refresh constructor
 public ListEntryGump(ListEntryGump oldgump) : this(oldgump.Owner, oldgump.ListEntry, oldgump.Page)
 {
 }
Пример #3
0
 //gump refresh constructor
 public ListEntryGump( ListEntryGump oldgump )
     : this(oldgump.Owner, oldgump.ListEntry, oldgump.Page)
 {
 }