comparison engine/python/fife/extensions/basicapplication.py @ 425:ad7969d9460b

A client can now specify a global color key to be used with all images. The default color key is (255,0,255) in RGB format. Also the client can enable/disable the color key feature by using the setColorKeyEnabled function in the EngineSettings class. By default the color key feature is disabled. fixes[t:451]
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 20 Feb 2010 19:11:01 +0000
parents 64738befdf3b
children ee65aa323457
comparison
equal deleted inserted replaced
424:e29fbf84cb41 425:ad7969d9460b
101 engineSetting.setRenderBackend(settings.RenderBackend) 101 engineSetting.setRenderBackend(settings.RenderBackend)
102 engineSetting.setSDLRemoveFakeAlpha(settings.SDLRemoveFakeAlpha) 102 engineSetting.setSDLRemoveFakeAlpha(settings.SDLRemoveFakeAlpha)
103 engineSetting.setScreenWidth(settings.ScreenWidth) 103 engineSetting.setScreenWidth(settings.ScreenWidth)
104 engineSetting.setScreenHeight(settings.ScreenHeight) 104 engineSetting.setScreenHeight(settings.ScreenHeight)
105 105
106 106 try:
107 engineSetting.setColorKeyEnabled(settings.ColorKeyEnabled)
108 except:
109 pass
110
111 try:
112 engineSetting.setColorKey(*settings.ColorKey)
113 except:
114 pass
115
107 try: 116 try:
108 engineSetting.setWindowTitle(settings.WindowTitle) 117 engineSetting.setWindowTitle(settings.WindowTitle)
109 engineSetting.setWindowIcon(settings.WindowIcon) 118 engineSetting.setWindowIcon(settings.WindowIcon)
110 except: 119 except:
111 pass 120 pass