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