Preload ch 19 cgs

This commit is contained in:
Sakura Knoll
2022-07-11 22:04:39 +09:00 Unverified
parent 96191758c2
commit 63aa2d4128
2 changed files with 10 additions and 7 deletions
+6 -6
View File
@@ -1498,7 +1498,8 @@ function preLoadUiImages(resStr, resList, flag_continue) {
if (flag_continue != 'continue') $('.preload').html('') if (flag_continue != 'continue') $('.preload').html('')
for (var i = 0; i < resList.length; i++) { for (var i = 0; i < resList.length; i++) {
var $tempImage = $('<img></img>') var $tempImage = $('<img></img>')
var tempSrc = base_url + '/resources/' + resStr + '/' + resList[i] var tempSrc = getResourceUrl(resStr, resList[i])
$tempImage $tempImage
.attr('src', tempSrc) .attr('src', tempSrc)
.addClass('preload-image') .addClass('preload-image')
@@ -1583,12 +1584,11 @@ function preLoadImagesBegin(imageList) {
else if (imageList[i].getAttribute('type') == 'cg') continue else if (imageList[i].getAttribute('type') == 'cg') continue
else if (imageList[i].getAttribute('type') == 'background') continue else if (imageList[i].getAttribute('type') == 'background') continue
var $tempImage = $('<img></img>') var $tempImage = $('<img></img>')
var tempSrc = var tempSrc = getResourceUrl(
base_url + imageList[i].getAttribute('type'),
'/resources/' +
imageList[i].getAttribute('type') +
'/' +
imageList[i].getAttribute('src') imageList[i].getAttribute('src')
)
if (imageList[i].getAttribute('type') == 'www') if (imageList[i].getAttribute('type') == 'www')
tempSrc = imageList[i].getAttribute('src') tempSrc = imageList[i].getAttribute('src')
$tempImage $tempImage
+4 -1
View File
@@ -1,5 +1,8 @@
<data> <data>
<img></img> <img>
<image src="*af11.png" type="cg" />
<image src="*af12.png" type="cg" />
</img>
<characters> <characters>
<character color="#fff2c4" id="reaSmileArmedClose" name="레아나" src="04_04_reaSmileArmedClose.png" /> <character color="#fff2c4" id="reaSmileArmedClose" name="레아나" src="04_04_reaSmileArmedClose.png" />
<character color="#fff2c4" id="reaSeriousArmedClose" name="레아나" src="04_04_reaSeriousArmedClose.png" /> <character color="#fff2c4" id="reaSeriousArmedClose" name="레아나" src="04_04_reaSeriousArmedClose.png" />