public DecoShieldGump( DecoShieldDeed 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 Decorative Shield:"); 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 virtual void OnRequestGump( Mobile from, DecoShieldDeed deed, int loc ) { from.SendGump( new DecoShieldGump( deed, loc ) ); }
public DecoShieldFaceGump( int id, DecoShieldDeed 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 ); }