diff --git a/source/gui/gui.cpp b/source/gui/gui.cpp index 6a1abcde3..8ae835bdf 100644 --- a/source/gui/gui.cpp +++ b/source/gui/gui.cpp @@ -69,7 +69,7 @@ void CGUIObject::init(GUIId _id) m_id=_id; m_x=m_y=m_w=m_h=0; - m_flags=INITIAL_FLAGS; + m_flags=getInitialFlags(); m_this=this; // Add to the end of the linked list of GUI objects.. diff --git a/source/gui/gui.h b/source/gui/gui.h index 946d32de8..7997ad6f6 100644 --- a/source/gui/gui.h +++ b/source/gui/gui.h @@ -37,10 +37,8 @@ public: typedef enum { FLAG_SELECTED= 1<<0, - FLAG_HIDDEN= 1<<1, - FLAG_DRAWBORDER= 1<<2, - - INITIAL_FLAGS= FLAG_DRAWBORDER, + FLAG_HIDDEN= 1<<2, + FLAG_DRAWBORDER= 1<<3, } GUI_FLAGS; enum @@ -80,6 +78,9 @@ public: protected: + virtual GUI_FLAGS getInitialFlags() {return FLAG_DRAWBORDER;} + virtual int isSelectable() {return false;} + int getX() {return m_x;} int getY() {return m_y;} int getW() {return m_w;}