Changeset 42645


Ignore:
Timestamp:
08/10/18 04:59:37 (6 years ago)
Author:
obi
Message:

fix tithek

File:
1 edited

Legend:

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

    r42643 r42645  
    10621062
    10631063fontsize2 = 20;
    1064 posy = 50;
    1065 textposx2 = 270;
    1066 textposx = 230;
    1067 height = 100;
     1064posy = 20;
     1065
     1066                height = 500;
     1067                width = 590;
     1068                picheight = 480;
     1069                picwidth = 570;
     1070textposx = 370;
     1071textposx2 = textposx + 30;
     1072
    10681073        }
    10691074
     
    10891094                                gridbr = 0;
    10901095                                posx = 0;
    1091                                 tmp->hspace = 5;
    1092 
    1093 //                              if(getconfigint("tithek_cover", NULL) > 6 || getconfigint("tithek_view", NULL) > 6)
    1094 //                              {
     1096
     1097                                if(getconfigint("tithek_cover", NULL) == 7 || getconfigint("tithek_view", NULL) == 7)
     1098                                {
    10951099                                        char* tithekpic = tithekdownload(titheknode->pic, titheknode->localname, NULL, 0, 0);
    10961100                                        changepic(tmp, tithekpic);
    10971101                                        free(tithekpic); tithekpic = NULL;
    1098 //                              }
    1099 //                              tmp->handle = (char*)titheknode;
     1102                                }
    11001103                               
    11011104                                tmp->valign = convertxmlentry("middle", 0);
    11021105                                tmp->textposx = textposx;
    11031106                                tmp->wrap = YES;
    1104 
     1107#ifndef SIMULATE
     1108                                tmp->picheight = 1;
     1109                                tmp->picwidth = 1;
     1110#endif
     1111                                tmp->bgspace = 1;
     1112                                tmp->vspace = 10;
     1113                                tmp->hspace = 10;
     1114
     1115// das lasst den text2 eine zeile weiter springen
     1116                                tmp->type = TEXTBOX;
     1117// schiebt text nach oben und text2 eine zeile darunter
     1118//                              tmp->valign = TOPBOTTOM;
    11051119                                tmp->posy = posy;
    11061120                                tmp->textposx2 = textposx2;
     
    11081122                                tmp->fontcol2 = convertcol("yellow");
    11091123                                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;
     1124
    11161125                        }
    11171126                        else
     
    11881197                                tmp->fontcol = convertcol("white");
    11891198
    1190                         if(getconfigint("tithek_cover", NULL) < 6 && getconfigint("tithek_view", NULL) < 6)
     1199                        if(getconfigint("tithek_cover", NULL) != 7 || getconfigint("tithek_view", NULL) != 7)
    11911200                        {
    11921201                                tmp->halign = CENTER;
     
    22382247        listbox->select = NULL;
    22392248
    2240         int view = 1;
    2241 struct skin *child = NULL;
    2242 
    2243 //      if(view == 1)
    2244 if(getconfigint("tithek_cover", NULL) == 6)
    2245 {
    2246         listbox = getscreennode(grid, "listbox");
    2247 }
     2249        if(getconfigint("tithek_cover", NULL) >= 6 || getconfigint("tithek_view", NULL) >= 6)
     2250        {
     2251                listbox = getscreennode(grid, "listbox");
     2252        }
    22482253        else
    2249 {
    2250         listbox = getscreennode(grid, "grid");
    2251 }
     2254        {
     2255                listbox = getscreennode(grid, "grid");
     2256        }
    22522257
    22532258        pagecount = createtithekplay(titheklink, grid, listbox, countlabel, title, first);
     
    23542359                        screentithek_settings();
    23552360
    2356                         if(getconfigint("tithek_cover", NULL) == 6 || getconfigint("tithek_view", NULL) == 6)
     2361                        if(getconfigint("tithek_cover", NULL) >= 6 || getconfigint("tithek_view", NULL) >= 6)
    23572362                        {
    23582363                                listbox = getscreennode(grid, "listbox");
Note: See TracChangeset for help on using the changeset viewer.