void CN3UIButton::operator = (const CN3UIButton& other) { CN3UIBase::operator = (other); m_rcClick = other.m_rcClick; // 클릭 영역 SetSndOn(other.GetSndFName_On()); // 사운드 SetSndClick(other.GetSndFName_Click()); // 사운드 // m_ImageRef 설정하기 for(UIListItor itor = m_Children.begin(); m_Children.end() != itor; ++itor) { CN3UIBase* pChild = (*itor); if (UI_TYPE_IMAGE != pChild->UIType()) continue; // image만 골라내기 int iBtnState = (int)(pChild->GetReserved()); if (iBtnState<NUM_BTN_STATE) { m_ImageRef[iBtnState] = (CN3UIImage*)pChild; } } }
void CN3UIStatic::operator = (const CN3UIStatic& other) { CN3UIBase::operator = (other); SetSndClick(other.GetSndFName_Click()); // m_pImageBkGnd, m_pBuffOutRef 설정하기 for(UIListItor itor = m_Children.begin(); m_Children.end() != itor; ++itor) { CN3UIBase* pChild = (*itor); if (UI_TYPE_IMAGE == pChild->UIType()) { m_pImageBkGnd = (CN3UIImage*)pChild; } else if (UI_TYPE_STRING == pChild->UIType()) { m_pBuffOutRef = (CN3UIString*)pChild; } } }