Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Saludame.activity/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'Saludame.activity/window.py')
-rwxr-xr-xSaludame.activity/window.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Saludame.activity/window.py b/Saludame.activity/window.py
index 066f255..6ae3afa 100755
--- a/Saludame.activity/window.py
+++ b/Saludame.activity/window.py
@@ -44,6 +44,9 @@ class Window:
def set_bg_color(self, color):
self.bg_color = color
+
+ def dispose(self):
+ self.windows_controller.unregister_window(self)
# Abstract function.
def pre_draw(self, screen):
@@ -155,7 +158,15 @@ class Window:
button.showing_tooltip = False
button.over = False
button.on_mouse_out()
+
+ # It will be overridden by cooking challenge or other D&D challenge
+ def handle_mouse_motion(self, (x, y)):
+ pass
+ # It will be overridden by cooking challenge or other D&D challenge
+ def handle_mouse_up(self, pos):
+ pass
+
def move(self, (x, y)):
""" Moves the window the given offset, notifying all its subitems """
self.rect.move_ip(x, y)