Created
June 24, 2020 14:20
-
-
Save gmYusuf/15f32af89ca5f75769ef94e3b7949a8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void HelloWorld::genAccountMenu() { | |
mMenu->addChild(MenuItemLabel::create(Label::createWithSystemFont("Login", "arial", 24), [](Ref*){ | |
showMsg("to login..."); | |
// sdkbox::PluginHMS::login(0); // slient login | |
sdkbox::PluginHMS::login(1); // login (id token) | |
// sdkbox::PluginHMS::login(2); // login (author code) | |
})); | |
mMenu->addChild(MenuItemLabel::create(Label::createWithSystemFont("Logout", "arial", 24), [](Ref*){ | |
showMsg("to logout..."); | |
sdkbox::PluginHMS::logout(); | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment