private static AILinkView ReadAILinkView(StageElement lve, AIUI parent)
        {
            var lv = new AILinkView
            {
                name        = lve.ValueOrDefault <string>(ElementName.Name),
                description = lve.ValueOrDefault <string>(ElementName.Description),
                viewArea    = lve.ValueOrDefault <Rect>(ElementName.ViewArea),
                aiId        = lve.AttributeValue <Guid>(AttributeName.Id),
                parent      = parent
            };

            return(lv);
        }
Beispiel #2
0
        public object UnstageValue(StageItem item, Type targetType)
        {
            StageElement stageElement = (StageElement)item;

            return(new Color(stageElement.AttributeValue <float>("r"), stageElement.AttributeValue <float>("g"), stageElement.AttributeValue <float>("b"), stageElement.AttributeValue <float>("a")));
        }
Beispiel #3
0
        public object UnstageValue(StageItem item, Type targetType)
        {
            StageElement stageElement = (StageElement)item;

            return(new Rect(stageElement.AttributeValue <float>("left"), stageElement.AttributeValue <float>("top"), stageElement.AttributeValue <float>("width"), stageElement.AttributeValue <float>("height")));
        }
Beispiel #4
0
        public object UnstageValue(StageItem item, Type targetType)
        {
            StageElement stageElement = (StageElement)item;

            return(new Vector4(stageElement.AttributeValue <float>("x"), stageElement.AttributeValue <float>("y"), stageElement.AttributeValue <float>("z"), stageElement.AttributeValue <float>("w")));
        }