Ejemplo n.º 1
0
        public Text(GlyphResolveContext context)
            : base(context)
        {
            SceneNode         = Add <SceneNode>();
            SpriteTransformer = Add <SpriteTransformer>();
            Motion            = Add <Motion>();

            Schedulers.LoadContent.Plan(LoadContentLocal);
            Schedulers.Draw.Plan(DrawLocal).InScene(SceneNode);
        }
Ejemplo n.º 2
0
        public SimpleFrame(GlyphResolveContext context)
            : base(context)
        {
            SceneNode          = Add <SceneNode>();
            Motion             = Add <Motion>();
            _spriteTransformer = Add <SpriteTransformer>();

            _fillingRectangle           = Add <FillingRectangle>();
            _fillingRectangle.Rectangle = Bounds;
            Add <FilledRectangleSprite>();
            Add <FillingRenderer>();

            Border = Add <SimpleBorder>();

            SceneNode.Refreshed += node => _fillingRectangle.Rectangle = Bounds;
        }