///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Copy constructor /// </summary> /// /// <param name="copy">Instance to copy</param> /// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public EditBox(EditBox copy) : base(copy) { TextChangedCallback = copy.TextChangedCallback; ReturnKeyPressedCallback = copy.ReturnKeyPressedCallback; m_LoadedConfigFile = copy.m_LoadedConfigFile; m_SelectionPointVisible = copy.m_SelectionPointVisible; m_LimitTextWidth = copy.m_LimitTextWidth; m_DisplayedText = copy.m_DisplayedText; m_Text = copy.m_Text; m_TextSize = copy.m_TextSize; m_TextAlignment = copy.m_TextAlignment; m_SelChars = copy.m_SelChars; m_SelStart = copy.m_SelStart; m_SelEnd = copy.m_SelEnd; m_PasswordChar = copy.m_PasswordChar; m_MaxChars = copy.m_MaxChars; m_SplitImage = copy.m_SplitImage; m_TextCropPosition = copy.m_TextCropPosition; m_SelectedTextBackground = new RectangleShape(copy.m_SelectedTextBackground); m_SelectionPoint = new RectangleShape(copy.m_SelectionPoint); m_TextBeforeSelection = new Text(copy.m_TextBeforeSelection); m_TextSelection = new Text(copy.m_TextSelection); m_TextAfterSelection = new Text(copy.m_TextAfterSelection); m_TextFull = new Text(copy.m_TextFull); m_PossibleDoubleClick = copy.m_PossibleDoubleClick; m_NumbersOnly = copy.m_NumbersOnly; m_SeparateHoverImage = copy.m_SeparateHoverImage; m_Borders = copy.m_Borders; Global.TextureManager.CopyTexture(copy.m_TextureNormal_L, m_TextureNormal_L); Global.TextureManager.CopyTexture(copy.m_TextureNormal_M, m_TextureNormal_M); Global.TextureManager.CopyTexture(copy.m_TextureNormal_R, m_TextureNormal_R); Global.TextureManager.CopyTexture(copy.m_TextureHover_L, m_TextureHover_L); Global.TextureManager.CopyTexture(copy.m_TextureHover_M, m_TextureHover_M); Global.TextureManager.CopyTexture(copy.m_TextureHover_R, m_TextureHover_R); Global.TextureManager.CopyTexture(copy.m_TextureFocused_L, m_TextureFocused_L); Global.TextureManager.CopyTexture(copy.m_TextureFocused_M, m_TextureFocused_M); Global.TextureManager.CopyTexture(copy.m_TextureFocused_R, m_TextureFocused_R); }
/// <summary> /// Copy constructor /// </summary> /// <param name="copy">Object to copy</param> public EditBox(EditBox copy) : base(copy) { }