Example #1
0
        private void DrawPhrase(string phrase, Vector2 position, float size, ManagerFont font)
        {
            char[] charArray = phrase.ToCharArray();
            int    offset    = 0;
            int    tmpColor  = (int)font.GetColor();

            for (int i = 0; i < charArray.Length; i++)
            {
                offset = font.ConvertLetter(System.Convert.ToInt32(charArray[i]));

                int color = tmpColor + i % 8;
                if (color > 7)
                {
                    color -= 8;
                }
                float x = position.x + i * size * font.hspacing;
                SetSingleLetter(offset, color, new Vector2(x, position.y), size, folder, font);
            }
        }
Example #2
0
        private void DrawPhrase(string phrase, Vector2 position, float size, ManagerFont font)
        {
            char[] charArray = phrase.ToCharArray();
            int offset = 0;
            int tmpColor = (int) font.GetColor();
            for (int i=0; i<charArray.Length; i++)
            {
                offset = font.ConvertLetter(System.Convert.ToInt32(charArray[i]));

                int color = tmpColor + i % 8;
                if (color > 7) { color -= 8; }
                float x = position.x + i * size * font.hspacing;
                SetSingleLetter(offset, color, new Vector2(x,position.y), size, folder, font);
            }
        }