MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / init

Method init

Source/MoreGamesLayer.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool MoreGamesLayer::init()
41{
42 auto layer = ax::Layer::create();
43
44 std::string bigFontStr = GameToolbox::getTextureString("bigFont.fnt");
45 const auto& winSize = ax::Director::getInstance()->getWinSize();
46
47 auto label = ax::Label::createWithBMFont(bigFontStr, "Nothing here yet... sorry :(");
48 label->setScale(0.6f);
49 label->setPosition(0, 0);
50 layer->addChild(label);
51
52 auto dropdownlayer = DropDownLayer::create(layer, "RobTop Games");
53 dropdownlayer->showLayer(true, false);
54
55 return true;
56}

Callers 1

createMethod · 0.45

Calls 4

createFunction · 0.85
setScaleMethod · 0.80
setPositionMethod · 0.80
showLayerMethod · 0.80

Tested by

no test coverage detected