ud
This commit is contained in:
1 parent
67de299018
commit
ae98961921
1 file changed
+16
-14
+16
-14
@@ -469,20 +469,22 @@ game.import("extension", function (lib, game, ui, get, ai, _status) {
|
||||
};
|
||||
|
||||
//覆写十周年ui与被十周年ui覆写的delay,等1s加载完以后覆写
|
||||
setTimeout(()=>{
|
||||
decadeUI.delay = num =>{}
|
||||
dui.delay = num =>{}
|
||||
game.delay = function (time, time2) {
|
||||
if (_status.paused) return;
|
||||
game.pause();
|
||||
if (typeof time != "number") time = 1;
|
||||
if (typeof time2 != "number") time2 = 0;
|
||||
time = time * lib.config.duration + time2;
|
||||
if (lib.config.game_speed == "vvfast") time /= 3;
|
||||
if (lib.config.game_speed == "nodelay"){ time = 1}
|
||||
_status.timeout = setTimeout(game.resume, time);
|
||||
};
|
||||
},1000)
|
||||
if(decadeUI){
|
||||
setTimeout(()=>{
|
||||
decadeUI.delay = num =>{}
|
||||
dui.delay = num =>{}
|
||||
game.delay = function (time, time2) {
|
||||
if (_status.paused) return;
|
||||
game.pause();
|
||||
if (typeof time != "number") time = 1;
|
||||
if (typeof time2 != "number") time2 = 0;
|
||||
time = time * lib.config.duration + time2;
|
||||
if (lib.config.game_speed == "vvfast") time /= 3;
|
||||
if (lib.config.game_speed == "nodelay"){ time = 1}
|
||||
_status.timeout = setTimeout(game.resume, time);
|
||||
};
|
||||
},700)
|
||||
}
|
||||
|
||||
|
||||
game.delayx = function (time, time2) {
|
||||
|
||||
Reference in new issue
Block a user