示例#1
0
 private void Export(EGUIControl control)
 {
     EdImportLibraryItem item = (EdImportLibraryItem) control;
     if (item != null)
     {
         item.Data.CopyTo(mAssetLibraryPath);
     }
 }
示例#2
0
 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);
 }
示例#3
0
 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);
     }
 }
示例#4
0
        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();
        }