Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/usmpgames/infostate.py
diff options
context:
space:
mode:
authorMateu Batle <mateu.batle@collabora.co.uk>2010-11-15 02:37:03 (GMT)
committer Mateu Batle <mateu.batle@collabora.co.uk>2010-11-15 02:37:03 (GMT)
commit383eeb4d3e48cd81be2827149e299755e5449ae9 (patch)
tree5eb8656be09eab31244c6668bf152476f7cae4c2 /usmpgames/infostate.py
parentf57ab3583a29bf35d5517d0cec1e10eafeb43bc4 (diff)
Fixed title
Diffstat (limited to 'usmpgames/infostate.py')
-rwxr-xr-xusmpgames/infostate.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/usmpgames/infostate.py b/usmpgames/infostate.py
index b0ccbdd..9bf46ee 100755
--- a/usmpgames/infostate.py
+++ b/usmpgames/infostate.py
@@ -35,12 +35,11 @@ class InfoState(ApplicationState):
textobj.update()
self.add_image( textobj.area, pos )
- def add_text2(self, text, color, pos, rectsize):
+ def add_text2(self, text, color, pos, rectsize, font = None):
text_rect = pygame.Rect( pos, rectsize )
- textobj = KTextSurfaceWriter(text_rect)
+ fillcolor = (231,178,66,0)
+ textobj = KTextSurfaceWriter(text_rect, font, color, fillcolor)
textobj.text = (text)
- textobj.color = color
- textobj.fillcolor = (231,178,66,0)
textobj.invalidate()
self._ktexts.append(textobj)