def print(self): draw_overlay_window(self.pad, 0, 0, self.h, self.w, 'Подобрать предметы', '[Enter] - Взять, [Пробел] - Выход', color=WHT_BLK) for i, item in enumerate(self.loot.items): draw_text(self.pad, 3 + i, 5, self.h - 4, self.w - 7, item.name, BLK_WHT if i == self.current else WHT_BLK)
def print(self): draw_window(self.screen.pad, self.dy + 1, self.dx + 1, len(self.choices) + 5, 35, 'Выберите класс') draw_window(self.screen.pad, self.dy + len(self.choices) + 7, self.dx + 1, 13, 35, 'Характеристики') draw_window(self.screen.pad, self.dy + 1, self.dx + 38, len(self.choices) + 5, 135, 'Описание класса') draw_window(self.screen.pad, self.dy + len(self.choices) + 7, self.dx + 38, 13, 135, 'Предыстория') draw_text(self.screen.pad, self.dy + 3, self.dx + 40, len(self.choices) + 5, 132, self.description) tlen = draw_text(self.screen.pad, self.dy + len(self.choices) + 9, self.dx + 40, len(self.choices) + 5, 132, self.personal) draw_text(self.screen.pad, self.dy + len(self.choices) + 9 + tlen, self.dx + 40, len(self.choices) + 5, 132, self.skills) self._print_stats()
def _print_stats(self): draw_class_stats(self.screen.pad, self.dy + len(self.choices) + 9, self.dx + 3, self.clazz) draw_text(self.screen.pad, self.dy + len(self.choices) + 16, self.dx + 3, 1, 34, '(можно изменить позднее)')
def print(self): draw_overlay_window(self.pad, 0, 0, self.h, self.w, 'Обучение', '[Enter] - OK') draw_text(self.pad, 3, 5, self.h-4, self.w-7, self.text, BLU_WHT)