#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
import os

class Text:
    # Static variables
    fontPath = 'Resources/Fonts/'

    @staticmethod
    def renderLabel(text, color, fontFamily, fontSize, x, y, align, display):
        font = pygame.font.Font(Text.fontPath + fontFamily, fontSize)
        label = font.render(text, True, pygame.Color(color))

        if align == 'topleft':
            labelRect = label.get_rect(topleft = (x, y))
        elif align == 'topright':
            labelRect = label.get_rect(topright = (x, y))
        else:
            labelRect = label.get_rect()
            labelRect.center = (x, y)

        display.blit(label, labelRect)
78be2a76fc8d155367d7042bd6850d2d064aa655
<mask token>


class Text:
    <mask token>
    <mask token>

<mask token>


class Text:
    <mask token>

    @staticmethod
    def renderLabel(text, color, fontFamily, fontSize, x, y, align, display):
        font = pygame.font.Font(Text.fontPath + fontFamily, fontSize)
        label = font.render(text, True, pygame.Color(color))
        if align == 'topleft':
            labelRect = label.get_rect(topleft=(x, y))
        elif align == 'topright':
            labelRect = label.get_rect(topright=(x, y))
        else:
            labelRect = label.get_rect()
            labelRect.center = x, y
        display.blit(label, labelRect)

<mask token>


class Text:
    fontPath = 'Resources/Fonts/'

    @staticmethod
    def renderLabel(text, color, fontFamily, fontSize, x, y, align, display):
        font = pygame.font.Font(Text.fontPath + fontFamily, fontSize)
        label = font.render(text, True, pygame.Color(color))
        if align == 'topleft':
            labelRect = label.get_rect(topleft=(x, y))
        elif align == 'topright':
            labelRect = label.get_rect(topright=(x, y))
        else:
            labelRect = label.get_rect()
            labelRect.center = x, y
        display.blit(label, labelRect)

import pygame
import os


class Text:
    fontPath = 'Resources/Fonts/'

    @staticmethod
    def renderLabel(text, color, fontFamily, fontSize, x, y, align, display):
        font = pygame.font.Font(Text.fontPath + fontFamily, fontSize)
        label = font.render(text, True, pygame.Color(color))
        if align == 'topleft':
            labelRect = label.get_rect(topleft=(x, y))
        elif align == 'topright':
            labelRect = label.get_rect(topright=(x, y))
        else:
            labelRect = label.get_rect()
            labelRect.center = x, y
        display.blit(label, labelRect)

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
import os

class Text:
    # Static variables
    fontPath = 'Resources/Fonts/'

    @staticmethod
    def renderLabel(text, color, fontFamily, fontSize, x, y, align, display):
        font = pygame.font.Font(Text.fontPath + fontFamily, fontSize)
        label = font.render(text, True, pygame.Color(color))

        if align == 'topleft':
            labelRect = label.get_rect(topleft = (x, y))
        elif align == 'topright':
            labelRect = label.get_rect(topright = (x, y))
        else:
            labelRect = label.get_rect()
            labelRect.center = (x, y)

        display.blit(label, labelRect)