Mercurial > fife-parpg
comparison demos/rpg/scripts/gamecontroller.py @ 611:678fd71c0753
Fixed the floating text renderer in the rpg demo.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 21 Sep 2010 20:49:08 +0000 |
parents | f85762e634c5 |
children | e3140f01749d |
comparison
equal
deleted
inserted
replaced
610:3087215c9ca1 | 611:678fd71c0753 |
---|---|
338 self._scene.createScene(mapname) | 338 self._scene.createScene(mapname) |
339 | 339 |
340 self._instancerenderer = fife.InstanceRenderer.getInstance(self._scene.cameras[self._settings.get("RPG", "DefaultCameraName", "camera1")]) | 340 self._instancerenderer = fife.InstanceRenderer.getInstance(self._scene.cameras[self._settings.get("RPG", "DefaultCameraName", "camera1")]) |
341 self._floatingtextrenderer = fife.FloatingTextRenderer.getInstance(self._scene.cameras[self._settings.get("RPG", "DefaultCameraName", "camera1")]) | 341 self._floatingtextrenderer = fife.FloatingTextRenderer.getInstance(self._scene.cameras[self._settings.get("RPG", "DefaultCameraName", "camera1")]) |
342 self._floatingtextrenderer.addActiveLayer(self._scene.actorlayer) | 342 self._floatingtextrenderer.addActiveLayer(self._scene.actorlayer) |
343 self._floatingtextrenderer.setBackground(255, 100, 100, 165) | |
344 self._floatingtextrenderer.setBorder(255, 50, 50) | |
345 self._floatingtextrenderer.setEnabled(True) | |
343 | 346 |
344 if self._listener: | 347 if self._listener: |
345 self._listener.attach() | 348 self._listener.attach() |
346 | 349 |
347 def switchMap(self, newmapname): | 350 def switchMap(self, newmapname): |