X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/afeb92b07428059fd3a1022aefa64a1aeba68152..49c528b6d2cdaa39e08e00ccfa74a60751f8640a:/src/app/globals.py diff --git a/src/app/globals.py b/src/app/globals.py index ef51d78..0dde5f3 100755 --- a/src/app/globals.py +++ b/src/app/globals.py @@ -11,10 +11,14 @@ from math import floor BACKGROUND_LAYER = 0 FOREGROUND_LAYER = 1 CURSOR_LAYER = 2 -PLAYING_MODES = {'EASY':0 - ,'NORMAL':1 - ,'ADVANCED':2 - ,'EXPERT':3} +PLAYING_MODES = (('EASY' , u'Facile'), + ('NORMAL' , u'Normal'), + ('ADVANCED', u'Avancé'), + ('EXPERT' , u'Expert')) + + + +PLAYING_MODES_DICT = dict([(v[0], i) for i, v in enumerate(PLAYING_MODES)]) def hls_to_rgba_8bits(h, l, s, a=1) : #convert to rgb ranging from 0 to 255