|
|
@ -290,6 +290,9 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine |
|
|
|
element.p1Score->Enable(false); |
|
|
|
element.p1Score->Enable(false); |
|
|
|
element.p2Score->Enable(false); |
|
|
|
element.p2Score->Enable(false); |
|
|
|
element.p3Score->Enable(false); |
|
|
|
element.p3Score->Enable(false); |
|
|
|
|
|
|
|
element.p1Score->bHasBackground=element.label->bHasBackground=false; |
|
|
|
|
|
|
|
element.p2Score->bHasBackground=element.label->bHasBackground=false; |
|
|
|
|
|
|
|
element.p3Score->bHasBackground=element.label->bHasBackground=false; |
|
|
|
} |
|
|
|
} |
|
|
|
calculating=true; |
|
|
|
calculating=true; |
|
|
|
calculationStep=0; |
|
|
|
calculationStep=0; |
|
|
@ -347,6 +350,23 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine |
|
|
|
} |
|
|
|
} |
|
|
|
calculating=false; |
|
|
|
calculating=false; |
|
|
|
calculateButton->bPressed=false; |
|
|
|
calculateButton->bPressed=false; |
|
|
|
|
|
|
|
calculateButton->Enable(true); |
|
|
|
|
|
|
|
int index=0; |
|
|
|
|
|
|
|
for(SongElement&element:songs){ |
|
|
|
|
|
|
|
element.p1Score->Enable(true); |
|
|
|
|
|
|
|
element.p2Score->Enable(true); |
|
|
|
|
|
|
|
element.p3Score->Enable(true); |
|
|
|
|
|
|
|
if(index<12){ |
|
|
|
|
|
|
|
if(picked1.p1Picked.count(index)){element.p1Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
if(picked1.p2Picked.count(index)){element.p2Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
if(picked1.p3Picked.count(index)){element.p3Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(picked2.p1Picked.count(index-12)){element.p1Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
if(picked2.p2Picked.count(index-12)){element.p2Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
if(picked2.p3Picked.count(index-12)){element.p3Score->bHasBackground=element.label->bHasBackground=true;} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
index++; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|