Beispiel #1
0
        public void Render()
        {
            if (Uncovered)
            {
                return;
            }

            shroudRenderable.SetPosition(graphicPosition);
            shroudRenderable.SetColor(Covered ? Color.White : new Color(1f, 1f, 1f, alpha));

            shroudRenderable.Render();
        }
        public BatchRenderable GetRenderable()
        {
            var color = Color + ParticleUtils.Variety(ColorVariety);

            if (Texture == null)
            {
                var renderable = new BatchObject(MeshSize * MasterRenderer.PixelMultiplier + ParticleUtils.Variety(MeshSizeVariety));
                renderable.SetColor(color);
                return(renderable);
            }

            var sequence = new BatchSequence(Texture);

            sequence.SetColor(color);
            return(sequence);
        }
Beispiel #3
0
 public void SetCharacter(char c)
 {
     charRenderable = new BatchObject(Mesh.Character(font, c));
     charRenderable.SetColor(color);
 }
Beispiel #4
0
 public void SetColor(Color color)
 {
     this.color = color;
     charRenderable.SetColor(color);
 }