public virtual void Render(PaintEventArgs e) { if (this._IsVisible == true) { //GameRenderEngine.DrawInterfaceObject(e, this); if (this._DrawRenderRectangle == true) { GameRenderEngine.DrawRectangleOfObject(e, this._RenderRectangle); } } }
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); }
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); } }