+from ..widgets import ImageButton
+from ..transforms import Overlay
+
+class SplashButton(ImageButton):
+ def __init__(self, name, pos):
+ super(SplashButton, self).__init__("splash", "%s.png" % name, name=name,
+ pos=pos, disabled_colour=(50, 50, 50))
+ w, h = self._img.get_size()
+ img = pygame.surface.Surface((w+8, h+4), pgl.SWSURFACE).convert_alpha()
+ img.fill((0, 0, 0, 0))
+ img.blit(self._img, (8, 4), None)
+ img.fill((0, 0, 0, 255), None, pgl.BLEND_RGBA_MULT)
+ img.blit(self._img, (0, 0), None)
+ self._img = img