适配新版本
This commit is contained in:
1 parent
2cb5ec83e9
commit
fc159016c8
1 file changed
+5
-1
+5
-1
@@ -469,7 +469,7 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
miao_nodelay = function(){
|
var miao_nodelay = function(){
|
||||||
lib.configMenu.general.config.game_speed = {
|
lib.configMenu.general.config.game_speed = {
|
||||||
name: "游戏速度",
|
name: "游戏速度",
|
||||||
init: "nodelay",
|
init: "nodelay",
|
||||||
@@ -486,6 +486,7 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
|||||||
};
|
};
|
||||||
//覆写十周年ui与被十周年ui覆写的delay,等1s加载完以后覆写
|
//覆写十周年ui与被十周年ui覆写的delay,等1s加载完以后覆写
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
try{
|
||||||
if(decadeUI){
|
if(decadeUI){
|
||||||
decadeUI.delay = num =>{}
|
decadeUI.delay = num =>{}
|
||||||
dui.delay = num =>{}
|
dui.delay = num =>{}
|
||||||
@@ -500,6 +501,9 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
|||||||
_status.timeout = setTimeout(game.resume, time);
|
_status.timeout = setTimeout(game.resume, time);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}catch(e){
|
||||||
|
console.log(e)
|
||||||
|
}
|
||||||
},1000)
|
},1000)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user