MCPcopy Create free account
hub / github.com/9miao/CrossApp / showLeftViewController

Method showLeftViewController

CrossApp/controller/CADrawerController.cpp:215–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void CADrawerController::showLeftViewController(bool animated)
216{
217 CC_RETURN_IF(m_bAnimation);
218 m_bShow = true;
219
220 this->begin();
221
222 if (animated)
223 {
224 m_fCurrDivision = m_pContainer[1]->getFrameOrigin().x;
225 CAScheduler::schedule(schedule_selector(CADrawerController::scheduleShowAction), this, 1/60.0f);
226 m_bAnimation = true;
227 }
228 else
229 {
230 m_fCurrDivision = m_fDivision;
231 this->updateViewFrame();
232 this->showEnded();
233 }
234}
235
236void CADrawerController::hideLeftViewController(bool animated)
237{

Callers 3

ccTouchEndedMethod · 0.95
buttonCallBackMethod · 0.80

Calls 4

beginMethod · 0.95
updateViewFrameMethod · 0.95
showEndedMethod · 0.95
scheduleFunction · 0.85

Tested by

no test coverage detected