# HG changeset patch # User prock@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1274279675 0 # Node ID 226e26d1d11e64f7fbadc9fba1f2d410c70f2473 # Parent ee65aa32345798e25df7d2738b89fea809424b43 Fixed the pychan demo. Changed the default color key in basicapplication to 255,0,255 diff -r ee65aa323457 -r 226e26d1d11e demos/pychan_demo/settings-dist.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demos/pychan_demo/settings-dist.xml Wed May 19 14:34:35 2010 +0000 @@ -0,0 +1,25 @@ + + + + 0 + 1 + OpenGL + 1024 + 768 + 0 + 5.0 + 1 + Pychan demo [FIFE Client] + gui/icons/pychan_logo.png + fonts/freefont/FreeMono.ttf + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\" + 16 + controller ; GUI + True + 1 + 0 + False + 255,0,255 + + + \ No newline at end of file diff -r ee65aa323457 -r 226e26d1d11e demos/pychan_demo/settings.py --- a/demos/pychan_demo/settings.py Tue May 18 19:37:31 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- - -# #################################################################### -# Copyright (C) 2005-2009 by the FIFE team -# http://www.fifengine.de -# This file is part of FIFE. -# -# FIFE is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# #################################################################### - -BitsPerPixel = 0 -FullScreen = 0 -InitialVolume = 5 -PlaySounds = 1 -RenderBackend = "OpenGL" -SDLRemoveFakeAlpha = 1 -ScreenWidth = 1024 -ScreenHeight = 768 - -LogModules = ['GUI']#['hexgrid'] -LogToPrompt = 1 -LogToFile = 0 - -FontGlyphs = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\"" -Font = 'fonts/freefont/FreeMono.ttf' - -# optional color key settings -ColorKeyEnabled = 0 -ColorKey = 255,0,255 - -WindowTitle = 'Pychan demo [FIFE Client]' -WindowIcon = 'gui/icons/pychan_logo.png' diff -r ee65aa323457 -r 226e26d1d11e engine/python/fife/extensions/basicapplication.py --- a/engine/python/fife/extensions/basicapplication.py Tue May 18 19:37:31 2010 +0000 +++ b/engine/python/fife/extensions/basicapplication.py Wed May 19 14:34:35 2010 +0000 @@ -114,7 +114,7 @@ pass try: - key = self._setting.get("FIFE", "ColorKey", "255,255,255").split(',') + key = self._setting.get("FIFE", "ColorKey", "255,0,255").split(',') engineSetting.setColorKey(int(key[0]), int(key[1]), int(key[2])) except: pass