projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fenêtre de jeu : agrandissement comme il faut en bordure.
[minwii.git]
/
src
/
app
/
globals.py
diff --git
a/src/app/globals.py
b/src/app/globals.py
index
ef51d78
..
0dde5f3
100755
(executable)
--- 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
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
def hls_to_rgba_8bits(h, l, s, a=1) :
#convert to rgb ranging from 0 to 255