Cover bigger

Pause play button working
This commit is contained in:
9and3r
2014-07-21 01:38:32 +02:00
parent 912d8016d3
commit 7e25490b40
5 changed files with 138 additions and 80 deletions

View File

@@ -61,7 +61,7 @@ class BaseItem():
class TextItem(BaseItem):
def __init__(self, font, text, pos,pos2, color,text_size):
def __init__(self, font, text, pos, pos2, color, text_size):
if pos2 is not None:
BaseItem.__init__(self,pos,pos2)
self.text_size = text_size
@@ -112,11 +112,11 @@ class TextItem(BaseItem):
self.box = self.font.render(self.text, True, self.color)
surface.blit(self.box,self.pos,area=self.rect)
def set_text(self, text, size_mantain):
if size_mantain:
self.__init__(self.font, text,self.pos,None,self.color,self.text_size)
def set_text(self, text, same_size):
if same_size:
TextItem.__init__(self, self.font, text, self.pos, None, self.color, self.text_size)
else:
self.__init__(self.font, text,self.pos,self.pos2,self.color,self.text_size)
TextItem.__init__(self, self.font, text, self.pos, self.pos2, self.color, self.text_size)
class TouchObject(BaseItem):