Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- menu function example
- -- define menu callbacks first
- local checked = true
- function func1() print("Pink Forte Wave!!") end
- function func2() print("Blue Forte Wave!!") checked = not checked end
- function func3() print("Gold Forte Burst!!") end
- function func4() print("Silver Forte Wave!!") end
- function func5() print("Puri Puri") end
- function func6() print("Puririn") end
- -- add an new menu to emu
- local submenu1 = {
- { "Tsubomi", func1 },
- { "Erika", func2 },
- { "Itsuki", func3 },
- { "Yuri", func4 }
- }
- local submenu2 = {
- { "Cure Blossom", func1 },
- { "Cure Marine", func2 },
- { "Cure Sunshine", func3 },
- { "Cure Moonlight", func4 }
- }
- local menu = {
- { "Before Transformation", submenu1 },
- { "After Transformation", submenu2 },
- nil,
- { "Chypre", func5 },
- { "Coffret", func6 }
- }
- emu.addmenu("Heartcatch", menu)
- -- update menu enabled/checked state here
- emu.registermenustart(function()
- emu.setmenuiteminfo(func5, { enabled = false })
- emu.setmenuiteminfo(func2, { checked = checked })
- end)
Advertisement
Add Comment
Please, Sign In to add comment