コード例 #1
0
        public MeatBoxGump(PlayerMobile from, MeatBox box)
            : base(25, 25)
        {
            m_From = from;
            m_Box  = box;

            m_From.CloseGump(typeof(MeatBoxGump));

            AddPage(0);

            AddBackground(12, 19, 210, 230, 9250);
            AddLabel(100, 30, 32, @"Meat Box");

            AddLabel(60, 50, 32, @"Add Item");
            AddButton(25, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);

            AddLabel(60, 75, 32, @"Close");
            AddButton(25, 75, 4005, 4007, 0, GumpButtonType.Reply, 0);

            AddLabel(60, 115, 0, @"Raw Bird");
            AddLabel(200, 115, 0x480, box.Bird.ToString());
            AddButton(25, 115, 4005, 4007, 3, GumpButtonType.Reply, 0);

            AddLabel(60, 135, 2223, @"Raw Lamb");
            AddLabel(200, 135, 0x480, box.Lamb.ToString());
            AddButton(25, 135, 4005, 4007, 4, GumpButtonType.Reply, 0);

            AddLabel(60, 155, 2128, @"Raw Ribs");
            AddLabel(200, 155, 0x480, box.Ribs.ToString());
            AddButton(25, 155, 4005, 4007, 5, GumpButtonType.Reply, 0);

            AddLabel(60, 175, 1644, @"Raw Fish Steak");
            AddLabel(200, 175, 0x480, box.Fish.ToString());
            AddButton(25, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);
        }
コード例 #2
0
ファイル: MeatBox.cs プロジェクト: ITLongwell/aedilis2server
		public MeatBoxTarget( MeatBox box ) : base( 18, false, TargetFlags.None )
		{
			m_Box = box;
		}
コード例 #3
0
ファイル: MeatBox.cs プロジェクト: ITLongwell/aedilis2server
		public MeatBoxGump( PlayerMobile from, MeatBox box ) : base( 25, 25 )
		{
			m_From = from;
			m_Box = box;

			m_From.CloseGump( typeof( MeatBoxGump ) );

			AddPage( 0 );

			AddBackground( 12, 19, 210, 230, 9250);
			AddLabel( 100, 30, 32, @"Meat Box");
			
			AddLabel( 60, 50, 32, @"Add Item");
			AddButton( 25, 50, 4005, 4007, 1, GumpButtonType.Reply, 0);

			AddLabel( 60, 75, 32, @"Close");
			AddButton( 25, 75, 4005, 4007, 0, GumpButtonType.Reply, 0);
			
			AddLabel( 60, 115, 0, @"Raw Bird");
			AddLabel( 200, 115, 0x480, box.Bird.ToString() );
			AddButton( 25, 115, 4005, 4007, 3, GumpButtonType.Reply, 0);
			
			AddLabel( 60, 135, 2223, @"Raw Lamb");
			AddLabel( 200, 135, 0x480, box.Lamb.ToString() );
			AddButton( 25, 135, 4005, 4007, 4, GumpButtonType.Reply, 0);
			
			AddLabel( 60, 155, 2128, @"Raw Ribs");
			AddLabel( 200, 155, 0x480, box.Ribs.ToString() );
			AddButton( 25, 155, 4005, 4007, 5, GumpButtonType.Reply, 0);
			
			AddLabel( 60, 175, 1644, @"Raw Fish Steak");
			AddLabel( 200, 175, 0x480, box.Fish.ToString() );
			AddButton( 25, 175, 4005, 4007, 6, GumpButtonType.Reply, 0);
		}
コード例 #4
0
 public MeatBoxTarget(MeatBox box)
     : base(18, false, TargetFlags.None)
 {
     m_Box = box;
 }