From 2da216bbf37931ff44a265791922ab50a3458cc9 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Fri, 22 Sep 2023 18:37:34 +0000 Subject: [PATCH] All done! Co-authored-by: sigonasr2 --- .../ChampionsLeaguePointSolver.cpp | 18 +++++++++++++----- .../ChampionsLeaguePointSolver.wasm | Bin 357282 -> 357513 bytes 2 files changed, 13 insertions(+), 5 deletions(-) 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/Ch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