Exemple #1
0
            public InternalGump(BannerDeed banner)
                : base(100, 200)
            {
                m_Banner = banner;

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

                AddPage(0);

                AddBackground(25, 0, 520, 230, 0xA28);
                AddLabel(70, 12, 0x3E3, "Choose a Banner:");

                int itemID = Start;

                for (int i = 1; i <= 5; i++)
                {
                    AddPage(i);

                    for (int j = 0; j < 8; j++, itemID += 2)
                    {
                        AddItem(50 + 60 * j, 70, itemID);
                        AddButton(50 + 60 * j, 50, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);

                        if (itemID >= End)
                        {
                            break;
                        }
                    }

                    if (i > 1)
                    {
                        AddButton(75, 198, 0x8AF, 0x8AF, 0, GumpButtonType.Page, i - 1);
                    }

                    if (i < 5)
                    {
                        AddButton(475, 198, 0x8B0, 0x8B0, 0, GumpButtonType.Page, i + 1);
                    }
                }
            }
Exemple #2
0
                public FacingGump(BannerDeed banner, int itemID, Point3D location, BaseHouse house) : base(150, 50)
                {
                    m_Banner   = banner;
                    m_ItemID   = itemID;
                    m_Location = location;
                    m_House    = house;

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

                    AddPage(0);

                    AddBackground(0, 0, 300, 150, 0xA28);

                    AddItem(90, 30, itemID + 1);
                    AddItem(180, 30, itemID);

                    AddButton(50, 35, 0x868, 0x869, (int)Buttons.East, GumpButtonType.Reply, 0);
                    AddButton(145, 35, 0x868, 0x869, (int)Buttons.South, GumpButtonType.Reply, 0);
                }
Exemple #3
0
                public FacingGump( BannerDeed banner, int itemID, Point3D location, BaseHouse house )
                    : base(150, 50)
                {
                    m_Banner = banner;
                    m_ItemID = itemID;
                    m_Location = location;
                    m_House = house;

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

                    AddPage( 0 );

                    AddBackground( 0, 0, 300, 150, 0xA28 );

                    AddItem( 90, 30, itemID + 1 );
                    AddItem( 180, 30, itemID );

                    AddButton( 50, 35, 0x868, 0x869, (int) Buttons.East, GumpButtonType.Reply, 0 );
                    AddButton( 145, 35, 0x868, 0x869, (int) Buttons.South, GumpButtonType.Reply, 0 );
                }
Exemple #4
0
 public InternalTarget( BannerDeed banner, int itemID )
     : base(-1, true, TargetFlags.None)
 {
     m_Banner = banner;
     m_ItemID = itemID;
 }
Exemple #5
0
            public InternalGump( BannerDeed banner )
                : base(100, 200)
            {
                m_Banner = banner;

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

                AddPage( 0 );

                AddBackground( 25, 0, 520, 230, 0xA28 );
                AddLabel( 70, 12, 0x3E3, "Choose a Banner:" );

                int itemID = Start;

                for ( int i = 1; i <= 4; i++ )
                {
                    AddPage( i );

                    for ( int j = 0; j < 8; j++, itemID += 2 )
                    {
                        AddItem( 50 + 60 * j, 70, itemID );
                        AddButton( 50 + 60 * j, 50, 0x845, 0x846, itemID, GumpButtonType.Reply, 0 );
                    }

                    if ( i > 1 )
                        AddButton( 75, 198, 0x8AF, 0x8AF, 0, GumpButtonType.Page, i - 1 );

                    if ( i < 4 )
                        AddButton( 475, 198, 0x8B0, 0x8B0, 0, GumpButtonType.Page, i + 1 );
                }
            }
Exemple #6
0
 public InternalTarget(BannerDeed banner, int itemID) : base(-1, true, TargetFlags.None)
 {
     m_Banner = banner;
     m_ItemID = itemID;
 }
 public virtual void OnRequestGump( Mobile from, BannerDeed deed, int loc )
 {
     from.SendGump( new BannerGump( deed, loc ) );
 }
            public BannerGump( BannerDeed deed, int loc )
                : base(150, 50)
            {
                m_Deed = deed;
                m_iLoc = loc;

                AddPage(0);
                AddBackground( 0, 0, 500, 230, 2600);
                AddLabel( 45, 15, 1152, "Choose a Banner:");

                if( loc+FirstItemID+(AmountToGet*2) < LastItemID )
                    AddButton(430, 190, 5601, 5605, (int)Buttons.Next, GumpButtonType.Reply, 0);

                if( loc+FirstItemID > FirstItemID )
                    AddButton(50, 190, 5603, 5607, (int)Buttons.Prev, GumpButtonType.Reply, 0);

                for ( int i = 0; i < AmountToGet*2; i+=2 )
                {
                    if( i+loc+FirstItemID > LastItemID )
                        break;

                    int positionLoc = i > 0 ? positionLoc = i/2 : positionLoc = 0;

                    AddButton( 30 + (60*positionLoc), 50, 2117, 2118, i+loc+FirstItemID, GumpButtonType.Reply, 0 );
                    AddItem( 15 + (60*positionLoc), 70, i+loc+FirstItemID );
                }
            }
            public BannerFaceGump( int id, BannerDeed deed )
                : base(150, 50)
            {
                m_Id = id;
                m_Deed = deed;

                AddPage(0);
                AddBackground( 0, 2, 300, 150, 2600 );
                AddButton( 50, 40, 2151, 2153, 2, GumpButtonType.Reply, 0 );
                AddItem( 90, 35, id+1 );
                AddButton( 150, 40, 2151, 2153, 1, GumpButtonType.Reply, 0 );
                AddItem( 180, 35, id );
            }