Beispiel #1
0
            public InternalGump(DecorativeShieldDeed shield, int page)
                : base(150, 50)
            {
                this.m_Shield = shield;
                this.m_Page   = page;

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

                this.AddPage(0);

                this.AddBackground(25, 0, 500, 230, 0xA28);

                int itemID = Start;

                for (int i = 1; i <= 2; i++)
                {
                    this.AddPage(i);

                    for (int j = 0; j < 9 - i; j++)
                    {
                        this.AddItem(40 + j * 60, 70, itemID);
                        this.AddButton(60 + j * 60, 50, 0x845, 0x846, itemID, GumpButtonType.Reply, 0);

                        if (itemID < 0x1582)
                        {
                            itemID += 2;
                        }
                        else
                        {
                            itemID += 1;
                        }
                    }

                    switch (i)
                    {
                    case 1:
                        this.AddButton(455, 198, 0x8B0, 0x8B0, 0, GumpButtonType.Page, 2);
                        break;

                    case 2:
                        this.AddButton(70, 198, 0x8AF, 0x8AF, 0, GumpButtonType.Page, 1);
                        break;
                    }
                }
            }
                public FacingGump(DecorativeShieldDeed shield, int itemID, Point3D location, BaseHouse house) : base(150, 50)
                {
                    m_Shield   = shield;
                    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, GetWestItemID(itemID));
                    AddItem(180, 30, itemID);

                    AddButton(50, 35, 0x867, 0x869, (int)Buttons.East, GumpButtonType.Reply, 0);
                    AddButton(145, 35, 0x867, 0x869, (int)Buttons.South, GumpButtonType.Reply, 0);
                }
Beispiel #3
0
                public FacingGump( DecorativeShieldDeed shield, int itemID, Point3D location, BaseHouse house )
                    : base(150, 50)
                {
                    m_Shield = shield;
                    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, GetWestItemID( itemID ) );
                    AddItem( 180, 30, itemID );

                    AddButton( 50, 35, 0x867, 0x869, (int) Buttons.East, GumpButtonType.Reply, 0 );
                    AddButton( 145, 35, 0x867, 0x869, (int) Buttons.South, GumpButtonType.Reply, 0 );
                }
Beispiel #4
0
 public InternalTarget( DecorativeShieldDeed shield, int itemID )
     : base(-1, true, TargetFlags.None)
 {
     m_Shield = shield;
     m_ItemID = itemID;
 }
Beispiel #5
0
            public InternalGump( DecorativeShieldDeed shield, int page )
                : base(150, 50)
            {
                m_Shield = shield;
                m_Page = page;

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

                AddPage( 0 );

                AddBackground( 25, 0, 500, 230, 0xA28 );

                int itemID = Start;

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

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

                        if ( itemID < 0x1582 )
                            itemID += 2;
                        else
                            itemID += 1;
                    }

                    switch ( i )
                    {
                        case 1: AddButton( 455, 198, 0x8B0, 0x8B0, 0, GumpButtonType.Page, 2 ); break;
                        case 2: AddButton( 70, 198, 0x8AF, 0x8AF, 0, GumpButtonType.Page, 1 ); break;
                    }
                }
            }
Beispiel #6
0
 public InternalGump( DecorativeShieldDeed shield )
     : this(shield, 1)
 {
 }
 public InternalTarget(DecorativeShieldDeed shield, int itemID) : base(-1, true, TargetFlags.None)
 {
     m_Shield = shield;
     m_ItemID = itemID;
 }
 public InternalGump(DecorativeShieldDeed shield) : this(shield, 1)
 {
 }