private void Form1_Load(object sender, EventArgs e) { logTools.OnError += LogTools_OnError; logTools.OnInfo += LogTools_OnInfo; configMgr.PCRRegion = PCRRegion.Taiwan; AdbTools.GetInstance().ConnectToMumuAdbServer(); var es = EmptyScript.GetInstance(); CaptureMumu(); var unit = PCRUnit.FromUnitName("妹弓", 3); var unitList = new List <PCRUnit>() { unit }; //var isok = es.IsBattleSceneUnitUBReady(viewportMat, viewportRect, 1); //es.GetBattleSceneUnitsStatus(viewportMat, viewportRect); //es.SelectBattleTeam(viewportMat, viewportRect, unitList); //var units = es.GetBattleTeamInfo(viewportMat, viewportRect); //es.SelectBattleTeam(viewportMat, viewportRect, units); RunScript(); //var r = es.GetBattleLeftTime(viewportMat, viewportRect); }
private void menuTapPCRMenu_Click(object sender, EventArgs e) { var viewportRect = mumuTools.GetMumuViewportRect(); EmptyScript.GetInstance().ClickTab(viewportRect, PCRTab.Menu); }