public ReadBookGump(BaseReadBook source, int actualpage, Mobile reader) : base(0, 0) { m_reader = reader; m_book = source; m_page = actualpage; int indentHor = horizontalIndent(); int indentVer = verticalIndent(); AddImage(0, 0, source.Background); if (actualpage > 0) { AddButton(23 + indentHor, 5 + indentVer, 0x89D, 0x89D, 1, GumpButtonType.Reply, indentHor); } if (actualpage < (source.Pages.Length - 1)) { AddButton(293 + indentHor, 5 + indentVer, 0x89E, 0x89E, 2, GumpButtonType.Reply, indentHor); } if (actualpage == 0) { addTitle(26 + indentHor, 9 + indentVer, source.Title, source.Author, source.ShowTitlePage); } else { AddTextToPage(source.Pages[actualpage - 1].Lines, indentHor, indentVer, actualpage); } if (actualpage < source.Pages.Length) { AddTextToPage(source.Pages[actualpage].Lines, 155 + indentHor, indentVer, actualpage + 1); } else { AddTextToPage(null, 155 + indentHor, indentVer, actualpage + 1); } source.onPageRead(actualpage); }
public InternalTarget(BaseReadBook book) : base(3, false, TargetFlags.None) { sourceBook = book; }
public CopyFromBookEntry(BaseReadBook book) : base(2955261, 1) { }