Exemplo n.º 1
0
        public SimpleNoteGump(SimpleNote note) : base(0, 0)
        {
            m_Note = note;

            AddPage(0);
            AddAlphaRegion(40, 41, 225, /*371*/ 70 * note.Size);
            // scroll top
            AddImageTiled(3, 5, 300, 37, 0x820);
            // scroll middle, upper portion
            AddImageTiled(19, 41, 263, 70, 0x821);
            for (int i = 1; i < note.Size; i++)
            {
                // scroll middle , lower portion
                AddImageTiled(19, 41 + 70 * i, 263, 70, 0x822);
            }
            // scroll bottom
            AddImageTiled(20, 111 + 70 * (note.Size - 1), 273, 34, 0x823);
            // title string
            AddHtml(55, 10, 200, 37, SimpleNoteGump.HtmlFormat(note.TitleString, note.TitleColor), false, false);
            // text string
            AddHtml(40, 41, 225, 70 * note.Size, SimpleNoteGump.HtmlFormat(note.NoteString, note.TextColor), false, false);
        }
Exemplo n.º 2
0
        public SimpleNoteGump(SimpleNote note)
            : base(0, 0)
        {
            this.m_Note = note;

            this.AddPage(0);
            this.AddAlphaRegion(40, 41, 225, /*371*/70 * note.Size);
            // scroll top
            this.AddImageTiled(3, 5, 300, 37, 0x820);
            // scroll middle, upper portion
            this.AddImageTiled(19, 41, 263, 70, 0x821);
            for (int i = 1; i < note.Size; i++)
            {
                // scroll middle , lower portion
                this.AddImageTiled(19, 41 + 70 * i, 263, 70, 0x822);
            }
            // scroll bottom
            this.AddImageTiled(20, 111 + 70 * (note.Size - 1), 273, 34, 0x823);
            // title string
            this.AddHtml(55, 10, 200, 37, SimpleNoteGump.HtmlFormat(note.TitleString, note.TitleColor), false, false);
            // text string
            this.AddHtml(40, 41, 225, 70 * note.Size, SimpleNoteGump.HtmlFormat(note.NoteString, note.TextColor), false, false);
        }