Changeset 42640


Ignore:
Timestamp:
08/10/18 01:52:00 (6 years ago)
Author:
obi
Message:

tithek add new view mode

Location:
titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r42622 r42640  
    930930        int pcount = 2;
    931931
     932int fontsize2 = 20;
     933int posy = 50;
     934int textposx2 = 270;
     935int textposx = 230;
     936
     937
    932938        if(getconfigint("tithek_cover", NULL) == 0 || getconfigint("tithek_view", NULL) == 0)
    933939        {
     
    10441050        }
    10451051
     1052        if((getconfigint("tithek_cover", NULL) == 7 && flag == 0) || (getconfigint("tithek_view", NULL) == 7 && flag != 0))
     1053        {
     1054                height = 50;
     1055                width = 1160;
     1056                picheight = 48;
     1057                picwidth = 1100;
     1058                zcount = 1;
     1059                fontsize = 25;
     1060                pcount = 1;
     1061                height += status.fontsizeadjust;
     1062
     1063fontsize2 = 20;
     1064posy = 50;
     1065textposx2 = 270;
     1066textposx = 230;
     1067height = 100;
     1068        }
     1069
     1070
     1071
    10461072        fontsize += status.fontsizeadjust;
    10471073        height += status.fontsizeadjust;
     
    10581084                if(tmp != NULL)
    10591085                {
    1060                         skip = 0;
    1061                         sumcount++;
    1062                         count++;
    1063                         count1++;
    1064                         if(gridbr == 0)
    1065                                 tmp->type = GRIDBR;
    1066                         gridbr = 1;
    1067                         tmp->wrap = YES;
    1068 
    1069                         tmp->picheight = picheight;
    1070                         tmp->picwidth = picwidth;
    1071 
    1072                         tmp->fontsize = fontsize;
    1073                         tmp->height = height;
    1074                         tmp->width = width;
    1075                         tmp->prozwidth = 0;
    1076                         //tmp->bgcol = 0xffffff;
    1077                         tmp->bgspace = 1;
    1078                         tmp->vspace = 10;
    1079                         tmp->hspace = 10;
    1080                         tmp->posx = posx;
     1086
     1087                        if(getconfigint("tithek_cover", NULL) >= 6 || getconfigint("tithek_view", NULL) >= 6)
     1088                        {
     1089                                gridbr = 0;
     1090                                posx = 0;
     1091                                tmp->hspace = 5;
     1092
     1093//                              if(getconfigint("tithek_cover", NULL) > 6 || getconfigint("tithek_view", NULL) > 6)
     1094//                              {
     1095                                        char* tithekpic = tithekdownload(titheknode->pic, titheknode->localname, NULL, 0, 0);
     1096                                        changepic(tmp, tithekpic);
     1097                                        free(tithekpic); tithekpic = NULL;
     1098//                              }
     1099//                              tmp->handle = (char*)titheknode;
     1100                               
     1101                                tmp->valign = convertxmlentry("middle", 0);
     1102                                tmp->textposx = textposx;
     1103                                tmp->wrap = YES;
     1104
     1105                                tmp->posy = posy;
     1106                                tmp->textposx2 = textposx2;
     1107                                tmp->height = height;
     1108                                tmp->fontcol2 = convertcol("yellow");
     1109                                tmp->fontsize2 = fontsize2;
     1110                                tmp->valign = MIDDLE;
     1111//                              changetext2(tmp, titheknode->description);
     1112
     1113                                tmp->type = TEXTBOX;
     1114                                tmp->valign = TOPBOTTOM;
     1115                                tmp->handle = (char*)titheknode;
     1116                        }
     1117                        else
     1118                        {
     1119                                skip = 0;
     1120                                sumcount++;
     1121                                count++;
     1122                                count1++;
     1123                                if(gridbr == 0)
     1124                                        tmp->type = GRIDBR;
     1125                                gridbr = 1;
     1126                                tmp->wrap = YES;
     1127#ifndef SIMULATE
     1128                                tmp->picheight = picheight;
     1129                                tmp->picwidth = picwidth;
     1130#endif
     1131                                tmp->fontsize = fontsize;
     1132                                tmp->height = height;
     1133                                tmp->width = width;
     1134                                tmp->prozwidth = 0;
     1135                                //tmp->bgcol = 0xffffff;
     1136                                tmp->bgspace = 1;
     1137                                tmp->vspace = 10;
     1138                                tmp->hspace = 10;
     1139                                tmp->posx = posx;
     1140
     1141                                tmp->prozwidth = 0;
     1142                                tmp->halign = CENTER;
     1143                                tmp->valign = TEXTBOTTOM;
     1144                        }
     1145
    10811146
    10821147                        debug(99, "--- START ----------------------------------------------------");
     
    11231188                                tmp->fontcol = convertcol("white");
    11241189
    1125                         tmp->halign = CENTER;
    1126                         tmp->valign = TEXTBOTTOM;
     1190                        if(getconfigint("tithek_cover", NULL) != 6 && getconfigint("tithek_view", NULL) != 6)
     1191                        {
     1192                                tmp->halign = CENTER;
     1193                                tmp->valign = TEXTBOTTOM;
     1194                        }
    11271195                        changetext(tmp, titheknode->title);
     1196                        changetext2(tmp, titheknode->description);
     1197
    11281198                        tmp->handle = (char*)titheknode;
    11291199                        posx += tmp->width;
     1200
    11301201                        if(count >= zcount)
    11311202                        {
     
    21672238        listbox->select = NULL;
    21682239
     2240        int view = 1;
     2241struct skin *child = NULL;
     2242
     2243//      if(view == 1)
     2244if(getconfigint("tithek_cover", NULL) == 6)
     2245{
     2246        listbox = getscreennode(grid, "listbox");
     2247}
     2248        else
     2249{
     2250        listbox = getscreennode(grid, "grid");
     2251}
     2252
    21692253        pagecount = createtithekplay(titheklink, grid, listbox, countlabel, title, first);
    21702254        if(pagecount == 0) return;
     
    22692353                {
    22702354                        screentithek_settings();
     2355
     2356                        if(getconfigint("tithek_cover", NULL) == 6 || getconfigint("tithek_view", NULL) == 6)
     2357                        {
     2358                                listbox = getscreennode(grid, "listbox");
     2359                        }
     2360                                else
     2361                        {
     2362                                listbox = getscreennode(grid, "grid");
     2363                        }
    22712364
    22722365//                      pagecount = createtithekplay(titheklink, grid, listbox, countlabel, first);
  • titan/skins/tithek/skin.xml

    r42124 r42640  
    55
    66<screen name="titheklist" title="" titlealign="center" fontsize="36" fontcol="black" posx="center" posy="center" width="1220" height="680" valign="bottom" bordercol="black" bordersize="1" borderradius="8" titlebgcol="titlebgcol" titlebgcol2="white" titlegradient="topmiddle" bgcol="black">
    7         <node name="listbox" type="grid" scrollbar="yes" fontsize="20" fontcol="fontcol" bordercol="titlebgcol" posx="center" posy="top" width="1204" height="-52">
     7#       <node name="listbox" type="grid" scrollbar="yes" fontsize="20" fontcol="fontcol" bordercol="titlebgcol" posx="center" posy="top" width="1204" height="-52">
     8        <node name="listbox" type="listbox" scrollbar="auto" bordercol="bordercol" fontsize="30" width="100%" height="100%">
     9        <node name="grid" type="grid" scrollbar="auto" bordercol="bordercol" fontsize="30" width="100%" height="100%">
     10
    811        <node name="countlabel" fontsize="20" fontcol="fontcol" halign="center" valign="middle" posx="center" posy="565" width="500" height="20">
    912        <node name="countpage"  fontsize="20" fontcol="fontcol" halign="right"  valign="middle" posx="900"    posy="565" width="276" height="20">
Note: See TracChangeset for help on using the changeset viewer.