Preload ch 19 cgs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user