public override Scene.SceneObj OnCopy() { UI_Panel e = new UI_Panel(); //panel e.borderleft = this.borderleft; e.bordertop = this.bordertop; e.borderright = this.borderright; e.borderbottom = this.borderbottom; //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); }
public UI_PanelFold(Vector2 min, Vector2 max) { foldElement = new UI_Panel(); foldElement.Size = min; foldElement.UpdateAlign(this.posHAlign, this.posVAlign); unfoldElement = new UI_Panel(); unfoldElement.Size = max; unfoldElement.UpdateAlign(this.posHAlign, this.posVAlign); }
UI_Panel unfoldElement; //打开时显示的部分 #endregion Fields #region Constructors public UI_PanelFold(Vector2 min, Vector2 max) { foldElement = new UI_Panel(); foldElement.Size = min; foldElement.UpdateAlign(this.posHAlign, this.posVAlign); unfoldElement = new UI_Panel(); unfoldElement.Size = max; unfoldElement.UpdateAlign(this.posHAlign, this.posVAlign); }
public override Scene.SceneObj OnCopy() { UI_Panel e = new UI_Panel(); //panel e.borderleft = this.borderleft; e.bordertop = this.bordertop; e.borderright = this.borderright; e.borderbottom = this.borderbottom; //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; }