예제 #1
0
float STVisibleRect::getBannerHeight(){
    float bannerSize = 0;
    STSystemFunction st;
    bool istablet = st.isTabletAvailable();
    if (istablet == false) {
        bannerSize = 50;
    }else {
        bannerSize = 90;
    }
    return bannerSize;
}
예제 #2
0
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);
//    }
    
}