コード例 #1
0
        public static bool GiveSlumgum = true;          //does rendering produce slumgum? (impurities in wax)

        public apiBeeHiveSmallPotGump(Mobile from, apiWaxProcessingPot pot) : base(20, 20)
        {
            m_pot = pot;

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

            AddPage(0);

            AddBackground(15, 12, 352, 140, 9270);
            AddAlphaRegion(30, 27, 321, 109);
            AddImage(326, 110, 210);

            //vines
            AddItem(10, 5, 3311);
            AddItem(11, 49, 3311);
            AddItem(328, 50, 3307);
            AddItem(327, 3, 3307);

            //pot image
            if (m_pot.PureBeeswax > 0)
            {
                AddItem(231, 105, 0x142B);
            }
            else
            {
                AddItem(231, 105, 2532);
            }

            //labels
            AddLabel(76, 71, 1153, "Render Beeswax");
            AddLabel(76, 40, 1153, "Add Raw Beeswax");
            AddLabel(76, 101, 1153, "Empty Pot");
            AddLabel(331, 110, 1153, "?");

            //buttons
            AddButton(42, 39, 4005, 4006, (int)Buttons.cmdAddRaw, GumpButtonType.Reply, 0);
            AddButton(42, 70, 4005, 4006, (int)Buttons.cmdRenderWax, GumpButtonType.Reply, 0);
            AddButton(42, 102, 4005, 4006, (int)Buttons.cmdEmptyPot, GumpButtonType.Reply, 0);
            AddButton(326, 110, 212, 212, (int)Buttons.cmdHelp, GumpButtonType.Reply, 0);

            //wax amounts
            AddLabel(207, 40, 1153, "Raw Beeswax: " + m_pot.RawBeeswax);
            AddLabel(207, 71, 1153, "Pure Beeswax: " + m_pot.PureBeeswax);
        }
コード例 #2
0
		public static bool GiveSlumgum = true;  //does rendering produce slumgum? (impurities in wax)

		public apiBeeHiveSmallPotGump( Mobile from, apiWaxProcessingPot pot ): base( 20, 20 )
		{
			m_pot = pot;

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

			AddPage(0);

			AddBackground(15, 12, 352, 140, 9270);
			AddAlphaRegion(30, 27, 321, 109);
			AddImage(326, 110, 210);

			//vines
			AddItem(10, 5, 3311);
			AddItem(11, 49, 3311);
			AddItem(328, 50, 3307);
			AddItem(327, 3, 3307);
			
			//pot image
			if( m_pot.PureBeeswax > 0 )
				AddItem(231, 105, 0x142B);
			else
				AddItem(231, 105, 2532);

			//labels
			AddLabel(76 , 71 , 1153, "Render Beeswax");
			AddLabel(76 , 40 , 1153, "Add Raw Beeswax");
			AddLabel(76 , 101, 1153, "Empty Pot");
			AddLabel(331, 110, 1153, "?");

			//buttons
			AddButton(42, 39, 4005, 4006, (int)Buttons.cmdAddRaw, GumpButtonType.Reply, 0);
			AddButton(42, 70, 4005, 4006, (int)Buttons.cmdRenderWax, GumpButtonType.Reply, 0);
			AddButton(42, 102, 4005, 4006, (int)Buttons.cmdEmptyPot, GumpButtonType.Reply, 0);
			AddButton(326, 110, 212, 212, (int)Buttons.cmdHelp, GumpButtonType.Reply, 0);

			//wax amounts
			AddLabel(207, 40, 1153, "Raw Beeswax: " + m_pot.RawBeeswax );
			AddLabel(207, 71, 1153, "Pure Beeswax: " + m_pot.PureBeeswax );
		}
コード例 #3
0
 public AddWaxTarget(apiWaxProcessingPot pot) : base(18, false, TargetFlags.None)
 {
     m_pot = pot;
 }
コード例 #4
0
		public AddWaxTarget( apiWaxProcessingPot pot ) : base( 18, false, TargetFlags.None )
		{
			m_pot = pot;
		}