Example #1
0
        public Block(Blueprint owner)
        {
            ID          = owner._ids;
            owner._ids += 1;
            owner.blocks.Add(this);

            blueprint = owner;

            font = (Font)Assets.find(typeof(Font));

            if (font == null)
            {
                try
                {
                    font = new Font("Data/Fonts/OpenSansB.ttf");
                }
                catch { }
            }

            textColor = new OpenGLF.Color(textColor.r, textColor.g, textColor.b, 255);
        }
Example #2
0
        public Block(Blueprint owner)
        {
            ID = owner._ids;
            owner._ids += 1;
            owner.blocks.Add(this);

            blueprint = owner;

            font = (Font)Assets.find(typeof(Font));

            if (font == null)
            {
                try
                {
                    font = new Font("Data/Fonts/OpenSansB.ttf");
                }
                catch { }
            }

            textColor = new OpenGLF.Color(textColor.r, textColor.g, textColor.b, 255);
        }