195 |
vs.map.put(self.pq, cs1, cs2) |
vs.map.put(self.pq, cs1, cs2) |
196 |
|
|
197 |
if 0: |
if 0: |
198 |
cs1 = vs.coords.affineCoordsys(0, 10, 570, 450, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 570, 450, 1, 0, 0, 1) |
199 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
200 |
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=4,h=4) |
201 |
|
|
319 |
else: |
else: |
320 |
msg2 = "Ei ollut nähty" |
msg2 = "Ei ollut nähty" |
321 |
|
|
322 |
cs1 = vs.coords.affineCoordsys(0, 10, 350, 350, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 350, 350, 1, 0, 0, 1) |
323 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
324 |
putText(vs, cs1, msg, color=(0,0,0),w=1,h=1,x=100) |
putText(vs, cs1, msg, color=(0,0,0),w=1,h=1,x=100) |
325 |
putText(vs, cs1, msg2, color=(0,0,0),w=1,h=1, y=400) |
putText(vs, cs1, msg2, color=(0,0,0),w=1,h=1, y=400) |
346 |
putnoc(vs, background(self.bgcolor)) |
putnoc(vs, background(self.bgcolor)) |
347 |
|
|
348 |
if self.message != None: |
if self.message != None: |
349 |
cs1 = vs.coords.affineCoordsys(0, 10, 300, 450, 1, 0, 0, 1) |
cs1 = vs.coords.affineCoordsys(0, 5, 300, 450, 1, 0, 0, 1) |
350 |
vs.matcher.add(cs1, "msg") |
vs.matcher.add(cs1, "msg") |
351 |
putText(vs, cs1, self.message, color=(1,1,1)) |
putText(vs, cs1, self.message, color=(1,1,1)) |
352 |
|
|
415 |
|
|
416 |
|
|
417 |
font = None |
font = None |
418 |
def getText(text, x = 0, y = 0, z = 20, w = 1, h = 1): |
def getText(text, x = 0, y = 0, z = 0, w = 1, h = 1): |
419 |
global font |
global font |
420 |
if font == None: |
if font == None: |
421 |
font = GL.createFont("gfx/fonts/a010013l.pfb", 100) |
font = GL.createFont("gfx/fonts/a010013l.pfb", 100) |
422 |
|
|
423 |
return GLRen.createHorizText(font, text, x, y, z, w,h) |
return GLRen.createHorizText(font, text, x, y, z, w,h) |
424 |
|
|
425 |
def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 20, w = 1, h = 1): |
def putText(vs, cs1, text, color = None, x = 0, y = 0, z = 0, w = 1, h = 1): |
426 |
if color != None: |
if color != None: |
427 |
putnoc(vs, getDListNocoords("Color " + js(color))) |
putnoc(vs, getDListNocoords("Color " + js(color))) |
428 |
putnoc(vs, getDListNocoords(""" |
putnoc(vs, getDListNocoords(""" |