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:
authorPablo Moleri <pmoleri@gmail.com>2010-09-27 23:34:35 (GMT)
committer Pablo Moleri <pmoleri@gmail.com>2010-09-27 23:34:35 (GMT)
commit38dd9292bc2d441e34bb1e2b58a0c259b9d7ba01 (patch)
tree6f33f51fab90fc80f368c4d4de7791f068fa43a6 /Saludame.activity/window.py
parent166dd9f52f389741d0a2d6adf448700ec8da927b (diff)
parent2c5d9e219521dcd6d0eb75f0531a35dadfb4a290 (diff)
Conflicts:
Saludame.activity/window.py
Diffstat (limited to 'Saludame.activity/window.py')
-rwxr-xr-xSaludame.activity/window.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/Saludame.activity/window.py b/Saludame.activity/window.py
index fbe7a8f..5ac77f2 100755
--- a/Saludame.activity/window.py
+++ b/Saludame.activity/window.py
@@ -2,9 +2,10 @@
import pygame
import os
-import menucreator
+import menu_creator
import animation
import utilities
+import status_bars
BLACK = pygame.Color("black")
BACKGROUND_PATH = os.path.normpath("assets/background/background.png")
@@ -159,14 +160,17 @@ class MainWindow():
self.clock = clock
self.rect = pygame.Rect(0, 0, 1200, 780)
self.windows = [] # Lista de ventanas que 'componen' la ventana principal
- self.windows.append(BlinkWindow(pygame.Rect((700, 0), (500, 140)), 5, pygame.Color("red")))
- self.windows.append(BlinkWindow(pygame.Rect((700, 150), (500, 140)), 5, pygame.Color("blue")))
- self.windows.append(StatusWindow(pygame.Rect((700, 300), (500, 140)), 2, pygame.Color("gray")))
+ #self.windows.append(BlinkWindow(pygame.Rect((700, 0), (500, 140)), 5, pygame.Color("red")))
+ #self.windows.append(BlinkWindow(pygame.Rect((700, 150), (500, 140)), 5, pygame.Color("blue")))
+ #self.windows.append(StatusWindow(pygame.Rect((700, 300), (500, 140)), 2, pygame.Color("gray")))
self.windows.append(KidWindow(pygame.Rect((0, 0), (600, 500)), 1))
self.windows.append(animation.Apple(pygame.Rect((150, 600), (150, 172)), 10))
- self.windows.append(menucreator.load_menu())
+ self.windows.append(menu_creator.load_menu())
self.windows.append(animation.FPS(pygame.Rect((650, 80), (50, 20)), 15, self.clock))
+ self.status_bars = status_bars.BarsWindow((700, 90), 1, pygame.Color("gray"))
+ self.windows.append(self.status_bars)
+
self.buttons = []
self.buttons.append(MainWindow.CustomizationButton(self.rect, 10, 650))
self.buttons.append(MainWindow.ChallengesButton(self.rect, 70, 650))
@@ -176,12 +180,17 @@ class MainWindow():
def handle_mouse_down(self, (x, y), windows_controller):
# Temporal para probar el manejo de ventanas entre 'challenges' y 'main'
#windows_controller.set_active_window("challenges")
+
for button in self.buttons:
if button.contains_point(x, y):
button.on_mouse_click(windows_controller)
+ # Temporal para probar BarsWindow
+ self.status_bars.on_mouse_click((x,y))
+
def handle_mouse_over(self, (x, y)):
None
def get_windows(self):
return self.windows
+