Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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;
        }