Tab* initAutoTab()
{
	Tab* AutoTab = new Tab(kBottomScreen, 0, 0, AutoTab_Sprite, &FieldBackground, Controllers::autoTabController);
	
		// checkboxes (Hybrid Type)
		CheckBox* HasAuto = new CheckBox(kBottomScreen, 170, 40, HasAuto_Sprite);
		
			AutoTab->add(HasAuto);
				Controllers::autoTabController->set_HasAuto(HasAuto);
		
		// special boxes (score type)
		
		RBGroup* AutoStrategy = new RBGroup();
		
			RadioButton* AutoDefense = new RadioButton(kBottomScreen, 32, 64, Defense_Sprite);
			RadioButton* AutoAssist = new RadioButton(kBottomScreen, 96, 64, AutoAssist_Sprite);
			RadioButton* Other = new RadioButton(kBottomScreen, 160, 64, Other_Sprite);
		
		AutoStrategy->add(AutoDefense);
		AutoStrategy->add(AutoAssist);
		AutoStrategy->add(Other);
		
			AutoTab->add(AutoStrategy);
				Controllers::autoTabController->set_AutoStrategy(AutoStrategy);
		
		// number_sprites (Score Locations)
		NumberSprite* RackScore = new NumberSprite(kBottomScreen, 140, 106, Rack_Sprite);
		NumberSprite* TroughScore = new NumberSprite(kBottomScreen, 140, 128, Trough_Sprite);
		NumberSprite* ZoneScore = new NumberSprite(kBottomScreen, 140, 150, Zone_Sprite);
		
			AutoTab->add(RackScore);
				Controllers::autoTabController->set_RScore(RackScore);
			
			AutoTab->add(TroughScore);
				Controllers::autoTabController->set_TScore(TroughScore);
			
			AutoTab->add(ZoneScore);
				Controllers::autoTabController->set_ZScore(ZoneScore);
	
	return AutoTab;
}
Example #2
0
Tab* initTeleTab()
{	
	Tab* TeleTab = new Tab(kBottomScreen, 64, 0, TeleTab_Sprite, &BGTele, Controllers::teleTabController);
	
		// checkboxes (If Occured)
		CheckBox* Disabled = new CheckBox(kBottomScreen, 137, 44, Disabled_Sprite);
		
			TeleTab->add(Disabled);
				Controllers::teleTabController->set_Disabled(Disabled);
		
		CheckBox* CanLowerBridge = new CheckBox(kBottomScreen, 90, 76, CanLowerBridge_Sprite);
		
			TeleTab->add(CanLowerBridge);
				Controllers::teleTabController->set_LowerBridge(CanLowerBridge);
		
		CheckBox* TravelAcrossBar = new CheckBox(kBottomScreen, 218, 76, TravelAcrossBar_Sprite);
		
			TeleTab->add(TravelAcrossBar);
				Controllers::teleTabController->set_TravelBar(TravelAcrossBar);
		
		// number sprites (Score Locations and Balls PU)
		NumberSprite* BallsPU = new NumberSprite(kBottomScreen, 100, 127, BALLS_Sprite);
		NumberSprite* TopScoreTele = new NumberSprite(kBottomScreen, 218, 100, Top_Sprite);
		NumberSprite* MidScoreTele = new NumberSprite(kBottomScreen, 218, 127, Mid_Sprite);
		NumberSprite* LowScoreTele = new NumberSprite(kBottomScreen, 218, 154, Low_Sprite);
		
			TeleTab->add(BallsPU);
				Controllers::teleTabController->set_BallsPU(BallsPU);
			
			TeleTab->add(TopScoreTele);
				Controllers::teleTabController->set_TScore(TopScoreTele);
			
			TeleTab->add(MidScoreTele);
				Controllers::teleTabController->set_MScore(MidScoreTele);
			
			TeleTab->add(LowScoreTele);
				Controllers::teleTabController->set_LScore(LowScoreTele);
		
		// disabled counter display
		NumberSprite* DisabledCounter = new NumberSprite(kBottomScreen, 170, 36, BlankTitle_Sprite);
			
			TeleTab->add(DisabledCounter);
				Controllers::teleTabController->set_DisabledCounter(DisabledCounter);

	return TeleTab;
}
Example #3
0
Tab* initEndTab()
{
	Tab* EndTab = new Tab(kBottomScreen, 192, 0, EndTab_Sprite, &BGEnd, Controllers::endTabController);
	
		CheckBox* Defensive = new CheckBox(kBottomScreen, 100, 60, Defensive_Sprite);
		
			EndTab->add(Defensive);
				Controllers::endTabController->set_Defensive(Defensive);
		
		CheckBox* Assist = new CheckBox(kBottomScreen, 100, 92, Assist_Sprite);
		
			EndTab->add(Assist);
				Controllers::endTabController->set_Assist(Assist);
		
		NumberSprite* Technical = new NumberSprite(kBottomScreen, 224, 60, Technical_Sprite);
		NumberSprite* Regular = new NumberSprite(kBottomScreen, 224, 92, Regular_Sprite);
		
			EndTab->add(Technical);
				Controllers::endTabController->set_Technical(Technical);
			
			EndTab->add(Regular);
				Controllers::endTabController->set_Regular(Regular);
		
		SpecialBox* YellowPenalty = new SpecialBox(kBottomScreen, 146, 114, yellow_penalty_Sprite);
		
			EndTab->add(YellowPenalty);
				Controllers::endTabController->set_YellowPenalty(YellowPenalty);
		
		SpecialBox* RedPenalty = new SpecialBox(kBottomScreen, 42, 114, red_penalty_Sprite);
		
			EndTab->add(RedPenalty);
				Controllers::endTabController->set_RedPenalty(RedPenalty);
		
		SpecialBox* Finish = new SpecialBox(kBottomScreen, 160, 156, Finish_Sprite);
		
			EndTab->add(Finish);
				Controllers::endTabController->set_Finish(Finish);
	
	return EndTab;
}