public void SetTargetSize(int width, int height) { this._isRotating = false; if (width <= 0 || height <= 0) { this._tableauSizeX = 10; this._tableauSizeY = 10; } else { this._tableauSizeX = width; this._tableauSizeY = height; } this._cameraRatio = (float)this._tableauSizeX / (float)this._tableauSizeY; TableauView view = this.View; if ((NativeObject)view != (NativeObject)null) { view.SetEnable(false); } this.Texture = TableauView.AddTableau(new RenderTargetComponent.TextureUpdateEventHandler(this.TableauMaterialTabInventoryItemTooltipOnRender), (object)this._tableauScene, this._tableauSizeX, this._tableauSizeY); }
public void SetTargetSize(int width, int height) { this._isRotatingCharacter = false; if (width <= 0 || height <= 0) { this._tableauSizeX = 10; this._tableauSizeY = 10; } else { this._tableauSizeX = (int)((float)width * 1f); this._tableauSizeY = (int)((float)height * 1f); } this._cameraRatio = (float)this._tableauSizeX / (float)this._tableauSizeY; TableauView view = this.View; if (view != null) { view.SetEnable(false); } this.Texture = TableauView.AddTableau(new RenderTargetComponent.TextureUpdateEventHandler(this.CharacterTableauContinuousRenderFunction), this._tableauScene, this._tableauSizeX, this._tableauSizeY); }