Merge remote-tracking branch 'origin/main'

main
Eren Saglam 2023-03-27 18:41:04 +02:00
commit afe6945d94
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