Changeset 42640
- Timestamp:
- 08/10/18 01:52:00 (6 years ago)
- Location:
- titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/tithek/tithek.h
r42622 r42640 930 930 int pcount = 2; 931 931 932 int fontsize2 = 20; 933 int posy = 50; 934 int textposx2 = 270; 935 int textposx = 230; 936 937 932 938 if(getconfigint("tithek_cover", NULL) == 0 || getconfigint("tithek_view", NULL) == 0) 933 939 { … … 1044 1050 } 1045 1051 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 1063 fontsize2 = 20; 1064 posy = 50; 1065 textposx2 = 270; 1066 textposx = 230; 1067 height = 100; 1068 } 1069 1070 1071 1046 1072 fontsize += status.fontsizeadjust; 1047 1073 height += status.fontsizeadjust; … … 1058 1084 if(tmp != NULL) 1059 1085 { 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 1081 1146 1082 1147 debug(99, "--- START ----------------------------------------------------"); … … 1123 1188 tmp->fontcol = convertcol("white"); 1124 1189 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 } 1127 1195 changetext(tmp, titheknode->title); 1196 changetext2(tmp, titheknode->description); 1197 1128 1198 tmp->handle = (char*)titheknode; 1129 1199 posx += tmp->width; 1200 1130 1201 if(count >= zcount) 1131 1202 { … … 2167 2238 listbox->select = NULL; 2168 2239 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 } 2248 else 2249 { 2250 listbox = getscreennode(grid, "grid"); 2251 } 2252 2169 2253 pagecount = createtithekplay(titheklink, grid, listbox, countlabel, title, first); 2170 2254 if(pagecount == 0) return; … … 2269 2353 { 2270 2354 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 } 2271 2364 2272 2365 // pagecount = createtithekplay(titheklink, grid, listbox, countlabel, first); -
titan/skins/tithek/skin.xml
r42124 r42640 5 5 6 6 <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 8 11 <node name="countlabel" fontsize="20" fontcol="fontcol" halign="center" valign="middle" posx="center" posy="565" width="500" height="20"> 9 12 <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.