Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmathquwy.py6
-rwxr-xr-xusmpgames/infostate.py7
-rwxr-xr-xusmpgames/ktextsurfacewriter.py2
3 files changed, 8 insertions, 7 deletions
diff --git a/mathquwy.py b/mathquwy.py
index 47c74df..c41a808 100755
--- a/mathquwy.py
+++ b/mathquwy.py
@@ -103,11 +103,13 @@ class MathQuwy(usmpgames.Application):
main_menu.add_menu_option(_("Salir"), None )
main_menu.pos = (750, 300)
+ fonttitle = pygame.font.Font(None, 50)
main_menu.add_text2(
_(""" Quwy\n El Cuy Matematico"""),
- color = (55, 25, 34, 0),
+ color = (255, 25, 34, 0),
pos = (700, 190),
- rectsize = (380, 390));
+ rectsize = (380, 390),
+ font = fonttitle);
self.push_state( main_menu )
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)
diff --git a/usmpgames/ktextsurfacewriter.py b/usmpgames/ktextsurfacewriter.py
index 4639528..3a7bd47 100755
--- a/usmpgames/ktextsurfacewriter.py
+++ b/usmpgames/ktextsurfacewriter.py
@@ -24,7 +24,7 @@ class KTextSurfaceWriter(object):
self.font = pygame.font.Font(None, 30)
else:
self.font = font
- #self.fillcolor = fillcolor
+ self.fillcolor = fillcolor
self.color = color
self._text = "KTextSurfaceWriter - version %s" % __version__
self._resultPage = []