summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/hints.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/hints.py b/server/hints.py
index 4c97510..62999ca 100644
--- a/server/hints.py
+++ b/server/hints.py
@@ -15,6 +15,7 @@ class Hint(object):
# Hint sequence: static type, but each time a hint is sent, increase the
# message index until the last message is reached, then repeat that.
+# NOTE not used, check if we can remove this
class HintSequence(Hint):
def __init__(self, name, length):
self.name = name
@@ -32,8 +33,10 @@ class HintSequence(Hint):
class HintPopup(Hint):
hint_type = 'popup'
- def __init__(self, name):
+ def __init__(self, name, style=None):
self.name = name
+ self.style = style
def instantiate(self, hint, prev_hints):
- pass
+ if self.style is not None:
+ hint['style'] = self.style