|
|
|
@ -4,6 +4,8 @@ |
|
|
|
|
|
|
|
|
|
using namespace olc; |
|
|
|
|
|
|
|
|
|
QuickGUI::TextBox*prevTextBox=nullptr; |
|
|
|
|
|
|
|
|
|
// Override base class with your custom functionality
|
|
|
|
|
class ChampionsLeaguePointSolver : public olc::PixelGameEngine |
|
|
|
|
{ |
|
|
|
@ -219,21 +221,26 @@ class ChampionsLeaguePointSolver : public olc::PixelGameEngine |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public: |
|
|
|
|
QuickGUI::TextBox*prevTextBox=nullptr; |
|
|
|
|
struct SongElement{ |
|
|
|
|
SongElement(QuickGUI::Manager&manager,std::string songName,vf2d pos){ |
|
|
|
|
label=new QuickGUI::Label(manager,songName,pos,{164,12}); |
|
|
|
|
p1Score=new QuickGUI::TextBox(manager,"",pos+vf2d{192,0},{36,12}); |
|
|
|
|
p2Score=new QuickGUI::TextBox(manager,"",pos+vf2d{192+42*1,0},{36,12}); |
|
|
|
|
p3Score=new QuickGUI::TextBox(manager,"",pos+vf2d{192+42*2,0},{36,12}); |
|
|
|
|
if(prevTextBox!=nullptr){ |
|
|
|
|
prevTextBox->tabNext=p1Score; |
|
|
|
|
} |
|
|
|
|
p1Score->tabNext=p2Score; |
|
|
|
|
p1Score->tabPrev=prevTextBox; |
|
|
|
|
p2Score->tabNext=p3Score; |
|
|
|
|
p2Score->tabPrev=p1Score; |
|
|
|
|
prevTextBox=p3Score; |
|
|
|
|
p3Score->tabPrev=p2Score; |
|
|
|
|
} |
|
|
|
|
QuickGUI::Label*label; |
|
|
|
|
QuickGUI::TextBox*p1Score; |
|
|
|
|
QuickGUI::TextBox*p2Score; |
|
|
|
|
QuickGUI::TextBox*p3Score; |
|
|
|
|
QuickGUI::TextBox*prevP1Box; |
|
|
|
|
QuickGUI::TextBox*prevP2Box; |
|
|
|
|
QuickGUI::TextBox*prevP3Box; |
|
|
|
|
}; |
|
|
|
|
QuickGUI::Manager gui; |
|
|
|
|
std::vector<SongElement>songs; |
|
|
|
|