Example #1
0
        public override clgf.Scene.SceneObj OnCopy()
        {
            UI_Btn e = new UI_Btn();

            //this
            e.btntag    = this.btntag;
            e.imgNormal = this.imgNormal;
            e.imgTouch  = this.imgTouch;

            //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);
        }
Example #2
0
        public override clgf.Scene.SceneObj OnCopy()
        {
            UI_Btn e = new UI_Btn();
            //this
            e.btntag = this.btntag;
            e.imgNormal = this.imgNormal;
            e.imgTouch = this.imgTouch;

            //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;
        }