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); }
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); }