diff -abBdpuNPr --exclude='*.svn' irrlicht-svn-ss/trunk/include/IGUIEnvironment.h Irrlicht_starsonata/include/IGUIEnvironment.h --- irrlicht-svn-ss/trunk/include/IGUIEnvironment.h 2007-07-26 02:11:22.000000000 +0200 +++ Irrlicht_starsonata/include/IGUIEnvironment.h 2008-05-31 04:53:40.000000000 +0200 @@ -5,6 +5,7 @@ #ifndef __I_GUI_ENVIRONMENT_H_INCLUDED__ #define __I_GUI_ENVIRONMENT_H_INCLUDED__ +#include "EWindowFlags.h" #include "IUnknown.h" #include "IGUISkin.h" #include "rect.h" @@ -172,7 +177,7 @@ public: Returns a pointer to the created window. Returns 0 if an error occured. This pointer should not be dropped. See IUnknown::drop() for more information. */ virtual IGUIWindow* addWindow(const core::rect& rectangle, bool modal = false, - const wchar_t* text=0, IGUIElement* parent=0, s32 id=-1) = 0; + const wchar_t* text=0, s32 flags=EWF_CLOSE|EWF_TITLEBAR, IGUIElement* parent=0, s32 id=-1) = 0; //! Adds a modal screen. This control stops its parent's members from being //! able to recieve input until its last child is removed, it then deletes its self. diff -abBdpuNPr --exclude='*.svn' irrlicht-svn-ss/trunk/source/Irrlicht/CDefaultGUIElementFactory.cpp Irrlicht_starsonata/source/Irrlicht/CDefaultGUIElementFactory.cpp --- irrlicht-svn-ss/trunk/source/Irrlicht/CDefaultGUIElementFactory.cpp 2007-07-26 02:11:08.000000000 +0200 +++ Irrlicht_starsonata/source/Irrlicht/CDefaultGUIElementFactory.cpp 2008-08-19 19:36:02.000000000 +0200 @@ -86,7 +92,7 @@ IGUIElement* CDefaultGUIElementFactory:: case EGUIET_TOOL_BAR: return Environment->addToolBar(parent); case EGUIET_WINDOW: - return Environment->addWindow(core::rect(0,0,100,100),false,0,parent); + return Environment->addWindow(core::rect(0,0,100,100),false,0,EWF_CLOSE|EWF_TITLEBAR,parent); case EGUIET_SPIN_BOX: return Environment->addSpinBox(L"0.0", core::rect(0,0,100,100), parent); } diff -abBpNPwrU2 --exclude='*.svn' irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.cpp Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.cpp --- irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.cpp 2007-07-26 02:11:08.000000000 +0200 +++ Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.cpp 2008-08-15 18:20:47.000000000 +0200 @@ -908,5 +1204,5 @@ IGUIButton* CGUIEnvironment::addButton(c //! adds a window. The returned pointer must not be dropped. IGUIWindow* CGUIEnvironment::addWindow(const core::rect& rectangle, bool modal, - const wchar_t* text, IGUIElement* parent, s32 id) + const wchar_t* text, s32 flags, IGUIElement* parent, s32 id) { parent = parent ? parent : this; @@ -918,5 +1214,5 @@ IGUIWindow* CGUIEnvironment::addWindow(c } - IGUIWindow* win = new CGUIWindow(this, parent, id, rectangle); + IGUIWindow* win = new CGUIWindow(this, parent, id, rectangle, flags); if (text) win->setText(text); diff -abBpNPwrU2 --exclude='*.svn' irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.h Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.h --- irrlicht-svn-ss/trunk/source/Irrlicht/CGUIEnvironment.h 2007-07-26 02:11:08.000000000 +0200 +++ Irrlicht_starsonata/source/Irrlicht/CGUIEnvironment.h 2008-08-15 20:39:43.000000000 +0200 @@ -82,5 +83,5 @@ public: //! adds a window. The returned pointer must not be dropped. virtual IGUIWindow* addWindow(const core::rect& rectangle, bool modal = false, - const wchar_t* text=0, IGUIElement* parent=0, s32 id=-1); + const wchar_t* text=0, s32 flags=EWF_CLOSE|EWF_TITLEBAR, IGUIElement* parent=0, s32 id=-1); //! adds a modal screen. The returned pointer must not be dropped.