public UDim2 ReadAttribute(Attribute attr) { UDim x = UDimToken.ReadUDim(attr); UDim y = UDimToken.ReadUDim(attr); return(new UDim2(x, y)); }
public bool ReadProperty(Property property, XmlNode token) { UDim xUDim = UDimToken.ReadUDim(token, "X"); UDim yUDim = UDimToken.ReadUDim(token, "Y"); if (xUDim != null && yUDim != null) { property.Type = PropertyType.UDim2; property.Value = new UDim2(xUDim, yUDim); return(true); } return(false); }