Merge pull request #270 from nofficalfs/PR-Totorial

[Suggest] modify identity totorial genCoroutine
This commit is contained in:
Spmario233 2023-09-05 13:50:38 +08:00 committed by GitHub
commit fcb9402767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 23 deletions

View File

@ -134,34 +134,28 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
step4(); step4();
} }
}; };
var step4=function(){ var step4=lib.genAsync(function*(){
clear(); clear();
ui.window.classList.add('noclick_important'); ui.window.classList.add('noclick_important');
ui.click.configMenu(); ui.click.configMenu();
ui.control.classList.add('noclick_click_important'); ui.control.classList.add('noclick_click_important');
ui.control.style.top='calc(100% - 105px)'; ui.control.style.top='calc(100% - 105px)';
ui.create.control('在菜单中,可以进行各项设置',function(){ yield new Promise(resolve => ui.create.control('在菜单中,可以进行各项设置',resolve));
ui.click.menuTab('选项'); ui.click.menuTab('选项');
ui.controls[0].replace('如果你感到游戏较卡,可以开启流畅模式',function(){ yield new Promise(resolve => ui.controls[0].replace('如果你感到游戏较卡,可以开启流畅模式',resolve));
ui.controls[0].replace('在技能一栏中,可以设置自动发动或双将禁配的技能',function(){ yield new Promise(resolve => ui.controls[0].replace('在技能一栏中,可以设置自动发动或双将禁配的技能',resolve));
ui.click.menuTab('武将'); ui.click.menuTab('武将');
ui.controls[0].replace('在武将或卡牌一栏中,单击武将/卡牌可以将其禁用',function(){ yield new Promise(resolve => ui.controls[0].replace('在武将或卡牌一栏中,单击武将/卡牌可以将其禁用',resolve));
ui.click.menuTab('战局'); ui.click.menuTab('战局');
ui.controls[0].replace('在战局中可以输入游戏命令,或者管理录像',function(){ yield new Promise(resolve => ui.controls[0].replace('在战局中可以输入游戏命令,或者管理录像',resolve));
ui.click.menuTab('帮助'); ui.click.menuTab('帮助');
ui.controls[0].replace('在帮助中,可以检查更新和下载素材',function(){ yield new Promise(resolve => ui.controls[0].replace('在帮助中,可以检查更新和下载素材',resolve));
ui.click.configMenu(); ui.click.configMenu();
ui.window.classList.remove('noclick_important'); ui.window.classList.remove('noclick_important');
ui.control.classList.remove('noclick_click_important'); ui.control.classList.remove('noclick_click_important');
ui.control.style.top=''; ui.control.style.top='';
step5(); step5();
}); });
});
});
});
});
})
};
var step5=function(){ var step5=function(){
clear(); clear();
ui.create.dialog('如果还有其它问题,欢迎来到百度无名杀吧进行交流'); ui.create.dialog('如果还有其它问题,欢迎来到百度无名杀吧进行交流');