Ignore:
Timestamp:
Sep 7, 2013, 6:23:17 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Sligthly pinker ephemeral notes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r520 r521  
    302302
    303303class EphemeralNote(GameObject):
    304     def __init__(self, message, timeout):
     304    def __init__(self, message, timeout, **kwargs):
     305        kwargs.setdefault('bg_colour', (255, 180, 180, 192))
    305306        super(EphemeralNote, self).__init__(
    306307            None,
    307308            render.NullRenderer(),
    308309            puzzle.YesPuzzler(),
    309             render.TextOverlay(message),
     310            render.TextOverlay(message, **kwargs),
    310311        )
    311312        self.add_timer('timeout', timeout)
Note: See TracChangeset for help on using the changeset viewer.