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

                    if (can.Redyable)
                    {
                        if (can.CustomHuePicker == null)
                        {
                            from.SendHuePicker(new InternalPicker(can));
                        }
                        else
                        {
                            from.SendGump(new CustomHuePickerGump(from, can.CustomHuePicker, new CustomHuePickerCallback(SetCanHue), can));
                        }
                    }
                    else
                    {
                        from.SendMessage("That paint can may not be redyed.");
                    }
                }
                else
                {
                    from.SendMessage("Use this on a paint can.");
                }
            }
Exemplo n.º 2
0
 public InternalTarget(PaintCan can)
     : base(3, false, TargetFlags.None)
 {
     m_Can = can;
 }
Exemplo n.º 3
0
 public InternalPicker(PaintCan can)
     : base(can.ItemID)
 {
     m_Can = can;
 }
Exemplo n.º 4
0
 public InternalPicker(PaintCan can)
     : base(can.ItemID)
 {
     m_Can = can;
 }
Exemplo n.º 5
0
 public InternalTarget(PaintCan can)
     : base(3, false, TargetFlags.None)
 {
     _can = can;
 }