Exemplo n.º 1
0
        public virtual void Render(PaintEventArgs e)
        {
            if (this._IsVisible == true)
            {
                //GameRenderEngine.DrawInterfaceObject(e, this);

                if (this._DrawRenderRectangle == true)
                {
                    GameRenderEngine.DrawRectangleOfObject(e, this._RenderRectangle);
                }
            }
        }
Exemplo n.º 2
0
        public override void Render(PaintEventArgs e)
        {
            base.Render(e);

            if (this._RecalculateMeasureStringSize == true)
            {
                this._MeasureStringSize = this.CalculateMeasureSize(e);
                base.Size = this._MeasureStringSize;
                this._RecalculateMeasureStringSize = false;
            }

            GameRenderEngine.DrawFontString(e, this);
        }
Exemplo n.º 3
0
        public void Render(PaintEventArgs e)
        {
            CursorType CursorType = (CursorType)this._CursorTypes[this._CurrentCursorType];

            if (CursorType != null)
            {
                GameRenderEngine.DrawGameObject(e, CursorType.Texture, _CursorRectangle);
            }
            else
            {
                CursorType = (CursorType)this._CursorTypes[Cursortypes.NORMAL];
                GameRenderEngine.DrawGameObject(e, CursorType.Texture, _CursorRectangle);
            }
        }