修复懒加载ui.create.videoNode的bug

This commit is contained in:
shijian 2023-08-25 22:56:35 +08:00
parent f9fdf043c7
commit bb39b6363a
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return effect;
},
onChooseToUse:function(event){
if(!game.online&&event.type=='phase'){
if(!game.online&&event.type=='phase'&&!event.dcpandi){
var players=game.filterPlayer(function(current){
return current!=event.player&&current.getHistory('sourceDamage').length==0;
})

View File

@ -27388,7 +27388,6 @@
this._tempCache[key1] = {};
}
this._tempCache[key1][key2] = value;
console.log("put:"+key1+" "+key2+" "+value);
},
getTempCache:function(key1,key2){
if(!this._tempCache){
@ -45509,6 +45508,7 @@
var node=ui.create.div('.menubutton.large','录像',start.firstChild,clickMode);
node.type='video';
lib.videos=[];
ui.create.videoNode=(video,before)=>lib.videos[before===true?'unshift':'push'](video);
node._initLink=function(){
node.link=page;
var store=lib.db.transaction(['video'],'readwrite').objectStore('video');