Ayuto wrote:No, currently there isn't, but you can create your own timeout by delay-calling <your menu>.close() after sending it.
ic thanks!
Syntax: Select all
from players.helpers import index_from_userid
from events import Event
from menus import SimpleMenu
from menus import Option
from menus import Text
from listeners.tick import tick_delays
def test_select_callback(menu, ply_index, option):
return
test_menu = SimpleMenu()
test_menu.append(Text('test'))
test_menu.select_callback = test_select_callback
@Event
def player_death(game_event):
userid = game_event.get_int('userid')
index = index_from_userid(userid)
test_menu.send(index)
tick_delays.delay(5, test_menu.close())
Syntax: Select all
# ...
tick_delays.delay(5, test_menu.close, index)
Return to “News & Announcements”
Users browsing this forum: No registered users and 3 guests