金币2775
积分9800
注册时间2016-12-2
最后登录2024-10-31
|
CPP代码:
- //Adding a new submenu
- Menu::MenuOption("Test Menu", "test_menu");
-
- if (Menu::currentMenu("test_menu")) {
- // your menu contents
- }
-
- //Adding an option
- if (Menu::Option("Example Option")) {
- // run option code here
- }
-
- //Adding a bool option
- Menu::BoolOption("Example Bool Option", &testBool);
-
- // if you want it to run code at same time of toggle
- if (Menu::BoolOption("Example Bool Option", &testBool)) {
- // run code here
- }
复制代码
|
|