private void PositionContainedElements(Window callingWindow) { this.SpriteListBox.ScaleX = this.ScaleX - 0.5f; this.SpriteListBox.ScaleY = this.ScaleY - 1.7f; this.SpriteListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); this.SpriteGridListBox.ScaleX = this.ScaleX - 0.5f; this.SpriteGridListBox.ScaleY = this.ScaleY - 1.7f; this.SpriteGridListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); this.SpriteFrameListBox.ScaleX = this.ScaleX - 0.5f; this.SpriteFrameListBox.ScaleY = this.ScaleY - 1.7f; this.SpriteFrameListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); this.textureListBox.ScaleX = this.ScaleX - 0.5f; this.textureListBox.ScaleY = this.ScaleY - 1.7f; this.textureListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); this.mModelListBox.ScaleX = this.ScaleX - 0.5f; this.mModelListBox.ScaleY = this.ScaleY - 1.7f; this.mModelListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); this.mTextListBox.ScaleX = this.ScaleX - 0.5f; this.mTextListBox.ScaleY = this.ScaleY - 1.7f; this.mTextListBox.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); mAnimationChainListWindow.ScaleX = this.ScaleX - 0.5f; mAnimationChainListWindow.ScaleY = this.ScaleY - 1.7f; mAnimationChainListWindow.SetPositionTL(this.ScaleX, this.ScaleY + 1.2f); }
private void PositionAndScaleChildrenWindows(Window callingWindow) { addEmitter.ScaleX = (ScaleX - .5f) / 2.0f; addEmitter.ScaleY = 1.3f; addEmitter.SetPositionTL(addEmitter.ScaleX + .5f, 2 * ScaleY - 1.5f); deleteEmitter.ScaleX = (ScaleX - .5f) / 2.0f; deleteEmitter.ScaleY = 1.3f; deleteEmitter.SetPositionTL(addEmitter.X + addEmitter.ScaleX + deleteEmitter.ScaleX + .25f, 2 * ScaleY - 1.5f); mListDisplayWindow.SetPositionTL(ScaleX, ScaleY - 1.7f); mListDisplayWindow.ScaleX = ScaleX; mListDisplayWindow.ScaleY = ScaleY - 1.7f; }