Beispiel #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);
        }
Beispiel #2
0
 public override void OnDoubleClick(Mobile from)
 {
     SimpleNoteGump g = new SimpleNoteGump(this);
     from.SendGump(g);
 }
Beispiel #3
0
        public override void OnDoubleClick(Mobile from)
        {
            SimpleNoteGump g = new SimpleNoteGump(this);

            from.SendGump(g);
        }