202 GfxFillRect(3, 23, 3+177,23+191,0); |
202 GfxFillRect(3, 23, 3+177,23+191,0); |
203 GfxFillRect(251, 23, 251+177,23+191,0); |
203 GfxFillRect(251, 23, 251+177,23+191,0); |
204 |
204 |
205 DrawStringCentered(92, 15, STR_01EE_TRACK_INDEX, 0); |
205 DrawStringCentered(92, 15, STR_01EE_TRACK_INDEX, 0); |
206 |
206 |
207 SET_DPARAM16(0, STR_01D5_ALL + msf.playlist); |
207 SetDParam(0, STR_01D5_ALL + msf.playlist); |
208 DrawStringCentered(340, 15, STR_01EF_PROGRAM, 0); |
208 DrawStringCentered(340, 15, STR_01EF_PROGRAM, 0); |
209 |
209 |
210 for(i=1; (uint)i <= NUM_SONGS_AVAILABLE; i++) { |
210 for(i=1; (uint)i <= NUM_SONGS_AVAILABLE; i++) { |
211 SET_DPARAM16(0, i); |
211 SetDParam(0, i); |
212 SET_DPARAM16(2, i); |
212 SetDParam(2, i); |
213 SET_DPARAM16(1, SPECSTR_SONGNAME); |
213 SetDParam(1, SPECSTR_SONGNAME); |
214 DrawString(4, 23+(i-1)*6, (i < 10) ? STR_01EC_0 : STR_01ED, 0); |
214 DrawString(4, 23+(i-1)*6, (i < 10) ? STR_01EC_0 : STR_01ED, 0); |
215 } |
215 } |
216 |
216 |
217 for(i=0; i!=6; i++) { |
217 for(i=0; i!=6; i++) { |
218 DrawStringCentered(216, 45 + i*8, STR_01D5_ALL + i, (i==msf.playlist) ? 0xC : 0x10); |
218 DrawStringCentered(216, 45 + i*8, STR_01D5_ALL + i, (i==msf.playlist) ? 0xC : 0x10); |
221 DrawStringCentered(216, 45+8*6+16, STR_01F0_CLEAR, 0); |
221 DrawStringCentered(216, 45+8*6+16, STR_01F0_CLEAR, 0); |
222 DrawStringCentered(216, 45+8*6+16*2, STR_01F1_SAVE, 0); |
222 DrawStringCentered(216, 45+8*6+16*2, STR_01F1_SAVE, 0); |
223 |
223 |
224 y = 23; |
224 y = 23; |
225 for(p = _playlists[msf.playlist],i=0; (i=*p) != 0; p++) { |
225 for(p = _playlists[msf.playlist],i=0; (i=*p) != 0; p++) { |
226 SET_DPARAM16(0, i); |
226 SetDParam(0, i); |
227 SET_DPARAM16(2, i); |
227 SetDParam(2, i); |
228 SET_DPARAM16(1, SPECSTR_SONGNAME); |
228 SetDParam(1, SPECSTR_SONGNAME); |
229 DrawString(252, y, (i < 10) ? STR_01EC_0 : STR_01ED, 0); |
229 DrawString(252, y, (i < 10) ? STR_01EC_0 : STR_01ED, 0); |
230 y += 6; |
230 y += 6; |
231 } |
231 } |
232 break; |
232 break; |
233 } |
233 } |
331 GfxFillRect(60, 46, 239, 52, 0); |
331 GfxFillRect(60, 46, 239, 52, 0); |
332 |
332 |
333 str = STR_01E3; |
333 str = STR_01E3; |
334 if (_song_is_active != 0 && _music_wnd_cursong != 0) { |
334 if (_song_is_active != 0 && _music_wnd_cursong != 0) { |
335 str = STR_01E4_0; |
335 str = STR_01E4_0; |
336 SET_DPARAM8(0, _music_wnd_cursong); |
336 SetDParam(0, _music_wnd_cursong); |
337 if (_music_wnd_cursong >= 10) |
337 if (_music_wnd_cursong >= 10) |
338 str = STR_01E5; |
338 str = STR_01E5; |
339 } |
339 } |
340 DrawString(62, 46, str, 0); |
340 DrawString(62, 46, str, 0); |
341 |
341 |
342 str = STR_01E6; |
342 str = STR_01E6; |
343 if (_song_is_active != 0 && _music_wnd_cursong != 0) { |
343 if (_song_is_active != 0 && _music_wnd_cursong != 0) { |
344 str = STR_01E7; |
344 str = STR_01E7; |
345 SET_DPARAM16(0, SPECSTR_SONGNAME); |
345 SetDParam(0, SPECSTR_SONGNAME); |
346 SET_DPARAM16(1, _music_wnd_cursong); |
346 SetDParam(1, _music_wnd_cursong); |
347 } |
347 } |
348 DrawStringCentered(155, 46, str, 0); |
348 DrawStringCentered(155, 46, str, 0); |
349 |
349 |
350 |
350 |
351 DrawString(60, 38, STR_01E8_TRACK_XTITLE, 0); |
351 DrawString(60, 38, STR_01E8_TRACK_XTITLE, 0); |