Skip to content
Snippets Groups Projects
Commit 3b52d8e1 authored by stefan's avatar stefan
Browse files

dokk (the docking game):

 - fix for language seleciton
 - linebreak for long french sentences

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2186 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent bfd85a7e
No related branches found
No related tags found
No related merge requests found
[TEXT]
RMSD: Sie sind %.1f von der Lösung entfernt
SECONDS: noch %i Sekunden
[TEXT]
RMSD: Vous êtes a %.1f de la solution
SECONDS: encore %i secondes
......@@ -84,7 +84,8 @@ TEXTCOLORBLUE: 0
TEXTSIZE: 16
TEXT_COUNT: 1
TEXT1: Bravo, vous avez russi! Vous pouvez maintenant essayer le niveau suivant.
TEXT1: Bravo, vous avez russi! Vous pouvez maintenant essayer le
niveau suivant.
TEXTTIME1: 8000
TEXTCOLORRED1: 0
TEXTCOLORGREEN1: 255
......
......@@ -42,8 +42,11 @@ class DokkGLCanvas(QGLWidget):
gfx.Scene().RenderGL()
def SetLevel(self, level):
level_dir = "datafiles"
ini_file = "hud"+self.dokk.GetLanguage()+".ini"
self.config = Config(os.path.join('datafiles', ini_file))
if not os.path.exists(os.path.join(level_dir, ini_file)):
ini_file = "hud.ini"
self.config = Config(os.path.join(level_dir, ini_file))
self.spnav_input.SetLevel(level)
def paintEvent(self, event):
......
......@@ -35,6 +35,8 @@ class Level(QtCore.QObject):
def Load(self):
level_dir=os.path.join('datafiles', self.name_)
ini_file = "level"+Dokk().GetLanguage()+".ini"
if not os.path.exists(os.path.join(level_dir, ini_file)):
ini_file = "level.ini"
self.config = Config(os.path.join(level_dir, ini_file))
self.topten = TopTen(os.path.join(level_dir, 'top_ten.ini'))
print 'Loading %s' % self.config.Level["NAME"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment