| 301 | } |
| 302 | |
| 303 | const char* GarageLayer::getSpriteName(int id, bool actived) |
| 304 | { |
| 305 | switch (id) |
| 306 | { |
| 307 | case 0: return actived ? "gj_iconBtn_on_001.png" : "gj_iconBtn_off_001.png"; |
| 308 | case 1: return actived ? "gj_shipBtn_on_001.png" : "gj_shipBtn_off_001.png"; |
| 309 | case 2: return actived ? "gj_ballBtn_on_001.png" : "gj_ballBtn_off_001.png"; |
| 310 | case 3: return actived ? "gj_birdBtn_on_001.png" : "gj_birdBtn_off_001.png"; |
| 311 | case 4: return actived ? "gj_dartBtn_on_001.png" : "gj_dartBtn_off_001.png"; |
| 312 | case 5: return actived ? "gj_robotBtn_on_001.png" : "gj_robotBtn_off_001.png"; |
| 313 | case 6: return actived ? "gj_spiderBtn_on_001.png" : "gj_spiderBtn_off_001.png"; |
| 314 | case 7: return actived ? "gj_streakBtn_on_001.png" : "gj_streakBtn_off_001.png"; |
| 315 | case 8: return actived ? "gj_explosionBtn_on_001.png" : "gj_explosionBtn_off_001.png"; |
| 316 | } |
| 317 | return nullptr; |
| 318 | } |
| 319 | |
| 320 | void GarageLayer::setupPage(IconType type, int page) |
| 321 | { |