mirror of https://github.com/axmolengine/axmol.git
refactor TextField setColor & setOpacity
This commit is contained in:
parent
5ae97da030
commit
282264575b
|
@ -800,21 +800,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()
|
||||
{
|
||||
_textFieldRenderer->attachWithIME();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue