Changeset 15152
- Timestamp:
- 04/05/12 20:31:04 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/skin.h
r15145 r15152 1022 1022 free(node->font); 1023 1023 node->font = NULL; 1024 1025 free(node->selectpic); 1026 node->selectpic = NULL; 1024 1027 1025 1028 free(node->pic); … … 3128 3131 if(node->type & MULTIPROGRESSBAR) 3129 3132 drawmultiprogressbar(node); 3133 if(node->selectpic != NULL && !(node->type & FILELIST)) 3134 drawpic(node->selectpic, node->iposx, node->iposy, node->rpicwidth, node->rpicheight, node->iwidth, node->iheight, CENTER, MIDDLE); 3130 3135 if(node->pic != NULL && !(node->type & FILELIST)) 3131 3136 drawpic(node->pic, node->iposx, node->iposy, node->rpicwidth, node->rpicheight, node->iwidth, node->iheight, node->halign, node->valign); … … 3267 3272 int selcol = convertcol("listboxselect"); 3268 3273 int markcol = convertcol("markcol"); 3274 char* selectpic = getskinconfig("selectpic", NULL); 3269 3275 3270 3276 node->poscount = 0; … … 3324 3330 3325 3331 child->bordersize = 0; 3332 if(status.listboxselecttype == 3) 3333 { 3334 changebgpic(child, NULL); 3335 if(child->bgcol == markcol) 3336 child->bgcol = child->bordercol; 3337 } 3326 3338 if(child->bgcol == selcol) //&& status.listboxselecttype == 1) 3327 3339 child->bgcol = child->bordercol; … … 3366 3378 else 3367 3379 found->fontcol = selcol; 3380 } 3381 else if(status.listboxselecttype == 3) 3382 { 3383 changebgpic(found, selectpic); 3384 if(found->bgcol != markcol) 3385 found->bordercol = found->bgcol; 3386 if(status.markmodus > 0) 3387 found->bgcol = markcol; 3368 3388 } 3369 3389 … … 3980 4000 } 3981 4001 4002 int changeselectpic(struct skin* node, char* text) 4003 { 4004 debug(1000, "in"); 4005 int ret = 1; 4006 4007 if(node != NULL) 4008 { 4009 free(node->selectpic); 4010 if(text != NULL) 4011 node->selectpic = changepicpath(text); 4012 else 4013 node->selectpic = text; 4014 ret = 0; 4015 } 4016 debug(1000, "out"); 4017 4018 return ret; 4019 } 4020 3982 4021 int changetitle(struct skin* node, char* text) 3983 4022 { -
titan/titan/skinadjust.h
r15006 r15152 24 24 addchoicebox(listboxselecttype, "1", _("bar")); 25 25 addchoicebox(listboxselecttype, "2", _("text")); 26 addchoicebox(listboxselecttype, "3", _("picture")); 26 27 setchoiceboxselection(listboxselecttype, getskinconfig("listboxselecttype", NULL)); 27 28 -
titan/titan/struct.h
r15075 r15152 530 530 long titlebgcol2; 531 531 long progresscol; 532 char* selectpic; 532 533 char* pic; 533 534 int16_t picwidth;
Note: See TracChangeset
for help on using the changeset viewer.