mirror of https://github.com/axmolengine/axmol.git
[ci skip]Remove unwanted code.
This commit is contained in:
parent
16bce0bfd3
commit
c5ff21f7c6
|
@ -151,14 +151,6 @@ void TextFieldTTFDefaultTest::onEnter()
|
||||||
// add TextFieldTTF
|
// add TextFieldTTF
|
||||||
auto s = Director::getInstance()->getWinSize();
|
auto s = Director::getInstance()->getWinSize();
|
||||||
|
|
||||||
std::string strSubtitle = subtitle();
|
|
||||||
TTFConfig ttfConfig;
|
|
||||||
ttfConfig.fontFilePath = FONT_NAME;
|
|
||||||
ttfConfig.fontSize = 16;
|
|
||||||
auto subTitle = Label::createWithTTF(ttfConfig, strSubtitle.c_str());
|
|
||||||
addChild(subTitle, 9999);
|
|
||||||
subTitle->setPosition(VisibleRect::center().x, VisibleRect::top().y - 60);
|
|
||||||
|
|
||||||
auto pTextField = TextFieldTTF::textFieldWithPlaceHolder("<click here for input>",
|
auto pTextField = TextFieldTTF::textFieldWithPlaceHolder("<click here for input>",
|
||||||
FONT_NAME,
|
FONT_NAME,
|
||||||
FONT_SIZE);
|
FONT_SIZE);
|
||||||
|
|
Loading…
Reference in New Issue