Ejemplo n.º 1
0
        public RenderNameTag(Actor self, RenderNameTagInfo info)
        {
            font  = Game.Renderer.Fonts[info.Font];
            color = self.Owner.Color.RGB;

            if (self.Owner.PlayerName.Length > info.MaxLength)
            {
                name = self.Owner.PlayerName.Substring(0, info.MaxLength);
            }
            else
            {
                name = self.Owner.PlayerName;
            }
        }
Ejemplo n.º 2
0
        public RenderNameTag(Actor self, RenderNameTagInfo info)
        {
            font  = Game.Renderer.Fonts[info.Font];
            color = self.Owner.Color;

            if (self.Owner.PlayerName.Length > info.MaxLength)
            {
                name = self.Owner.PlayerName.Substring(0, info.MaxLength);
            }
            else
            {
                name = self.Owner.PlayerName;
            }

            decorationBounds = self.TraitsImplementing <IDecorationBounds>().ToArray();
        }