Page 1 of 1

Change Log Output Path

Posted: Thu Jul 15, 2010 14:44
by CrimsonGT
Couple of quick easy questions to start the day off. Is there anyway to change the output directory of the CEGUI.log file? I have a logs folder Ogre and everything else outputs to, and I would like CEGUI to spew all its unhappy logs into that directory if possible.

Also, I just finished the Menu tutorial. Code version worked perfect, and I got XML mostly working but had a couple of questions.

What is NativeHorzRes/NativeVertRes in the imageset? I changed them around to various amounts but they didn't seem to have any influence on the actual display.

There is also a white border around my render window (despite it being fullscreen) and I am just wondering if there is a border option somewhere I forgot to turn off. It is coming from CEGUI as using pure Ogre code to display a background image was fine.

Thanks!

Re: Change Log Output Path

Posted: Thu Jul 15, 2010 16:14
by agamemnus
NativeHorzRes/NativeVertRes are there to determine the X/Yscaling factor if you set AutoScaled="true" in an imageset xml.

Re: Change Log Output Path

Posted: Thu Jul 15, 2010 20:11
by Jamarr
CrimsonGT wrote:Couple of quick easy questions to start the day off. Is there anyway to change the output directory of the CEGUI.log file? I have a logs folder Ogre and everything else outputs to, and I would like CEGUI to spew all its unhappy logs into that directory if possible.


You should call CEGUI::Logger::getSingleton().setLogFilename() before initializing CEGUI.

There is also a white border around my render window (despite it being fullscreen) and I am just wondering if there is a border option somewhere I forgot to turn off. It is coming from CEGUI as using pure Ogre code to display a background image was fine.


What does "render window" mean? Are you talking about a frame window? your gui-sheet? This is too vague. Do you have a screen shot?

Re: Change Log Output Path

Posted: Fri Jul 16, 2010 18:25
by CrimsonGT
As far as the log file goes, is there anyway to make all of the logs go into a custom folder? I noticed when setting setLogFilename() it split the CEGUI output between cegui.log and the one I specified.

As far as the border issues goes, I solved it. I had not used the looknfeel files but the one I was using (taharez or whatever) had borders set to true.

Re: Change Log Output Path

Posted: Fri Jul 16, 2010 19:00
by Jamarr
...before initializing CEGUI.