diff --git a/cocos/ui/UITextField.cpp b/cocos/ui/UITextField.cpp index 49bc100eb3..01fa1b7587 100644 --- a/cocos/ui/UITextField.cpp +++ b/cocos/ui/UITextField.cpp @@ -799,21 +799,6 @@ std::string TextField::getDescription() const { return "TextField"; } - -void TextField::updateTextureColor() -{ - updateColorToRenderer(_textFieldRenderer); -} - -void TextField::updateTextureOpacity() -{ - updateOpacityToRenderer(_textFieldRenderer); -} - -void TextField::updateTextureRGBA() -{ - updateRGBAToRenderer(_textFieldRenderer); -} void TextField::attachWithIME() { diff --git a/cocos/ui/UITextField.h b/cocos/ui/UITextField.h index b27d5d645a..3fde1efa72 100644 --- a/cocos/ui/UITextField.h +++ b/cocos/ui/UITextField.h @@ -197,9 +197,7 @@ protected: void insertTextEvent(); void deleteBackwardEvent(); virtual void onSizeChanged() override; - virtual void updateTextureColor() override; - virtual void updateTextureOpacity() override; - virtual void updateTextureRGBA() override; + void textfieldRendererScaleChangedWithSize(); virtual Widget* createCloneInstance() override;