public override bool OnDragDrop(Mobile from, Item dropped) { int entries = Entries.Count; bool d = base.OnDragDrop(from, dropped); if (from is PlayerMobile && d && Entries.Count > entries) { int newPage = Math.Max(0, (Entries.Count - 1) / 16); RunicAtlasGump g = from.FindGump(typeof(RunicAtlasGump)) as RunicAtlasGump; if (g != null && g.Atlas == this) { g.Page = newPage; g.Refresh(); } else { if (g != null) { from.CloseGump(typeof(RunicAtlasGump)); } g = new RunicAtlasGump((PlayerMobile)from, this); g.Page = newPage; from.SendGump(g); } } return(d); }
public override bool HasGump(Mobile toCheck) { RunicAtlasGump bookGump = toCheck.FindGump <RunicAtlasGump>(); if (bookGump != null && bookGump.Atlas == this) { return(true); } return(false); }