Mercurial > skaapsteker
diff skaapsteker/engine.py @ 383:87246b84a851
Notification text.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 16:02:51 +0200 |
parents | a9d760134706 |
children | 4bec05fed6c7 |
line wrap: on
line diff
--- a/skaapsteker/engine.py Sat Apr 09 15:57:47 2011 +0200 +++ b/skaapsteker/engine.py Sat Apr 09 16:02:51 2011 +0200 @@ -121,6 +121,17 @@ # no text super(OpenDialog, cls).post(npc=npc) +class OpenNotification(UserEvent): + + utype = "OPEN_NOTIFICATION" + + @classmethod + def post(cls, text): + # request to open dialog box for given NPC sprite + # will do nothing if the NPC's current state has + # no text + super(OpenNotification, cls).post(text=text) + class CloseDialog(UserEvent): utype = "CLOSE_DIALOG"