from ..events import SceneChangeEvent
from ..utils import debug_timer
from ..loader import loader
-from ..transforms import Overlay, Multiply
+from ..transforms import Overlay, Multiply, Alpha
from ..constants import SCREEN_SIZE, FONTS
from ..widgets import ImageButton
else:
self._tool = tool.name
if self._tool == 'seed':
- self._set_cursor(tool.name)
+ self._set_cursor('seed', transform=Alpha(alpha=172))
elif self._tool == 'red_spotlight':
self._set_cursor(
'spotlight',
mult.fill(self.colour)
surface.blit(mult, (0, 0), None, pgl.BLEND_RGBA_MULT)
return surface
+
+
+class Alpha(Transform):
+ """ Make translucent. """
+
+ ARGS = ["alpha"]
+
+ def apply(self, surface):
+ surface.fill((255, 255, 255, self.alpha), None, pgl.BLEND_RGBA_MULT)
+ return surface