コード例 #1
0
ファイル: UI_Panel.cs プロジェクト: kkndest/fightclub
        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);
        }
コード例 #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);
 }
コード例 #3
0
ファイル: UI_PanelFold.cs プロジェクト: Gaopest/fightclub
        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);
        }
コード例 #4
0
ファイル: UI_Panel.cs プロジェクト: Gaopest/fightclub
        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;
        }