예제 #1
0
        public ButtonAnimation ToItem(AGSSerializationContext context)
        {
            var button = new ButtonAnimation(Border.ToItem(context), TextConfig.ToItem(context),
                                             Tint == null ? (Color?)null : Color.FromHexa(Tint.Value));

            button.Animation = Animation.ToItem(context);
            return(button);
        }
예제 #2
0
        public ITextComponent ToItem(AGSSerializationContext context)
        {
            var component = context.Resolver.Container.Resolve <ITextComponent>();

            component.TextConfig      = TextConfig.ToItem(context);
            component.Text            = Text;
            component.LabelRenderSize = new SizeF(Width, Height);
            return(component);
        }