Example #1
0
    def __init__(self, ability, ability_id, coord, color='white'):

        self.ability = ability
        self.ready = True

        image = TileSet.get_icon_tiles().get_tile_image(ability_id)
        w = image.rect.w
        h = image.rect.h

        Icon.__init__(self, coord, w, h, image, color)

        self.tick = 0
    def __init__(self, panel, coord, color):

        image = TileSet.get_icon_tiles().get_tile_image(''.join(
            (color, '_crystal')))
        w = image.rect.w
        h = image.rect.h
        self.color_name = color
        Icon.__init__(self, coord, w, h, image, color=color)

        self.panel = panel

        self.tick = 0
        self.count = 0

        self.state = 0
Example #3
0
    def __init__(self, **kwargs):
        self._pulser = Pulser(self)
        self._base_color = None
        self._pulse_color = None
        self._paused = False
        self._pulsing = False

        self._start_size = 100
        self._end_size = 100
        self._zoom_steps = 1
        self._icon_size = max(self._start_size, self._end_size)

        Icon.__init__(self, **kwargs)

        self._palette = None
        self.connect('destroy', self.__destroy_cb)
    def __init__(self, player, coord):

        Icon.__init__(self, coord, 16, 24, None)
        self.player = player