198 |
if 0: |
if 0: |
199 |
cs1 = vs.coords.affineCoordsys(0, 5, 570, 450, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 570, 450, 1, 0, 0, 1) |
200 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
201 |
putText(vs, cs1, words[self.seed], color=(0,0,0),w=4,h=4) |
putText(vs, cs1, words[self.seed], color=(0,0,0),w=400,h=400) |
202 |
|
|
203 |
return vs |
return vs |
204 |
|
|
322 |
|
|
323 |
cs1 = vs.coords.affineCoordsys(0, 5, 350, 350, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 350, 350, 1, 0, 0, 1) |
324 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
325 |
putText(vs, cs1, msg, color=(0,0,0),w=1,h=1,x=100) |
putText(vs, cs1, msg, color=(0,0,0),w=100,h=100,x=100) |
326 |
putText(vs, cs1, msg2, color=(0,0,0),w=1,h=1, y=400) |
putText(vs, cs1, msg2, color=(0,0,0),w=100,h=100, y=400) |
327 |
#self.prepareNextTrial() |
#self.prepareNextTrial() |
328 |
|
|
329 |
return vs |
return vs |
349 |
if self.message != None: |
if self.message != None: |
350 |
cs1 = vs.coords.affineCoordsys(0, 5, 300, 450, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 300, 450, 1, 0, 0, 1) |
351 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
352 |
putText(vs, cs1, self.message, color=(1,1,1)) |
putText(vs, cs1, self.message, color=(1,1,1), w=100, h=100) |
353 |
|
|
354 |
return vs |
return vs |
355 |
|
|
381 |
|
|
382 |
cs1 = vs.coords.affineCoordsys(0, 5, 100, 450, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 100, 450, 1, 0, 0, 1) |
383 |
vs.matcher.add(cs1, "txt") |
vs.matcher.add(cs1, "txt") |
384 |
putText(vs, cs1, "Press 'F1' to start", color=(0,.75,0)) |
putText(vs, cs1, "Press 'F1' to start", color=(0,.75,0),w=100,h=100) |
385 |
putText(vs, cs1, "seed = " + str(self.seed), color=(0,.75,0), y = 100) |
putText(vs, cs1, "seed = " + str(self.seed), color=(0,.75,0), y = 100,w=100,h=100) |
386 |
|
|
387 |
if self.pq != None: |
if self.pq != None: |
388 |
cs1 = vs.coords.affineCoordsys(0, 10, 800, 450, 390, 0, 0, 390) |
cs1 = vs.coords.affineCoordsys(0, 10, 800, 450, 390, 0, 0, 390) |
414 |
AbstractUpdateManager.setNoAnimation() |
AbstractUpdateManager.setNoAnimation() |
415 |
AbstractUpdateManager.chg() |
AbstractUpdateManager.chg() |
416 |
|
|
417 |
|
fontsize = 100 |
|
font = None |
|
|
def getText(text, x = 0, y = 0, z = 0, w = 1, h = 1): |
|
|
global font |
|
|
if font == None: |
|
|
font = GL.createFont("gfx/fonts/a010013l.pfb", 100) |
|
|
|
|
|
return GLRen.createHorizText(font, text, x, y, z, w,h) |
|
|
|
|
|
def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, w = 1, h = 1): |
|
|
if color != None: |
|
|
putnoc(vs, getDListNocoords("Color " + js(color))) |
|
|
putnoc(vs, getDListNocoords(""" |
|
|
PushAttrib ENABLE_BIT |
|
|
Enable TEXTURE_2D |
|
|
Enable ALPHA_TEST |
|
|
Enable BLEND |
|
|
BlendFunc SRC_ALPHA ONE_MINUS_SRC_ALPHA |
|
|
""")) |
|
|
|
|
|
t = getText(text, x, y, z, w, h) |
|
|
vs.map.put(t, cs1) |
|
|
|
|
|
putnoc(vs, getDListNocoords(""" |
|
|
PopAttrib |
|
|
""")) |
|
|
|
|
|
|
|
418 |
currentScene = MenuScene() |
currentScene = MenuScene() |
419 |
|
|
420 |
|
|