This commit is contained in:
parent
c9b5825e8e
commit
5ea7baa201
@ -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..
|
||||
|
@ -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;}
|
||||
|
Loading…
Reference in New Issue
Block a user