mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Issue fixes for audio preload and Scale9Sprite.FillType (#2707)
* fix audio reload error, more preload call won't create more WebAudioElement yet. * fix JSB cc.Scale9Sprite.FillType error.
This commit is contained in:
@@ -100,6 +100,9 @@ Audio.State = {
|
||||
if (this._element)
|
||||
return;
|
||||
|
||||
if (this._element)
|
||||
return;
|
||||
|
||||
var item = cc.loader.getItem(src);
|
||||
|
||||
if (!item) {
|
||||
|
||||
@@ -59,9 +59,8 @@ cc.Scale9Sprite.RenderingType = cc.Enum({
|
||||
});
|
||||
|
||||
cc.Scale9Sprite.FillType = cc.Enum({
|
||||
Horizontal: 0,
|
||||
Vertical: 1,
|
||||
//todo implement this
|
||||
HORIZONTAL: 0,
|
||||
VERTICAL: 1,
|
||||
RADIAL:2,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user