I want to destroy all window when game exit.
But I find a problem, it is that default window is GUISheet? It doesn't has window's functions, so I can't use for loop to destroy all windows.
I want to destroy all windows like this:
for idx in xrange(win.ChildCount):
win.getChildByIdx(idx)
Destroy all windows?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
You know that CEGUI will destroy all windows at exit anyway? And also that unless you specify a window not to be destroyed by it's parent, by destroying the parent window you will also destroy all attached child windows automatically?
Aside from this all window types are derived from Window and so all window types have those member functions, so it should be working.
CE.
You know that CEGUI will destroy all windows at exit anyway? And also that unless you specify a window not to be destroyed by it's parent, by destroying the parent window you will also destroy all attached child windows automatically?
Aside from this all window types are derived from Window and so all window types have those member functions, so it should be working.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
-
- Quite a regular
- Posts: 60
- Joined: Tue Oct 28, 2008 10:46
Who is online
Users browsing this forum: No registered users and 14 guests