private void TableauMaterialTabInventoryItemTooltipOnRender(Texture sender, EventArgs e) { TableauView tableauView = this.View; if ((NativeObject)tableauView == (NativeObject)null) { tableauView = sender.TableauView; tableauView.SetEnable(this._isEnabled); } tableauView.SetRenderWithPostfx(true); tableauView.SetClearColor(0U); tableauView.SetScene(this._tableauScene); if ((NativeObject)this._camera == (NativeObject)null) { this._camera = Camera.CreateCamera(); this._camera.SetViewVolume(true, -0.5f, 0.5f, -0.5f, 0.5f, 0.01f, 100f); this.ResetCamera(); tableauView.SetSceneUsesSkybox(false); } tableauView.SetCamera(this._camera); if (this._isRotatingByDefault) { this.UpdateRotation(1f, 0.0f); } tableauView.SetDeleteAfterRendering(false); tableauView.SetContinuousRendering(true); }
private void SetEnabled(bool enabled) { this._isEnabled = enabled; TableauView view = this.View; if (view != null) { view.SetEnable(this._isEnabled); } }
protected void SetEnabled(bool enabled) { this._isRotatingByDefault = false; this._isRotating = false; this.ResetCamera(); this._isEnabled = enabled; TableauView view = this.View; if (!((NativeObject)view != (NativeObject)null)) { return; } view.SetEnable(this._isEnabled); }
public void OnFinalize() { if ((NativeObject)this._camera != (NativeObject)null) { this._camera.ReleaseCameraEntity(); this._camera = (Camera)null; } TableauView view = this.View; if ((NativeObject)view != (NativeObject)null) { view.SetEnable(false); } if (!((NativeObject)this._tableauScene != (NativeObject)null)) { return; } this._tableauScene.ClearAll(); this._tableauScene = (Scene)null; }
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); }