Пример #1
0
        public void addLabel(Rectangle size, bool visible, string text)
        {
            InterfaceLabel temp = new InterfaceLabel((_SM as InfiniminerGame), _P);

            temp.size    = size;
            temp.visible = visible;
            temp.text    = text;
            elements.Add(temp);
        }
Пример #2
0
        private void Compile(string path, InterfaceLabel res)
        {
            Writer.Write((int)Type.Label);
            var clabel = new CLabel();

            clabel.Base  = new CElement(res);
            clabel.Color = new TextureCompiler.CColor(res.Color);
            clabel.Text  = res.Text;
            clabel.Write(Writer);
        }