img_size -= (sbar_border_thickness * 2) * '1 1 0';\r
if(pic == "")\r
{\r
- if(precache_pic(pic) == "")\r
+ if(drawgetimagesize(pic) == '0 0 0')\r
drawpic(pos, draw_UseSkinFor("nopreview_map"), img_size, '1 1 1', 0.7, DRAWFLAG_NORMAL);\r
else\r
drawpic(pos, pic, img_size, '1 1 1', 0.7, DRAWFLAG_NORMAL);\r
s = ftos(p);\r
if(i > me.campaignIndex)\r
draw_Picture(me.columnPreviewOrigin * eX, "/gfx/campaign_hidden", me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
- else if(draw_PreloadPicture(strcat("/maps/", campaign_mapname[i])) == "")\r
+ else if(draw_PictureSize(strcat("/maps/", campaign_mapname[i])) == '0 0 0')\r
draw_Picture(me.columnPreviewOrigin * eX, "nopreview_map", me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
else\r
draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", campaign_mapname[i]), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
me.authorLabel.setText(me.authorLabel, me.currentMapAuthor);\r
me.descriptionLabel.setText(me.descriptionLabel, me.currentMapDescription);\r
me.featuresLabel.setText(me.featuresLabel, me.currentMapFeaturesText);\r
- if(draw_PreloadPicture(me.currentMapPreviewImage) == "")\r
+ if(draw_PictureSize(me.currentMapPreviewImage) == '0 0 0')\r
me.previewImage.src = "nopreview_map";\r
else\r
me.previewImage.src = me.currentMapPreviewImage;\r
draw_Fill('0 0 0', '1 1 0', SKINCOLOR_MAPLIST_INCLUDEDBG, SKINALPHA_MAPLIST_INCLUDEDBG);\r
\r
s = ftos(p);\r
- if(draw_PreloadPicture(strcat("/maps/", MapInfo_Map_bspname)) == "")\r
+ if(draw_PictureSize(strcat("/maps/", MapInfo_Map_bspname)) == '0 0 0')\r
draw_Picture(me.columnPreviewOrigin * eX, "nopreview_map", me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
else\r
draw_Picture(me.columnPreviewOrigin * eX, strcat("/maps/", MapInfo_Map_bspname), me.columnPreviewSize * eX + eY, '1 1 1', theAlpha);\r
float i, n;\r
vector o;\r
\r
- if(draw_PreloadPicture(me.currentModelName) == "")\r
+ if(draw_PictureSize(me.currentModelName) == '0 0 0')\r
me.src = "nopreview_player";\r
else\r
me.src = me.currentModelName;\r
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_NAME, substring(s, 9, strlen(s) - 24)); // the * part\r
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_TITLE, "<TITLE>");\r
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_AUTHOR, "<AUTHOR>");\r
- if(draw_PreloadPicture(strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")) == "")\r
+ if(draw_PictureSize(strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")) == '0 0 0')\r
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, "nopreview_menuskin");\r
else\r
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview"));\r