///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Copy constructor /// </summary> /// /// <param name="copy">Instance to copy</param> /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public ChildWindow(ChildWindow copy) : base(copy) { ClosedCallback = copy.ClosedCallback; MovedCallback = copy.MovedCallback; m_LoadedConfigFile = copy.m_LoadedConfigFile; m_Size = copy.m_Size; m_BackgroundColor = copy.m_BackgroundColor; m_BackgroundTexture = copy.m_BackgroundTexture; m_TitleText = new Text(copy.m_TitleText); m_TitleBarHeight = copy.m_TitleBarHeight; m_SplitImage = copy.m_SplitImage; m_DraggingPosition = copy.m_DraggingPosition; m_DistanceToSide = copy.m_DistanceToSide; m_TitleAlignment = copy.m_TitleAlignment; m_BorderColor = copy.m_BorderColor; m_Borders = copy.m_Borders; m_CloseButton = new Button(copy.m_CloseButton); m_KeepInParent = copy.m_KeepInParent; Global.TextureManager.CopyTexture(copy.m_IconTexture, m_IconTexture); Global.TextureManager.CopyTexture(copy.m_TextureTitleBar_L, m_TextureTitleBar_L); Global.TextureManager.CopyTexture(copy.m_TextureTitleBar_M, m_TextureTitleBar_M); Global.TextureManager.CopyTexture(copy.m_TextureTitleBar_R, m_TextureTitleBar_R); if (copy.m_BackgroundTexture != null) { m_BackgroundSprite.Texture = m_BackgroundTexture; m_BackgroundSprite.Scale = new Vector2f(m_Size.X / m_BackgroundTexture.Size.X, m_Size.Y / m_BackgroundTexture.Size.Y); m_BackgroundSprite.Color = new Color (255, 255, 255, m_Opacity); } }
/// <summary> /// Copy constructor /// </summary> public ChildWindow(ChildWindow copy) : base(copy) { }