self.size = self.surface.get_rect().size
def draw(self, surface):
- surface.blit(self.surface, self.pos)
+ surface.blit(self.surface, self.rect)
class TextBoxWidget(TextWidget):
word = glyph.markup_text
remaining_words.insert(0, word)
if current_words and words_fit(current_words):
+ line_count += 1
yield ' '.join(current_words)
def prepare(self):
y += line_surface.get_rect().height
for pos, img in image_map.items():
self.surface.blit(img, pos)
-
- def draw(self, surface):
- surface.blit(self.surface, self.rect)