Exemple #1
0
        public Menu(Font3D f, Color c1, Color c2)
        {
            cam = new Camera(new Vector3(0, MathHelper.Pi, 0), 240, Vector3.Zero, Vector3.Up);

            font = f;
            color1 = c1;
            color2 = c2;
            items = new LinkedList<MenuItem>();
            positive = true;
        }
Exemple #2
0
        public static void Initialize(ContentManager Content)
        {
            fonts = new Dictionary<string, Font3D>();

            string[] sa = Directory.GetFiles("Content\\Text3D");
            for (int i = 0; i < sa.Length; i++)
            {
                string s = sa[i].Substring(15, sa[i].Length - 19);
                Font3D f = new Font3D();
                f.LoadContent(Content, s);
                fonts.Add(s.ToLower(), f);
            }
        }