Exemple #1
0
    def __init__(self, sb, screen, size, lb_res):
        self.screen = screen
        self.res = size

        self.style = f"{Path.style()}winner_menu{Path.DATA_SUFFIX}"
        self.soundtrack = Path.soundtracks()
        self.image = Path.images()

        self.lb_back, self.lb_player, self.lb_score, self.lb_mult = lb_res
        self.object_id = "#Text" if size[0] == 1920 else "#Text2"

        self.sb = sb
        self.scores = self._get_scores()
        self._show_lb()
Exemple #2
0
    def __init__(self, screen: Any, data: dict, **kwargs):
        self.screen = screen
        self.data = data
        self.score_1, self.score_2 = data.values()
        self.name_1, self.name_2 = data.keys()
        self.st = Settings()
        self.size = self.st.size
        self.width = self.st.width

        self.resources = Path.resources()
        self.styles = Path.styles()
        self.sounds = Path.sounds()
        self.soundtrack = Path.soundtracks()
        self.font = Path.fonts()
        self.image = Path.images()

        self._createUI(kwargs)

        self.sb = ScoreboardData(data)
        self.sb.updateTable()
        self.sb.winnerUpdate()