コード例 #1
0
ファイル: SceneObjTextNum.cs プロジェクト: kkndest/fightclub
        public override SceneObj OnCopy()
        {
            SceneObjTextNum e = new SceneObjTextNum();

            //this
            e.color     = this.color;
            e.drawfont1 = this.drawfont1;
            e.FixLength = this.FixLength;//将整数固定为几位

            e.colorZero = this.colorZero;
            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);
        }
コード例 #2
0
ファイル: SceneObjTextNum.cs プロジェクト: Gaopest/fightclub
        public override SceneObj OnCopy()
        {
            SceneObjTextNum e = new SceneObjTextNum();
            //this
            e.color = this.color;
            e.drawfont1 = this.drawfont1;
            e.FixLength=this.FixLength;//将整数固定为几位

            e.colorZero = this.colorZero;
            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;
        }