diff clients/rio_de_hola/scripts/world.py @ 11:b153abbd9900

Fixed instance outlining for rio_de_hola.
author jwt@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 06 Jul 2008 17:19:10 +0000
parents 427bb0de3e29
children 47fff0eee32e
line wrap: on
line diff
--- a/clients/rio_de_hola/scripts/world.py	Sun Jul 06 17:13:06 2008 +0000
+++ b/clients/rio_de_hola/scripts/world.py	Sun Jul 06 17:19:10 2008 +0000
@@ -210,12 +210,12 @@
 	def mouseMoved(self, evt):
 		renderer = fife.InstanceRenderer.getInstance(self.cameras['main'])
 		renderer.removeAllOutlines()
-		
-#		pt = fife.ScreenPoint(evt.getX(), evt.getY())
-#		instances = self.cameras['main'].getMatchingInstances(pt, self.agentlayer);
-#		for i in instances:
-#			if i.getObject().getId() in ('Girl', 'Beekeeper'):
-#				renderer.addOutlined(i, 173, 255, 47, 2)
+
+		pt = fife.ScreenPoint(evt.getX(), evt.getY())
+		instances = self.cameras['main'].getMatchingInstances(pt, self.agentlayer);
+		for i in instances:
+			if i.getObject().getId() in ('girl', 'beekeeper'):
+				renderer.addOutlined(i, 173, 255, 47, 2)
 	
 	def onConsoleCommand(self, command):
 		result = ''