Exemplo n.º 1
0
        protected override BaseGump Clone(BaseGump b)
        {
            if (((BackgroundGump)b).images != null)
            {
                for (int i = 0; i < ((BackgroundGump)b).images.Length; i++)
                    ((BackgroundGump)b).images[i].Dispose();
            }

            ((BackgroundGump)b).images = new Bitmap[9];

            for (int i = 0; i < images.Length; i++)
                ((BackgroundGump)b).images[i] = (Bitmap)images[i].Clone();

            return base.Clone(b);
        }
Exemplo n.º 2
0
 public GumpCollectionEventArgs(BaseGump item)
 {
     this.item = item;
 }
Exemplo n.º 3
0
        protected override BaseGump Clone(BaseGump b)
        {
            ((ButtonGump)b).ButtonState = buttonState;
            ((ButtonGump)b).buttonType = buttonType;
            ((ButtonGump)b).PressedID = pressedID;
            ((ButtonGump)b).NormalID = normalID;
            ((ButtonGump)b).Value = value;

            return base.Clone(b);
        }
Exemplo n.º 4
0
 private int CompareZ(BaseGump a, BaseGump b)
 {
     return b.Z.CompareTo(a.Z);
 }
Exemplo n.º 5
0
 private void AddGump(BaseGump baseGump)
 {
     if (Gump != null)
     {
         undoStack.Push(new GumpState(Gump.Items));
         Gump.Items.Add(baseGump);
     }
 }
Exemplo n.º 6
0
        protected virtual BaseGump Clone(BaseGump b)
        {
            b.Image = (Bitmap)Image.Clone();
            b.Index = index;
            b.Location = location;
            b.Hue = hue;
            b.Parent = parent;
            b.Size = size;

            return b;
        }
Exemplo n.º 7
0
        public virtual BaseGump Clone()
        {
            BaseGump b = new BaseGump();
            b.Selected = Selected;
            b.Image = (Bitmap)img.Clone();
            b.Index = index;
            b.Location = location;
            b.Hue = hue;
            b.Parent = parent;
            b.Size = size;

            return b;
        }
Exemplo n.º 8
0
        protected override BaseGump Clone(BaseGump b)
        {
            ((RadioGump)b).CheckedID = checkedID;
            ((RadioGump)b).NormalID = normalID;
            ((RadioGump)b).CheckState = checkState;
            ((RadioGump)b).Value = value;

            return base.Clone(b);
        }