mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 12:04:36 -04:00
and also make MenuLayer use it
This commit is contained in:
parent
abaff24575
commit
07733c6fac
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class $modify(CustomMenuLayer, MenuLayer) {
|
|||
setIDSafe(this, 0, "main-menu-bg");
|
||||
getChildOfType<CCSprite>(this, 0)->setID("main-title");
|
||||
|
||||
if (CCApplication::get()->getControllerConnected()) {
|
||||
if (PlatformToolbox::isControllerConnected()) {
|
||||
getChildOfType<CCSprite>(this, 1)->setID("play-gamepad-icon");
|
||||
getChildOfType<CCSprite>(this, 2)->setID("editor-gamepad-icon");
|
||||
getChildOfType<CCSprite>(this, 3)->setID("icon-kit-gamepad-icon");
|
||||
|
|
Loading…
Add table
Reference in a new issue