金币2797
积分9842
注册时间2016-12-2
最后登录2024-11-22
|
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
- }
复制代码
|
|