Made fonts higher resolution

main
Yan Wittmann 2023-03-27 18:41:12 +02:00
parent 3f90be42d0
commit e83a418702
1 changed files with 4 additions and 3 deletions

View File

@ -21,7 +21,8 @@ class LevelMenu:
current_text_label_y = self.y_pos current_text_label_y = self.y_pos
for index, level in enumerate(self.levels): 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 = 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)) text_label.add_click_listener(lambda: self.level_select_listener(level))
self.level_text_labels.append(text_label) self.level_text_labels.append(text_label)
@ -32,5 +33,5 @@ class LevelMenu:
else: else:
current_text_label_x += self.width / self.column_count current_text_label_x += self.width / self.column_count
def extract_level(name): def extract_level(self):
return name return self