From e83a418702497dca75d0ebceaf75339ca676042a Mon Sep 17 00:00:00 2001 From: Yan Wittmann Date: Mon, 27 Mar 2023 18:41:12 +0200 Subject: [PATCH] Made fonts higher resolution --- project/ui_elements/LevelMenu.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/project/ui_elements/LevelMenu.py b/project/ui_elements/LevelMenu.py index 8b50a35..a650dbf 100644 --- a/project/ui_elements/LevelMenu.py +++ b/project/ui_elements/LevelMenu.py @@ -21,7 +21,8 @@ class LevelMenu: current_text_label_y = self.y_pos for index, level in enumerate(self.levels): - text_label = TextLabel(level.name, current_text_label_x, current_text_label_y, 35) + text_label = TextLabel(level.name, current_text_label_x, current_text_label_y, 60) + text_label.position_scale.scale = (0.5, 0.5) # text_label = TextLabel(self.extract_level(level.name), current_text_label_x, current_text_label_y, 35) text_label.add_click_listener(lambda: self.level_select_listener(level)) self.level_text_labels.append(text_label) @@ -32,5 +33,5 @@ class LevelMenu: else: current_text_label_x += self.width / self.column_count - def extract_level(name): - return name + def extract_level(self): + return self