示例#1
0
 internal static DisplayObject CreateAndPlace(ButtonPart buttonPart, StageObject parent)
 {
     var obj = new DisplayObject(buttonPart.Depth);
     if (!obj.SetPlacement(buttonPart, parent))
         return null;
     return obj;
 }
示例#2
0
 internal static DisplayObject CreateAndPlace(PlaceObject2Tag tag, StageObject parent)
 {
     var obj = new DisplayObject(tag.Depth);
     if (!obj.SetPlacement(tag, parent))
         return null;
     return obj;
 }