menu build callback being called over and over
Posted: Sat Apr 28, 2018 11:59 pm
I must be missing something or menus package is bugged maybe?
results in this in the console and the menu to keep getting more items added to it for some reason.
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
From all the examples it seems like its supposed to be as simple as that, what is going on?
Syntax: Select all
def build_menu(menu, player_index):
menu.append(PagedOption("test"))
print("added to menu")
main_menu = PagedMenu(
build_callback=build_menu
)
@SayCommand("!testmenu")
def _menu_command(command, index, team_only):
main_menu.send(index)
results in this in the console and the menu to keep getting more items added to it for some reason.
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
added to menu
From all the examples it seems like its supposed to be as simple as that, what is going on?