def __init__(self, renderer, layer):
		"""
		@param renderer: Renderer used to render the icons
		@param layer: map layer, needed to place icon
		"""
		self.layer = layer
		self.renderer = renderer
		self.run = dict()
		self.animation_duration = 20 # The duration how long the image moves up
		self.animation_steps = 1 # The steps that the image makes every run
		self.background = "content/gui/images/background/produced_notification.png"

		ResourceProduced.subscribe(self._on_resource_produced)
    def __init__(self, renderer, layer):
        """
		@param renderer: Renderer used to render the icons
		@param layer: map layer, needed to place icon
		"""
        self.layer = layer
        self.renderer = renderer
        self.run = {}
        self.animation_duration = 20  # The duration how long the image moves up
        self.animation_steps = 1  # The steps that the image makes every run
        self.background = "content/gui/images/background/produced_notification.png"

        ResourceProduced.subscribe(self._on_resource_produced)
 def enable(self):
     ResourceProduced.subscribe(self._on_resource_produced)
	def enable(self):
		ResourceProduced.subscribe(self._on_resource_produced)