[CS:GO] Parent Menu
Posted: Sat Nov 10, 2018 5:24 pm
How would I make a parent_menu if it takes an argument like index.
Code: Select all
def menu_1(index):
player = player_instances[index]
steamid = player.steamid
menu = PagedMenu(
title='Menu 1',
select_callback=None
)
menu.append(PagedOption('Hello1', 'hello'))
menu.send(index)
def menu_2(index):
menu = PagedMenu(
title='Menu 2',
select_callback=None,
parent_menu=menu_1
)
menu.append(PagedOption('Hello2', 'hello'))
menu.send(index)