Beispiel #1
0
        public override SceneObj OnCopy()
        {
            SceneObjText e = new SceneObjText();

            //this
            e.color     = this.color;
            e.drawfont1 = this.drawfont1;
            e.valign    = this.valign; //水平对齐
            e.halign    = this.halign; //垂直对齐
            //uielement
            e.Text       = this.Text;
            e.Orient     = this.Orient;
            e.Size       = this.Size;
            e.posHAlign  = this.posHAlign;
            e.posVAlign  = this.posVAlign;
            e.ClipRender = this.ClipRender;
            //scene
            e._pos       = this._pos;
            e._scale     = this._scale;
            e.needUpdate = true;



            return(e);
        }
Beispiel #2
0
        public override SceneObj OnCopy()
        {
            SceneObjText e = new SceneObjText();
            //this
            e.color = this.color;
            e.drawfont1 = this.drawfont1;
            e.valign = this.valign;//水平对齐
            e.halign = this.halign;//垂直对齐
            //uielement
            e.Text = this.Text;
            e.Orient = this.Orient;
            e.Size = this.Size;
            e.posHAlign = this.posHAlign;
            e.posVAlign = this.posVAlign;
            e.ClipRender = this.ClipRender;
            //scene
            e._pos = this._pos;
            e._scale = this._scale;
            e.needUpdate = true;

            return e;
        }