예제 #1
0
        public QuestNoteGump(OriginalQuestNote 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, QuestNoteGump.HtmlFormat(note.TitleString, note.TitleColor), false, false);
            // text string
            AddHtml(40, 41, 225, 70 * note.Size, QuestNoteGump.HtmlFormat(note.NoteString, note.TextColor), false, false);

            // add the quest status gump button
            AddButton(40, 50 + note.Size * 70, 0x037, 0x037, 1, GumpButtonType.Reply, 0);
        }
예제 #2
0
        public QuestNoteGump( OriginalQuestNote 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, QuestNoteGump.HtmlFormat( note.TitleString, note.TitleColor), false , false );
            // text string
            AddHtml( 40, 41, 225, 70*note.Size, QuestNoteGump.HtmlFormat( note.NoteString, note.TextColor ), false , false );

            // add the quest status gump button
            AddButton( 40, 50+ note.Size*70, 0x037, 0x037, 1, GumpButtonType.Reply, 0 );
        }