comparison demos/rio_de_hola/scripts/world.py @ 581:1e69fd582c94

- small fix due to latest changes on Floatingtextrenderer (renderer has to be enabled) NOTE: - floatingtextrenderer now can change colors of the font via setColor(uint r, uint b, uint g) - however, this doesn't affect bitmap fonts
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 02 Aug 2010 10:26:21 +0000
parents 3dff106b945b
children 5e04f6349894
comparison
equal deleted inserted replaced
580:aa813b967806 581:1e69fd582c94
231 # for that one. 231 # for that one.
232 renderer = fife.FloatingTextRenderer.getInstance(self.cameras['main']) 232 renderer = fife.FloatingTextRenderer.getInstance(self.cameras['main'])
233 textfont = self.engine.getGuiManager().createFont('fonts/rpgfont.png', 0, str(TDS.get("FIFE", "FontGlyphs"))); 233 textfont = self.engine.getGuiManager().createFont('fonts/rpgfont.png', 0, str(TDS.get("FIFE", "FontGlyphs")));
234 renderer.changeDefaultFont(textfont) 234 renderer.changeDefaultFont(textfont)
235 renderer.activateAllLayers(self.map) 235 renderer.activateAllLayers(self.map)
236 renderer.setEnabled(True)
236 237
237 # Activate the grid renderer on all layers 238 # Activate the grid renderer on all layers
238 renderer = self.cameras['main'].getRenderer('GridRenderer') 239 renderer = self.cameras['main'].getRenderer('GridRenderer')
239 renderer.activateAllLayers(self.map) 240 renderer.activateAllLayers(self.map)
240 241