Mercurial > sypikslang
comparison gamelib/gui.py @ 228:3955d126ca26
merge
author | Rizmari Versfeld <rizziepit@gmail.com> |
---|---|
date | Sat, 12 May 2012 23:09:33 +0200 |
parents | 69941f04f1c0 |
children |
comparison
equal
deleted
inserted
replaced
227:ebb62654f61f | 228:3955d126ca26 |
---|---|
50 super(IconButton, self).__init__(rect2, n, d) | 50 super(IconButton, self).__init__(rect2, n, d) |
51 | 51 |
52 | 52 |
53 class IconTextButton(TextButton): | 53 class IconTextButton(TextButton): |
54 WIDTH = 198 | 54 WIDTH = 198 |
55 HEIGHT = 80 | 55 HEIGHT = 73 |
56 | 56 |
57 TEXT_OFFSET = (0, 60) | 57 TEXT_OFFSET = (0, 58) |
58 | 58 |
59 def __init__(self, pos, name, text, font=font_auto, shadow=True): | 59 def __init__(self, pos, name, text, font=font_auto, shadow=True): |
60 rect = (pos[0], pos[1], self.WIDTH, self.HEIGHT) | 60 rect = (pos[0], pos[1], self.WIDTH, self.HEIGHT) |
61 n = self._mk_image(name, 'normal') | 61 n = self._mk_image(name, 'normal') |
62 d = self._mk_image(name, 'down') | 62 d = self._mk_image(name, 'down') |