diff --git a/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.cpp b/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.cpp index 8507a1d..91172b2 100644 --- a/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.cpp +++ b/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.cpp @@ -288,12 +288,12 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine for(int i=0;ibVisible=false; inputButtons[i]->Enable(false); @@ -344,6 +344,10 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine bestComboB={}; } QuickGUI::TextBox*prevActiveBox=activeBox; + if(GetMouse(0).bPressed&&(GetMouseY()2+((10-1)/3)*50+2)){ + prevActiveBox=nullptr; + activeBox=nullptr; + } gui.Update(this); gui.Draw(this); @@ -368,9 +372,13 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine TextEntryEnable(true,prevActiveBox->sText); } } + }else{ + for(int i=0;ibVisible=false; + inputButtons[i]->Enable(false); + } } } - if(calculating){ activeBox=nullptr; if(calculationStephighestEX&&A.p1Picked.size()+B.p1Picked.size()==4&&A.p2Picked.size()+B.p2Picked.size()==4&&A.p3Picked.size()+B.p3Picked.size()==4){ + if(A.totalEX+B.totalEX>highestEX&&A.p1Picked.size()+B.p1Picked.size()<=4&&A.p2Picked.size()+B.p2Picked.size()<=4&&A.p3Picked.size()+B.p3Picked.size()<=4){ highestEX=A.totalEX+B.totalEX; picked1=A; picked2=B; diff --git a/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.wasm b/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.wasm index 3d1221e..f6acbdb 100755 Binary files a/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.wasm and b/ChallengeLeaguePointSolver/ChampionsLeaguePointSolver.wasm differ