Exemplo n.º 1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is UOACZDyeTub)
                {
                    UOACZDyeTub tub = (UOACZDyeTub)targeted;

                    if (tub.Redyable)
                    {
                        if (tub.MetallicHues)
                        {
                            from.SendGump(new MetallicHuePicker(from, new MetallicHuePicker.MetallicHuePickerCallback(SetTubHue), tub));
                        }

                        else if (tub.CustomHuePicker != null)
                        {
                            from.SendGump(new CustomHuePickerGump(from, tub.CustomHuePicker, new CustomHuePickerCallback(SetTubHue), tub));
                        }

                        else
                        {
                            from.SendHuePicker(new InternalPicker(tub));
                        }
                    }

                    else
                    {
                        from.SendMessage("That dye tub may not be redyed.");
                    }
                }

                else
                {
                    from.SendLocalizedMessage(500857); // Use this on a dye tub.
                }
            }
Exemplo n.º 2
0
            public virtual void SetTubHue(Mobile from, object state, int hue)
            {
                if (state is UOACZDyeTub)
                {
                    UOACZDyeTub tub = state as UOACZDyeTub;

                    tub.DyedHue = hue;
                }
            }
Exemplo n.º 3
0
 public InternalPicker(UOACZDyeTub tub) : base(tub.ItemID)
 {
     m_Tub = tub;
 }
Exemplo n.º 4
0
 public InternalTarget(UOACZDyeTub tub)
     : base(1, false, TargetFlags.None)
 {
     m_Tub = tub;
 }