comparison demos/rio_de_hola/scripts/world.py @ 583:47b49b9b0c0a

* Improved the floatingtextrenderer. Now you can set an alpha value for font, background quad and border. Splited quad and border into own commands. * Added a triangle function to backends and genericrenderer, also added the functions to set an alpha value for geometric figures.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 07 Aug 2010 16:36:35 +0000
parents 5e04f6349894
children d1df6cf5ff23
comparison
equal deleted inserted replaced
582:5e04f6349894 583:47b49b9b0c0a
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.setDefaultBackground(100, 255, 100, 50, 255, 50) 236 renderer.setDefaultBackground(100, 255, 100, 165)
237 renderer.setDefaultBorder(50, 255, 50)
237 renderer.setEnabled(True) 238 renderer.setEnabled(True)
238 239
239 # Activate the grid renderer on all layers 240 # Activate the grid renderer on all layers
240 renderer = self.cameras['main'].getRenderer('GridRenderer') 241 renderer = self.cameras['main'].getRenderer('GridRenderer')
241 renderer.activateAllLayers(self.map) 242 renderer.activateAllLayers(self.map)