Example #1
0
        public GraneryGump(Mobile from, BaseGranery box, Pages page) : base(25, 25)
        {
            m_From = from;
            m_Box  = box;
            m_Page = page;

            AddPage(0);

            AddBackground(50, 10, 455, 280, 83);
            AddImageTiled(58, 20, 438, 262, 2624);
            AddAlphaRegion(58, 20, 438, 262);

            AddButton(75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0);
            AddLabel(110, 25, 0x8AB, "Add Resource");

            AddPage(1);

            if (m_Page == Pages.Start)
            {
                AddLabel(225, 25, 0x480, "Choose Resource");

                AddLabel(110, 75, 1152, "Bread");
                AddButton(75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0);
                AddLabel(110, 100, 1152, "Fish");
                AddButton(75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0);
                AddLabel(110, 125, 1152, "Meat");
                AddButton(75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0);
                AddLabel(110, 150, 1152, "Vegetables");
                AddButton(75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0);
                AddLabel(110, 175, 1152, "Fruit");
                AddButton(75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0);
                AddLabel(110, 200, 1152, "Grain");
                AddButton(75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0);
                AddLabel(110, 225, 1152, "Misc");
                AddButton(75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0);
                //AddLabel( 110, 250, 1152, "Reagents" );
                //AddButton( 75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0 );

                if (GraneryTypes.Bread.Length > 16)
                {
                    AddLabel(310, 75, 1152, "More Bread");
                    AddButton(275, 75, 4005, 4007, 17, GumpButtonType.Reply, 0);
                }
                if (GraneryTypes.Fish.Length > 16)
                {
                    AddLabel(310, 100, 1152, "More Fish");
                    AddButton(275, 100, 4005, 4007, 18, GumpButtonType.Reply, 0);
                }
                if (GraneryTypes.Meat.Length > 16)
                {
                    AddLabel(310, 125, 1152, "More Meat");
                    AddButton(275, 125, 4005, 4007, 19, GumpButtonType.Reply, 0);
                }

                if (GraneryTypes.Vegetables.Length > 16)
                {
                    AddLabel(310, 150, 1152, "More Vegetables");
                    AddButton(275, 150, 4005, 4007, 20, GumpButtonType.Reply, 0);
                }
                if (GraneryTypes.Fruit.Length > 16)
                {
                    AddLabel(310, 175, 1152, "More Fruit");
                    AddButton(275, 175, 4005, 4007, 21, GumpButtonType.Reply, 0);
                }
                if (GraneryTypes.Grain.Length > 16)
                {
                    AddLabel(310, 200, 1152, "More Grain");
                    AddButton(275, 200, 4005, 4007, 22, GumpButtonType.Reply, 0);
                }
                if (GraneryTypes.Misc.Length > 16)
                {
                    AddLabel(310, 225, 1152, "More Misc");
                    AddButton(275, 225, 4005, 4007, 23, GumpButtonType.Reply, 0);
                }
                //if( StorageTypes.Reagents.Length > 16 )
                //{
                //	AddLabel( 310, 250, 1152, "More Reagents" );
                //	AddButton( 275, 250, 4005, 4007, 25, GumpButtonType.Reply, 0 );
                //}
            }

            else
            {
                AddLabel(225, 25, 0x480, AddLabelsButtonsAmounts());
                AddButton(425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0);
                AddLabel(460, 25, 0x8AB, "Back");
            }
        }
Example #2
0
 public ExtractPrompt(Type type, BaseGranery box, Pages page)
 {
     m_type = type;
     m_Box  = box;
     m_Page = page;
 }
Example #3
0
 public GraneryTarget(BaseGranery box, Pages page) : base(18, false, TargetFlags.None)
 {
     m_Box  = box;
     m_Page = page;
 }
		public GraneryGump( Mobile from, BaseGranery box, Pages page ) : base( 25, 25 )
		{
			m_From = from;
			m_Box = box;
			m_Page = page;

			AddPage( 0 );

			AddBackground( 50, 10, 455, 280, 83 );
			AddImageTiled( 58, 20, 438, 262, 2624 );
			AddAlphaRegion( 58, 20, 438, 262 );

			AddButton( 75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0 );
			AddLabel( 110, 25, 0x8AB, "Add Resource" );

			AddPage( 1 );

			if( m_Page == Pages.Start )
			{
				AddLabel( 225, 25, 0x480, "Choose Resource" );

				AddLabel( 110, 75, 1152, "Bread" );
				AddButton( 75, 75, 4005, 4007, 10, GumpButtonType.Reply, 0 );
				AddLabel( 110, 100, 1152, "Fish" );
				AddButton( 75, 100, 4005, 4007, 11, GumpButtonType.Reply, 0 );
				AddLabel( 110, 125, 1152, "Meat" );
				AddButton( 75, 125, 4005, 4007, 12, GumpButtonType.Reply, 0 );
				AddLabel( 110, 150, 1152, "Vegetables" );
				AddButton( 75, 150, 4005, 4007, 13, GumpButtonType.Reply, 0 );
				AddLabel( 110, 175, 1152, "Fruit" );
				AddButton( 75, 175, 4005, 4007, 14, GumpButtonType.Reply, 0 );
				AddLabel( 110, 200, 1152, "Grain" );
				AddButton( 75, 200, 4005, 4007, 15, GumpButtonType.Reply, 0 );
				AddLabel( 110, 225, 1152, "Misc" );
				AddButton( 75, 225, 4005, 4007, 16, GumpButtonType.Reply, 0 );
				//AddLabel( 110, 250, 1152, "Reagents" );
				//AddButton( 75, 250, 4005, 4007, 17, GumpButtonType.Reply, 0 );

				if( GraneryTypes.Bread.Length > 16 )
				{
					AddLabel( 310, 75, 1152, "More Bread" );
					AddButton( 275, 75, 4005, 4007, 17, GumpButtonType.Reply, 0 );
				}
				if( GraneryTypes.Fish.Length > 16 )
				{
					AddLabel( 310, 100, 1152, "More Fish" );
					AddButton( 275, 100, 4005, 4007, 18, GumpButtonType.Reply, 0 );
				}
				if( GraneryTypes.Meat.Length > 16 )
				{
					AddLabel( 310, 125, 1152, "More Meat" );
					AddButton( 275, 125, 4005, 4007, 19, GumpButtonType.Reply, 0 );
				}
				
				if( GraneryTypes.Vegetables.Length > 16 )
				{
					AddLabel( 310, 150, 1152, "More Vegetables" );
					AddButton( 275, 150, 4005, 4007, 20, GumpButtonType.Reply, 0 );
				}
				if( GraneryTypes.Fruit.Length > 16 )
				{
					AddLabel( 310, 175, 1152, "More Fruit" );
					AddButton( 275, 175, 4005, 4007, 21, GumpButtonType.Reply, 0 );
				}
				if( GraneryTypes.Grain.Length > 16 )
				{
					AddLabel( 310, 200, 1152, "More Grain" );
					AddButton( 275, 200, 4005, 4007, 22, GumpButtonType.Reply, 0 );
				}
				if( GraneryTypes.Misc.Length > 16 )
				{
					AddLabel( 310, 225, 1152, "More Misc" );
					AddButton( 275, 225, 4005, 4007, 23, GumpButtonType.Reply, 0 );
				}
				//if( StorageTypes.Reagents.Length > 16 )
				//{
				//	AddLabel( 310, 250, 1152, "More Reagents" );
				//	AddButton( 275, 250, 4005, 4007, 25, GumpButtonType.Reply, 0 );
				//}
			}

			else
			{
				AddLabel( 225, 25, 0x480, AddLabelsButtonsAmounts() );
				AddButton( 425, 25, 4014, 4015, 2, GumpButtonType.Reply, 0 );
				AddLabel( 460, 25, 0x8AB, "Back" );
			}
		}
			public ExtractPrompt( Type type, BaseGranery box, Pages page  )
			{
				m_type = type;
				m_Box = box;
				m_Page = page;
			}
			public GraneryTarget( BaseGranery box, Pages page ) : base( 18, false, TargetFlags.None )
			{
					m_Box = box;
					m_Page = page;
			}