mirror of https://github.com/axmolengine/axmol.git
m_nDefaultTouchPriority is never used anymore; Instead, we setTouchPriority(1) directly for all CCControl by default.
This commit is contained in:
parent
9144946176
commit
053efa0537
|
@ -37,7 +37,6 @@ NS_CC_EXT_BEGIN
|
|||
|
||||
CCControl::CCControl()
|
||||
: m_bIsOpacityModifyRGB(false)
|
||||
, m_nDefaultTouchPriority(0)
|
||||
, m_eState(CCControlStateNormal)
|
||||
, m_hasVisibleParents(false)
|
||||
, m_bEnabled(false)
|
||||
|
@ -76,8 +75,7 @@ bool CCControl::init()
|
|||
setHighlighted(false);
|
||||
|
||||
// Set the touch dispatcher priority by default to 1
|
||||
setDefaultTouchPriority(1);
|
||||
this->setTouchPriority(m_nDefaultTouchPriority);
|
||||
this->setTouchPriority(1);
|
||||
// Initialise the tables
|
||||
m_pDispatchTable = new CCDictionary();
|
||||
|
||||
|
|
|
@ -91,8 +91,6 @@ class CCControl : public CCLayerRGBA
|
|||
//CCRGBAProtocol
|
||||
bool m_bIsOpacityModifyRGB;
|
||||
|
||||
/** Changes the priority of the button. The lower the number, the higher the priority. */
|
||||
CC_SYNTHESIZE(int, m_nDefaultTouchPriority, DefaultTouchPriority);
|
||||
/** The current control state constant. */
|
||||
CC_SYNTHESIZE_READONLY(CCControlState, m_eState, State);
|
||||
|
||||
|
|
Loading…
Reference in New Issue