예제 #1
0
        public UDim2 ReadAttribute(Attribute attr)
        {
            UDim x = UDimToken.ReadUDim(attr);
            UDim y = UDimToken.ReadUDim(attr);

            return(new UDim2(x, y));
        }
예제 #2
0
        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);
        }