''' colonne utilisée pour l'affichage d'une touche du clavier de jeu.
'''
- def __init__(self, group, index, hue, rect, tone) :
+ def __init__(self, group, index, hue, rect, tone, displayNote=True) :
pygame.sprite.DirtySprite.__init__(self, group)
self.index = index
self.state = False
w, h = rect.w, rect.h
tw, th, = toneName.get_size()
toneRect = pygame.Rect(((w - tw) / 2, h - th), (tw, th))
- sur.blit(toneName, toneRect)
+ if displayNote :
+ sur.blit(toneName, toneRect)
self.surOff = sur
self.rectOff = rect
self.surOn = gradients.vertical(rectOn.size, topRgba, bottomRgba)
w, h = rectOn.w, rectOn.h
toneRect = pygame.Rect(((w - tw) / 2, h - th), (tw, th))
- self.surOn.blit(toneName, toneRect)
+ if displayNote :
+ self.surOn.blit(toneName, toneRect)
self.rectOn = rectOn
self.image = self.surOff