Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/usmpgames/infostate.py
diff options
context:
space:
mode:
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)