Changeset 15243
- Timestamp:
- 04/13/12 00:51:45 (11 years ago)
- Location:
- titan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/mc/mc_global.h
r15220 r15243 17 17 node->fontsize = 0; 18 18 node->height = 0; 19 node->width = 0; 20 node->height = 0; 21 node->bgcol = 0; 22 node->transparent = 0; 23 node->prozwidth = 0; 24 node->posx = 0; 19 25 } 20 26 node = node->next; … … 22 28 23 29 if(view == 0) 24 filelist->fontsize = 25; 30 { 31 filelist->fontsize = 25;//, fontspace = 5; 32 filelist->height = 480; 33 filelist->width = 1160; 34 filelist->prozwidth = 0; 35 filelist->posx = 40; 36 filelist->transparent = -1; 37 filelist->bgcol = -1; 38 } 25 39 else if(view == 1) 26 filelist->fontsize = 40; 40 { 41 filelist->fontsize = 35;//, fontspace = 5; 42 filelist->height = 480; 43 filelist->width = 1160; 44 filelist->prozwidth = 0; 45 filelist->posx = 40; 46 filelist->transparent = -1; 47 filelist->bgcol = -1; 48 filelist->prozwidth = 0; 49 } 50 else if(view == 2) 51 { 52 filelist->fontsize = 20;//, fontspace = 5; 53 filelist->height = 480; 54 filelist->width = 1160; 55 filelist->prozwidth = 0; 56 filelist->posx = 40; 57 filelist->transparent = -1; 58 filelist->bgcol = -1; 59 } 27 60 else if(view == 3) 28 filelist->fontsize = 25; 61 { 62 filelist->fontsize = 30;//, fontspace = 5; 63 filelist->height = 480; 64 filelist->width = 1160; 65 filelist->prozwidth = 0; 66 filelist->posx = 40; 67 filelist->transparent = -1; 68 filelist->bgcol = -1; 69 filelist->prozwidth = 0; 70 } 29 71 else if(view == 4) 30 filelist->fontsize = 20; 72 { 73 filelist->fontsize = 25;//, fontspace = 5; 74 filelist->height = 480; 75 filelist->width = 1160; 76 filelist->prozwidth = 0; 77 filelist->posx = 40; 78 filelist->transparent = -1; 79 filelist->bgcol = -1; 80 filelist->prozwidth = 0; 81 } 31 82 else if(view == 5) 32 filelist->fontsize = 25; 33 else 34 filelist->fontsize = 25; 83 { 84 filelist->fontsize = 25;//, fontspace = 10; 85 filelist->height = 350; 86 filelist->width = 600; 87 filelist->prozwidth = 0; 88 filelist->bgcol = 0x474747; 89 filelist->transparent = 40; 90 filelist->posx = 20; 91 } 35 92 } 36 93 -
titan/plugins/mc/mc_pictureplayer.h
r15235 r15243 59 59 60 60 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL); 61 mc_changeview(view, filelist); 61 62 addscreenrc(apskin, filelist); 62 63 … … 202 203 drawscreen(skin, 0); 203 204 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 205 mc_changeview(view, filelist); 204 206 addscreenrc(apskin, filelist); 205 207 -
titan/plugins/mc/mc_videoplayer.h
r15231 r15243 64 64 65 65 tmpview = view; 66 //mc_changeview(view, filelist);66 mc_changeview(view, filelist); 67 67 68 68 printf("111111111: view=%d tmpview=%d\n", view, tmpview); … … 70 70 // filelist->fontsize = 25; 71 71 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL); 72 // mc_changeview(view, filelist); 73 72 74 addscreenrc(apskin, filelist); 73 75 … … 284 286 } 285 287 288 view = getconfigint("view", NULL); 289 290 mc_changeview(view, filelist); 291 292 delownerrc(apskin); 293 // getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 294 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, view, filelist->select->text); 295 addscreenrc(apskin, filelist); 296 286 297 // mc_changeview(view, filelist); 287 288 //new 289 // clearscreen(apskin); 290 291 292 delownerrc(apskin); 293 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 294 addscreenrc(apskin, filelist); 295 drawscreen(skin, 0); 298 299 // drawscreen(skin, 0); 296 300 // status.filelistextend = view; 297 301 -
titan/titan/filelist.h
r15235 r15243 217 217 } 218 218 219 if(status.filelistextend == 2) node->type |= GRID; 219 if(status.filelistextend == 2) 220 node->type |= GRID; 221 else 222 node->type &= ~(GRID); 223 220 224 221 225 status.tmp = node->input; … … 264 268 ? cover3 (list + imdb) 265 269 */ 266 int fontsize = 20;267 int fontspace = 2;268 int width = 0;269 int height = 0;270 271 // if(status.filelistextend == 0)272 // fontsize = 30, fontspace = 5;273 if(status.filelistextend == 1)274 fontsize = 35, fontspace = 5;275 else if(status.filelistextend == 2)276 fontsize = 20, fontspace = 5;277 else if(status.filelistextend == 3)278 fontsize = 30, fontspace = 5;279 else if(status.filelistextend == 4)280 fontsize = 25, fontspace = 5;281 else if(status.filelistextend == 5)282 {283 fontsize = 25, fontspace = 10;284 width = 600;285 height = 350;286 }287 288 if(status.filelistextend == 5)289 {290 node->height = height;291 node->width = width;292 node->bgcol = 0x474747;293 node->transparent = 40;294 node->prozwidth = 0;295 node->posx = 20;296 }297 270 298 271 if(status.filelistextend == 2 && parentdir != NULL) … … 311 284 parentdir->halign = CENTER; 312 285 parentdir->valign = TEXTBOTTOM; 313 parentdir->fontsize = fontsize;314 286 posx += parentdir->width; 315 287 … … 348 320 if(child != NULL) 349 321 { 350 if(status.filelistextend != 0)351 child->fontsize = fontsize;352 322 if(status.filelistextend == 2) 353 323 { … … 441 411 child->width = 100; 442 412 child->prozwidth = 1; 443 if(status.filelistextend == 0) 444 child->height = node->fontsize + 2 + (node->bordersize * 2); 445 else 446 child->height = child->fontsize + fontspace + (node->bordersize * 2); 447 413 child->height = node->fontsize + 2 + (node->bordersize * 2); 448 414 child->textposx = node->textposx; 449 415 } … … 520 486 { 521 487 debug(10, "filename: %s", filelist[i]->d_name); 522 if(status.filelistextend != 0)523 child->fontsize = fontsize;524 488 if(status.filelistextend == 2) 525 489 { … … 545 509 { 546 510 tmpstr = ostrcat(createpath(node->input, "/"), filelist[i]->d_name, 1, 0); 547 child->picheight = 210; 548 child->picwidth = 350; 511 // child->picheight = 210; 512 // child->picwidth = 350; 513 child->picwidth = 1; 514 child->picheight = 1; 549 515 } 550 516 else if(cmpfilenameext(filelist[i]->d_name, ".iso") == 0) … … 614 580 child->width = 100; 615 581 child->prozwidth = 1; 616 if(status.filelistextend == 0) 617 child->height = node->fontsize + 2 + (node->bordersize * 2); 618 else 619 child->height = child->fontsize + fontspace + (node->bordersize * 2); 582 child->height = node->fontsize + 2 + (node->bordersize * 2); 620 583 621 584 child->textposx = node->textposx;
Note: See TracChangeset
for help on using the changeset viewer.