Re: [CsMain] How do you switch CEGUI layouts?
Hi Patrick, this is the code I use to change cegui layouts: winMgr-destroyAllWindows(); // Load layout and set as root cegui-GetSystemPtr()-setGUISheet(winMgr-loadWindowLayout( menu.layout)); Hope that helps. nev7n. Patrick Ye wrote: Hi guys, I have a question about using the CEGUI plugin and it's driving me a bit crazy. Basically, I want to have multiple GUIs for my program: one for the main interface, one for the settings interface and one for the game interface. So, I'd like to specify them in separate .layout xml files and switch them on the fly. I created the layout files and they seem to work fine just by themselves. However, when I tried to switch them, I'd get a segmentation fault. Basically, I'm using the function winMgr.loadWindowLayout(layout) to change the layouts (layout in the function is the vfs name of the layout file). It seems that I can only call the winMgr.loadWindowLayout(layout) function once, and if I call it again I will get a segfault. I cannot seem to find any examples on the internet for what I want to do, but surely pros like you guys would have done something like this. :) Any suggestions would be greatly appreciated. Thanks a lot. Patrick - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED] - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
Re: [CsMain] How do you switch CEGUI layouts?
Hi nev7n, On Dec 19, 2007 8:41 PM, nev7n [EMAIL PROTECTED] wrote: Hi Patrick, this is the code I use to change cegui layouts: winMgr-destroyAllWindows(); // Load layout and set as root cegui-GetSystemPtr()-setGUISheet(winMgr-loadWindowLayout( menu.layout)); Thanks for that, I figured this out a few days ago. This is practically the same as destroying the root window, which is what I'm doing now. But I like your approach better. Thanks a lot. Patrick - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
[CsMain] How do you switch CEGUI layouts?
Hi guys, I have a question about using the CEGUI plugin and it's driving me a bit crazy. Basically, I want to have multiple GUIs for my program: one for the main interface, one for the settings interface and one for the game interface. So, I'd like to specify them in separate .layout xml files and switch them on the fly. I created the layout files and they seem to work fine just by themselves. However, when I tried to switch them, I'd get a segmentation fault. Basically, I'm using the function winMgr.loadWindowLayout(layout) to change the layouts (layout in the function is the vfs name of the layout file). It seems that I can only call the winMgr.loadWindowLayout(layout) function once, and if I call it again I will get a segfault. I cannot seem to find any examples on the internet for what I want to do, but surely pros like you guys would have done something like this. :) Any suggestions would be greatly appreciated. Thanks a lot. Patrick - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]