コード例 #1
0
        public QuestItemInfoGump(QuestItemInfo[] info)
            : base(485, 75)
        {
            int height = 100 + (info.Length * 75);

            this.AddPage(0);

            this.AddBackground(5, 10, 145, height, 5054);

            this.AddImageTiled(13, 20, 125, 10, 2624);
            this.AddAlphaRegion(13, 20, 125, 10);

            this.AddImageTiled(13, height - 10, 128, 10, 2624);
            this.AddAlphaRegion(13, height - 10, 128, 10);

            this.AddImageTiled(13, 20, 10, height - 30, 2624);
            this.AddAlphaRegion(13, 20, 10, height - 30);

            this.AddImageTiled(131, 20, 10, height - 30, 2624);
            this.AddAlphaRegion(131, 20, 10, height - 30);

            this.AddHtmlLocalized(67, 35, 120, 20, 1011233, White, false, false); // INFO

            this.AddImage(62, 52, 9157);
            this.AddImage(72, 52, 9157);
            this.AddImage(82, 52, 9157);

            this.AddButton(25, 31, 1209, 1210, 777, GumpButtonType.Reply, 0);

            this.AddPage(1);

            for (int i = 0; i < info.Length; ++i)
            {
                QuestItemInfo cur = info[i];

                this.AddHtmlObject(25, 65 + (i * 75), 110, 20, cur.Name, 1153, false, false);
                this.AddItem(45, 85 + (i * 75), cur.ItemID);
            }
        }
コード例 #2
0
        public QuestItemInfoGump( QuestItemInfo[] info )
            : base(485, 75)
        {
            int height = 100 + (info.Length * 75);

            AddPage( 0 );

            AddBackground( 5, 10, 145, height, 5054 );

            AddImageTiled( 13, 20, 125, 10, 2624 );
            AddAlphaRegion( 13, 20, 125, 10 );

            AddImageTiled( 13, height - 10, 128, 10, 2624 );
            AddAlphaRegion( 13, height - 10, 128, 10 );

            AddImageTiled( 13, 20, 10, height - 30, 2624 );
            AddAlphaRegion( 13, 20, 10, height - 30 );

            AddImageTiled( 131, 20, 10, height - 30, 2624 );
            AddAlphaRegion( 131, 20, 10, height - 30 );

            AddHtmlLocalized( 67, 35, 120, 20, 1011233, White, false, false ); // INFO

            AddImage( 62, 52, 9157 );
            AddImage( 72, 52, 9157 );
            AddImage( 82, 52, 9157 );

            AddButton( 25, 31, 1209, 1210, 777, GumpButtonType.Reply, 0 );

            AddPage( 1 );

            for ( int i = 0; i < info.Length; ++i )
            {
                QuestItemInfo cur = info[i];

                AddHtmlObject( 25, 65 + (i * 75), 110, 20, cur.Name, 1153, false, false );
                AddItem( 45, 85 + (i * 75), cur.ItemID );
            }
        }