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
- }
複製代碼 下載
Dire Origin Base .zip
(1.46 MB, 下載次數: 20)
|