# Path: foos/config.py

# 
# Path: foos/ui/ui.py
# def registerMenu(f):
#     menuGenerators.append(f)


from threading import Thread
from foos import config
from foos.ui.ui import registerMenu
import time
import logging
            # check party mode
            if self.game_end_time and not self.sudden_death and now > max(self.game_end_time, self.check_win_time if self.check_win_time else 0):
                self.check_party_win(now > self.game_end_time)

            # check timeout close
            if self.timeout_close_time and now > self.timeout_close_time:
                self.bus.notify("timeout_close")
                self.timeout_close_time = None

            if self.sudden_death and now > self.game_end_time + self.party_mode_auto_off:
                logger.info("Automatically turning off party mode")
                self.bus.notify("set_game_mode", {"mode": self.game_win_score, "timeout": None})

            time.sleep(0.1)

    def getMenuEntries(self):
        def q(ev, ev_data):
            def f():
                self.bus.notify(ev, ev_data)
                self.bus.notify("menu_hide")
            return f

        def check(string, mode, party_timeout):
            pre = "○ "  # ◌○
            if mode == self.game_win_score and party_timeout == self.party_timeout:
                pre = "◉ "  # ◉●

            return pre + string

        def name(mode, party_timeout):

# Path: foos/config.py

# 
# Path: foos/ui/ui.py
# def registerMenu(f):
#     menuGenerators.append(f)


# Path: plugins/game.py
from threading import Thread
from foos import config
from foos.ui.ui import registerMenu
import time
import logging

            # check party mode
            if self.game_end_time and not self.sudden_death and now > max(self.game_end_time, self.check_win_time if self.check_win_time else 0):
                self.check_party_win(now > self.game_end_time)

            # check timeout close
            if self.timeout_close_time and now > self.timeout_close_time:
                self.bus.notify("timeout_close")
                self.timeout_close_time = None

            if self.sudden_death and now > self.game_end_time + self.party_mode_auto_off:
                logger.info("Automatically turning off party mode")
                self.bus.notify("set_game_mode", {"mode": self.game_win_score, "timeout": None})

            time.sleep(0.1)

    def getMenuEntries(self):
        def q(ev, ev_data):
            def f():
                self.bus.notify(ev, ev_data)
                self.bus.notify("menu_hide")
            return f

        def check(string, mode, party_timeout):
            pre = "○ "  # ◌○
            if mode == self.game_win_score and party_timeout == self.party_timeout:
                pre = "◉ "  # ◉●

            return pre + string

        def name(mode, party_timeout):

            if mode is None: