//�x�X�g�^�C��(ACE�̂�ranking2.c) void viewbestSTtime(int player){ int tempbest,color; if(Isbesttime==0)return; color = (count % 4 / 2) * (sp[player] >= 1200) * digitc[rots[player]]; if((gameMode[player]>=0)&&(gameMode[player]<=3)){//�Z�N�V�����^�C�� }else if((gameMode[player]==6) && (stage[player] < 27)){//�x�X�g�^�C�� // if( (gameMode[player] == 6) && (!maxPlay) ) { printFont(26+2*((hnext[player] >= 4) && (!player)) + 7 * player - 12 * maxPlay, 11, "BEST TIME", fontc[rots[player]]); tempbest = ST_rankingGet(player,6,0); getTime(st_time[stage[player] + tempbest]); printFont(26+2*((hnext[player] >= 4) && (!player)) + 7 * player - 12 * maxPlay, 12, string[0], color); } }
int CommonView::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 9) qt_static_metacall(this, _c, _id, _a); _id -= 9; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< Interval*>(_v) = interval(); break; case 1: *reinterpret_cast< ProtConf*>(_v) = getProtSubmit(); break; case 2: *reinterpret_cast< bool*>(_v) = showSource(); break; case 3: *reinterpret_cast< bool*>(_v) = selectParamsEnabled(); break; case 4: *reinterpret_cast< QString*>(_v) = dateTimeFormat(); break; case 5: *reinterpret_cast< QFont*>(_v) = font(); break; case 6: *reinterpret_cast< QString*>(_v) = printTitle(); break; case 7: *reinterpret_cast< QFont*>(_v) = printTitleFont(); break; case 8: *reinterpret_cast< QFont*>(_v) = printFont(); break; case 9: *reinterpret_cast< bool*>(_v) = getSaveChanges(); break; } _id -= 10; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setInterval(*reinterpret_cast< Interval*>(_v)); break; case 1: setProtConf(*reinterpret_cast< ProtConf*>(_v)); break; case 2: setShowSource(*reinterpret_cast< bool*>(_v)); break; case 3: setSelectParamsEnabled(*reinterpret_cast< bool*>(_v)); break; case 4: setDateTimeFormat(*reinterpret_cast< QString*>(_v)); break; case 5: setFont(*reinterpret_cast< QFont*>(_v)); break; case 6: setPrintTitle(*reinterpret_cast< QString*>(_v)); break; case 7: setPrintTitleFont(*reinterpret_cast< QFont*>(_v)); break; case 8: setPrintFont(*reinterpret_cast< QFont*>(_v)); break; case 9: setSaveChanges(*reinterpret_cast< bool*>(_v)); break; } _id -= 10; } else if (_c == QMetaObject::ResetProperty) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 10; } #endif // QT_NO_PROPERTIES return _id; }
int RankingView(void) { int i, xxx, col; KeyInput(); domirror = 0; // 鏡像を無効化 // 背景描画 if(background == 0) { for(i = 0; i <= 4; i++) { ExBltFastRect(4 + (category >= 2) + (category == 3), 96 * i - (count & 63) /2, 0, 0, 0, 96, 240); } } else if(background == 1) { for(i = 0; i <= 4; i++) { ExBltFastRect(4 + (category >= 2) + (category == 3), 96 * i, 0, 0, 0, 96, 240); } } else { ExBltFast(30, 0, 0); } if(category == 0) printFont(11, 3, "- BEGINNER MODE -", 4); else if(category == 1) printFont(11, 3, "- MASTER MODE -", 1); else if(category == 2) printFont(11, 3, "- 20G MODE -", 7); else printFont(11, 3, "- DEVIL MODE -", 3); // 簡易セレクトでは表示しない#1.60c7i6 if(!mini_select) { if(rankingmode) printFont(11, 4, "TIME TRIAL RANKING", category); else printFont(12, 4, "ENDLESS RANKING", category); } else { rankingmode = 1; } // printFont(2, 6, "RANK SCORE LV LINES TIME NAME", 2); ExBltRect(3, 64, 56, 206, 112, 22, 7); if(rankingmode) { ExBltRect(3, 240, 56, 154, 112, 26, 7); ExBltRect(3, 140, 56, 180, 119, 26, 7); } else { ExBltRect(3, 140, 56, 154, 112, 26, 7); ExBltRect(3, 240, 56, 180, 119, 26, 7); } ExBltRect(3, 216, 48, 180, 112, 26, 7); ExBltRect(3, 257, 48, 154, 119, 26, 7); for(i = 0; i < 5; i++) { xxx = 40 - count + 4 * i; if(xxx < 2) xxx = 2; if(i % 2 == 1) xxx = 4 - xxx; // オレンジに表示されるランキングをとりあえず導入#1.60c7f5 if(rkfl[category * 10 + rankingmode * 5 + i]) { // 完全クリアした場合 col = 7; } else if(((category == 0) && (rklv[category * 10 + rankingmode * 5 + i] == 200)) || ((category == 3) && (rklv[category * 10 + rankingmode * 5 + i] == 1300)) || (((category == 1) || (category == 2)) && (rklv[category * 10 + rankingmode * 5 + i] == 999))) { // ロール途中で窒息した場合 if(rankingmode) { col = 4; } else { col = 0; } } else { // 未カンスト col = 0; } // printFont(xxx, 8 + 2 * i, string[10 + i], col); sprintf(string[0], "%d", i + 1); printBIGFont((xxx +3) * 8, (4 * i + 9) * 8, string[0], col); printFont(xxx + 6, 4 * i + 10, string[30 + category * 10 + rankingmode* 5 + i], col); if(rankingmode) { sprintf(string[0], "%7d", rksc[category * 10 + rankingmode * 5 + i]); printFont(xxx + 25, 4 * i + 10, string[0], col); getTime(rktime[category * 10 + rankingmode * 5 + i]); printBIGFont((xxx + 11) * 8, (4 * i + 9) * 8, string[0], col); } else { sprintf(string[0], "%7d", rksc[category * 10 + rankingmode * 5 + i]); printBIGFont((xxx + 11) * 8, (4 * i + 9) * 8, string[0], col); getTime(rktime[category * 10 + rankingmode * 5 + i]); printFont(xxx + 25, 4 * i + 10, string[0], col); } sprintf(string[0], "%5d/%3d", rklv[category * 10 + rankingmode * 5 + i], rkbl[category * 10 + rankingmode * 5 + i]); printFont(xxx + 24, 4 * i + 9, string[0], col); } if(getPushState(0, 4) || getPushState(0, 5) || getPushState(1, 4) || getPushState(1, 5)) { return (-1); } return (0); }
// �Z�N�V�����^�C�������L���O�\�� void ST_RankingView() { int i, max, mode, tmp, tmp5, bps, bps1,bps2,s; mode = 1; while(1) { // �w�i�`�� count++; if(background == 0) { for(i = 0; i <= 6; i++) { ExBltFastRect(4 + (mode >= 3) + (mode == 4), 96 * i - (count % 96) / 3, 0, 0, 0, 96, 240); } } else if(background == 1) { for(i = 0; i <= 6; i++) { ExBltFastRect(4 + (mode >= 3) + (mode == 4), 96 * i, 0, 0, 0, 96, 240); } } else { ExBltFast(30, 0, 0); } ExBltRect(77, 0, 208, count % 320, 20, 320 - (count % 320), 8); ExBltRect(77, 320 - (count % 320), 208, 0, 20, count % 320, 8); ExBltRect(77, count % 320, 16, 0, 28, 320 - (count % 320), 8); ExBltRect(77, 0, 16, 320 - (count % 320), 28, count % 320, 8); //�A�h���X�w�� if(mode == 0){ tmp5 = 0; }else if(mode == 1){ tmp5 = 4; }else if(mode == 2){ tmp5 = 15; }else if(mode == 3){ tmp5 = 30; }else if(mode == 4){ tmp5 = 40; }else if(mode == 5){ tmp5 = 60; } // ���[�h���\�� if(mode == 0) printFont(11, 1, "- BEGINNER MODE -", 4); else if(mode == 1) printFont(11, 1, "- MASTER MODE -", 1); else if(mode == 2) printFont(9, 1, "- MASTER GRADE4 MODE -", 1); else if(mode == 3) printFont(11, 1, "- 20G MODE -", 7); else if(mode == 4) printFont(11, 1, "- DEVIL MODE -", 2); else if(mode == 5) printFont(11, 1, "- TOMOYO MODE -", 3); if(mode == 5){ printFont(1, 3, "STAGE",1); printFont(8, 3, "TIME", 1); printFont(15, 3, "USE", 1); printFont(20, 3, "STAGE",1); printFont(28, 3, "TIME", 1); printFont(35, 3, "USE", 1); }else if(mode < 5){ printFont(2, 3, "LEVEL",1); printFont(12, 3, "TIME", 1); printFont(21, 3, "LVSTOP", 1); printFont(28, 3, "USE", 1); printFont(32, 3, "BLOCK/S ", 1); } // �\���������߂� if(mode == 0) max = 2; else if( (mode == 1) || (mode == 2)|| (mode == 3) ) max = 10; else if(mode == 4) max = 13; else if(mode == 5) max =27; // �����L���O�\�� for(i=0; i<max; i++) { if(st_end[i + tmp5] == 1) tmp = 4; else if(st_end[i + tmp5] == 2) tmp = 7; else tmp = 0; if(mode != 5){//���̑� if( ((mode == 1) || (mode == 2)|| (mode == 3)) && (i == 9) ){ sprintf(string[0], " 900-999"); } else if(mode <= 4){ sprintf(string[0], "%4d-%3d", i*100, (i+1)*100); } printFont(1, 4+i, string[0], tmp); //�^�C�� getTime(st_time[i + tmp5]); printFont(11, 4+i, string[0], tmp); //���x���X�g�b�v getSTime(st_lvstop[i + tmp5]); printFont(21, 4+i, string[0], tmp); //USE�u���b�N�� sprintf(string[0],"%d",st_others[i + tmp5]); printFont(29, 4+i, string[0], tmp); //BPS bps = (st_others[i + tmp5] * 1000) / (st_time[i + tmp5] / 60); bps1 = bps / 1000;//���� bps2 = bps % 1000;//���O�� sprintf(string[0],"%d.",bps1); printFont(32, 4+i, string[0], tmp); if(bps2>=100){ sprintf(string[0],"%3d",bps2); printFont(34, 4+i, string[0], tmp); }else if(bps2>=10){ sprintf(string[0],"0%2d",bps2); printFont(34, 4+i, string[0], tmp); }else{ sprintf(string[0],"00%d",bps2); printFont(34, 4+i, string[0], tmp); } if(mode==2){ printFont(2, 28, "GRADE HISTORY", 2); for(s=0;s<5;s++){ sprintf(string[0],"%d",grade_his[s]); printFont(3*s, 29, string[0], tmp); } } }else{ //TOMOYO if(i <= 19){ sprintf(string[0], "%d",i+1); printFont(2, 4+i, string[0], tmp); //�^�C�� getTime(st_time[i + tmp5]); printFont(6, 4+i, string[0], tmp); //�g�p�u���b�N�� sprintf(string[0],"%d",st_others[i + tmp5]); printFont(16, 4+i, string[0], tmp); }else if(i > 19){ sprintf(string[0], "EX%d",i - 19); printFont(20, i - 16, string[0], tmp); //�^�C�� getTime(st_time[i + tmp5]); printFont(26, i - 16, string[0], tmp); //�g�p�u���b�N�� sprintf(string[0],"%d",st_others[i + tmp5]); printFont(36, i-16, string[0], tmp); } } } // ���v���\�� tmp = 0; for(i=0; i<max; i++) { tmp = tmp + st_time[i + tmp5]; } printFont(1, 25, "TOTAL TIME", 1); getTime(tmp); printFont(12, 25, string[0], 2); KeyInput(); if(getPushState(0, 4) || getPushState(0, 5)) { // A��B�Ŗ߂� return; } if(getPushState(0, 2)) { // �� PlaySE(5); mode--; if(mode < 1) mode = 5; } if(getPushState(0, 3)) { // �� PlaySE(5); mode++; if(mode > 5) mode = 1; } spriteTime();//halt } }