Mercurial > fife-parpg
changeset 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 | ab09325f901e |
children | 9e15a6f37e8e |
files | clients/rio_de_hola/scripts/world.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
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 = ''