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