mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10114 from Dhilan007/v3-UIEditBoxTest-fix
Fixed UIEditBoxTest display error font size
This commit is contained in:
commit
af489e998a
|
@ -71,12 +71,6 @@ bool UIEditBoxTest::init()
|
|||
// middle
|
||||
_editPassword = ui::EditBox::create(editBoxSize, "extensions/orange_edit.png");
|
||||
_editPassword->setPosition(Vec2(visibleOrigin.x+visibleSize.width/2, visibleOrigin.y+visibleSize.height/2));
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
_editPassword->setFont("American Typewriter", 30);
|
||||
#else
|
||||
_editPassword->setFont("American Typewriter", 80);
|
||||
_editPassword->setPlaceholderFont("American Typewriter", 80);
|
||||
#endif
|
||||
_editPassword->setFontColor(Color3B::GREEN);
|
||||
_editPassword->setPlaceHolder("Password:");
|
||||
_editPassword->setMaxLength(6);
|
||||
|
|
Loading…
Reference in New Issue