Page 1 of 1

Upgrading to .7.2 from .6.2b issue

Posted: Thu Jan 13, 2011 23:39
by AlexThomas
Hello all,
Hopefully this is a quick question. I'm sure I can find a workaround for this, but as the method is seemingly missing i figured I'd ask here if there was a "right way" to resolve this issue.

There used to be an overloaded WindowManager::loadWindowLayout as such:

Code: Select all

Window* WindowManager::loadWindowLayout( const String& filename, bool generateRandomPrefix )
{
    //We really just use the bool to get rid of ambiguity with the other loadWindowLayout. There is no difference between
    //calling this loadWindowLayout and setting GRP to false, and calling the other one with no argument
    if(generateRandomPrefix)
        return loadWindowLayout(filename,generateUniqueWindowPrefix());

        return loadWindowLayout(filename);
}


The question is, where did it go? I don't see anything in the patch notes after a few searches. Is there some easy way of doing this? Admittedly, I am only using this functionality in one place in my code so it's not a huge deal. Just curious if I'm missing something. I'm not actually sure

Thanks,
AT

Re: Upgrading to .7.2 from .6.2b issue

Posted: Thu Jan 13, 2011 23:48
by Kulik
According to the porting tips (http://www.cegui.org.uk/wiki/index.php/Changes_and_Porting_Tips_for_0.7.0), this has indeed been removed. In my opinion it is filthy :-)

I think you can work this around. I use prefixes and I always have something to put as a prefix that is bound to be unique.

btw: Why are you upgrading to 0.7.2 and not 0.7.5?

Re: Upgrading to .7.2 from .6.2b issue

Posted: Fri Jan 14, 2011 14:50
by AlexThomas
Thanks Kulik.

No good reason for moving to .7.2 instead of .7.5. I think .7.2 is what comes with the latest Delta3d and the team lead, who does the builds for the team, just used that. I think it's a matter of simplicity since the combination of upgrading to major releases of Delta3d, osg, osgEarth, and CEGUI provided enough issues for us without needing to complicate things unnecessarily.

I'll probably push for the latest of CEGUI when I finish sorting out all the .6->.7 mess :). Funny, so many of the things I was previously working around are now fixed and thus my workarounds are yielding all kinds of fun results.

Take care,

AT