Ejemplo n.º 1
0
        public OffsetableBookGump( OffsetableBook book, int page )
            : base(0, 0)
        {
            m_Book = book;
            m_Page = page;

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

            this.AddPage( 0 );

            string text1 = "";

            if ( book.HTMLContent.CachedHTMLContent[page].Lines != null )
                for (int i = 0; i < book.HTMLContent.CachedHTMLContent[page].Lines.Length; i++)
                    text1 += book.HTMLContent.CachedHTMLContent[page].Lines[i];

            string text2 = "";

            if ( book.HTMLContent.CachedHTMLContent[page+1].Lines != null )
                for (int i = 0; i < book.HTMLContent.CachedHTMLContent[page+1].Lines.Length; i++)
                    text2 += book.HTMLContent.CachedHTMLContent[page+1].Lines[i];

            (this as IHTMLBookGump).DrawToSurface( this, 59, 104, text1, text2, page );
        }
Ejemplo n.º 2
0
 public OffsetableBookGump( OffsetableBook book )
     : this(book, 0)
 {
 }