private void Export(EGUIControl control) { EdImportLibraryItem item = (EdImportLibraryItem) control; if (item != null) { item.Data.CopyTo(mAssetLibraryPath); } }
public void DetachChild(EGUIControl child) { // Don't change the position Vector2 position = Position; child.mLocalPosition.x += position.x; child.mLocalPosition.y += position.y; mChilds.Remove(child); }
public void AddChild(EGUIControl child) { if (mChilds.Contains(child) == false) { // Don't change the position Vector2 position = Position; child.mLocalPosition.x = child.Position.x - position.x; child.mLocalPosition.y = child.Position.y - position.y; mChilds.Add(child); } }
private void SetParent(EGUIControl parent) { if (mParent != null) { mParent.DetachChild(this); } if (parent == null) { mParent = Root; Root.AddChild(this); } else { mParent = parent; parent.AddChild(this); } ReverseUpdateMargin(); }