>> Do you think I should include everything from CEGUI-0.6.0/Samples/datafiles,
and should I retain the directory structure or flatten it into a
single directory ????
If you retain the current directory structure the problem is that you
end up with 2 directories each with different versions of
TaharezLook.imageset/looknfeel/scheme files:
/media/gui - Ogre gui files (looknfeel no Tree)
/media/datafiles - Cegui gui files (looknfeel with Tree)
resources.cfg
--------------------
1) FileSystem=../media/gui
2) FileSystem=./datafiles
FileSystem=./datafiles/configs
FileSystem=./datafiles/imagesets
FileSystem=./datafiles/looknfeel
FileSystem=./datafiles/fonts
FileSystem=./datafiles/layouts
FileSystem=./datafiles/schemes
If you swap the the order of (1) and (2) in resources.cfg, ogre's
looknfeel is loaded and the ogre cegui demos run fine but tree demo
crashes:
In short you have several options:
a) update Ogre's gui media files
b) Remove ../media/gui from resources.cfg and override
_loadResources / _setUpResources to change the load order of Ogre's/
CEGUI's gui media:
ogre.ResourceGroupManager.getSingleton().addResourceLocation("../media/
gui", "FileSystem", "General", False)
c) Update the demos to use the TaharezLook.scheme, e.g
# Load Cegui Scheme
cegui.SchemeManager.getSingleton().loadScheme("TaharezLook.scheme")
self.system.setDefaultMouseCursor("TaharezLook", "MouseArrow")
SCHEME_FONT = {}
SCHEME_FONT['Commonwealth-10'] = "Commonwealth-10.font"
SCHEME_FONT['BlueHighway-12'] = "bluehighway-12.font"
SCHEME_FONT['BlueHighway-10'] = "bluehighway-10.font"
SCHEME_FONT['BlueHighway-8'] = "bluehighway-8.font"
for f in SCHEME_FONT.keys():
if not CEGUI.FontManager.getSingleton().isFontPresent(f):
CEGUI.FontManager.getSingleton().createFont(SCHEME_FONT[f])
self.system.setDefaultFont("BlueHighway-12")
....
d) As (c) and remove the /media/gui/*Taharez* files
If you are looking at compatibility for Cegui 0.50 / 0.60 then
probably retaining the cegui/ogre directory structure and (b)/(c) with
a flag to check for version of cegui in use is the way to go.
On Jun 29, 7:56 am, "Andy Miller" <
nzmill...@gmail.com> wrote:
> I think I'll move the CEGUI media files into Python-Ogre/demos/cegui/media
> (as I've done with other demo sets)...
>
> Do you think I should include everything from CEGUI-0.6.0/Samples/datafiles,
> and should I retain the directory structure or flatten it into a single
> directory ????
>
> Thanks
>
> Andy
>
> 2008/6/29 dermont <
dermontg...@gmail.com>: