float STVisibleRect::getBannerHeight(){ float bannerSize = 0; STSystemFunction st; bool istablet = st.isTabletAvailable(); if (istablet == false) { bannerSize = 50; }else { bannerSize = 90; } return bannerSize; }
Rect STVisibleRect::getMovableRect(){ float bannerSize = 0; STSystemFunction st; bool istablet = st.isTabletAvailable(); if (istablet == true) { bannerSize = 50; }else { bannerSize = 90; } return Rect(Director::getInstance()->getVisibleOrigin().x, Director::getInstance()->getVisibleOrigin().y+bannerSize, Director::getInstance()->getVisibleSize().width, Director::getInstance()->getVisibleSize().height-bannerSize); // } }