I have the following:
Multiple scheme files that use Falagard. Below is an outtake of the relevant XML from two of my scheme files. The assumption here is that the correct looknfeel files etc exist.
Contents of "LookA.scheme"
Code: Select all
<?xml version="1.0" ?>
<GUIScheme Name="LookA">
...
<FalagardMapping WindowType="LookA/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="LookA/Button" />
...
</GUIScheme>
Contents of "LookB.scheme"
Code: Select all
<?xml version="1.0" ?>
<GUIScheme Name="LookB">
...
<FalagardMapping WindowType="LookB/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="LookB/Button" />
...
</GUIScheme>
The problem I have:
As soon as one of these two schemes are unloaded, it goes and destroys the WindowRendererFactory (In my case, "Falagard/Button"), even tho it is still used by another scheme.
Am I using the .schemes incorrectly, or is there some way to tell CEGUI to track references to the factory?
Thnx for any help.