Game/Source/MenuPause.cpp
// Called before the first frame / when activated
Called before the first frame / when activated
Called before the first frame / when activated
bool MenuPause::Load()
{
	LOG("Loading Pause Menu");
	 Load buttons
	GUITexture = tex->Load("Assets/Textures/GUI/gui_spritesheet.png");
	buttonResume = new GUIButton(11, { 16, 65, 100, 24 }, "RESUME", audioManager, fonts);
	buttonResume->SetObserver(this);
	buttonResume->SetTexture(GUITexture);
	buttonSettings = new GUIButton(12, { 16, 95, 100, 24 }, "SETTINGS", audioManager, fonts);
	buttonSettings->SetObserver(this);
	buttonSettings->SetTexture(GUITexture);
	buttonTitle = new GUIButton(13, { 16, 125, 100, 24 }, "TITLE", audioManager, fonts);
	buttonTitle->SetObserver(this);
	buttonTitle->SetTexture(GUITexture);
	buttonExit = new GUIButton(14, { 16, 155, 100, 24 }, "EXIT", audioManager, fonts);
	buttonExit->SetObserver(this);
	buttonExit->SetTexture(GUITexture);
	 Load white font
	font = fonts->Load("Assets/Fonts/font_big_white.png", "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ ", 2, 324, 32);
	 Move camera
	render->camera.x = render->camera.y = 0;
	return false;
}
bool MenuPause :: Load ( ) { LOG ( " " ) ; GUITexture = tex -> Load ( " " ) ; buttonResume = new GUIButton ( 11 , { 16 , 65 , 100 , 24 } , " " , audioManager , fonts ) ; buttonResume -> SetObserver ( this ) ; buttonResume -> SetTexture ( GUITexture ) ; buttonSettings = new GUIButton ( 12 , { 16 , 95 , 100 , 24 } , " " , audioManager , fonts ) ; buttonSettings -> SetObserver ( this ) ; buttonSettings -> SetTexture ( GUITexture ) ; buttonTitle = new GUIButton ( 13 , { 16 , 125 , 100 , 24 } , " " , audioManager , fonts ) ; buttonTitle -> SetObserver ( this ) ; buttonTitle -> SetTexture ( GUITexture ) ; buttonExit = new GUIButton ( 14 , { 16 , 155 , 100 , 24 } , " " , audioManager , fonts ) ; buttonExit -> SetObserver ( this ) ; buttonExit -> SetTexture ( GUITexture ) ; font = fonts -> Load ( " " , " " , 2 , 324 , 32 ) ; render -> camera . x = render -> camera . y = 0 ; return false ; }
Called before the first frame / when activated
Called before the first frame / when activated
// // Load buttons // // // Load white font // // // Move camera //