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); }
public GumpCollectionEventArgs(BaseGump item) { this.item = item; }
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); }
private int CompareZ(BaseGump a, BaseGump b) { return b.Z.CompareTo(a.Z); }
private void AddGump(BaseGump baseGump) { if (Gump != null) { undoStack.Push(new GumpState(Gump.Items)); Gump.Items.Add(baseGump); } }
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; }
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; }
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); }