MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Demo_Amiga_ShowMenu

Method Demo_Amiga_ShowMenu

Source/Fodder.cpp:4596–4629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4594}
4595
4596bool cFodder::Demo_Amiga_ShowMenu() {
4597 mSound->Music_Stop();
4598
4599 if(mVersionCurrent->isAmigaNotVeryFestive() || mVersionCurrent->isAmigaAlienLevels())
4600 mGraphics->Load_And_Draw_Image("VMENU", 32);
4601 else
4602 mGraphics->Load_And_Draw_Image("apmenu.lbm", 32);
4603
4604 // Amiga Demos have a different cursor palette
4605 GetGraphics<cGraphics_Amiga>()->SetCursorPalette(0x10);
4606 mWindow->SetScreenSize(mVersionCurrent->GetSecondScreenSize());
4607
4608 mGUI_Mouse_Modifier_Y = 4;
4609
4610 Menu_Loop(
4611 [this]() {
4612 if (mButtonPressLeft) {
4613 if (mVersionCurrent->isAmigaXmas())
4614 GUI_Element_Mouse_Over(mAfx_Buttons);
4615
4616 if (mVersionCurrent->isAmigaPower())
4617 GUI_Element_Mouse_Over(mPlus_Buttons);
4618
4619 if (mVersionCurrent->isAmigaAction() || mVersionCurrent->isAmigaNotVeryFestive() || mVersionCurrent->isAmigaAlienLevels())
4620 GUI_Element_Mouse_Over(mAmigaAction_Buttons);
4621
4622
4623 }
4624 });
4625
4626 GetGraphics<cGraphics_Amiga>()->SetCursorPalette(0xE0);
4627 mWindow->SetScreenSize(mVersionCurrent->GetScreenSize());
4628 return mPhase_Aborted;
4629}
4630
4631void cFodder::Sprite_Handle_Player_Enter_Vehicle(sSprite* pSprite) {
4632 // Have a target vehicle?

Callers

nothing calls this directly

Calls 11

isAmigaNotVeryFestiveMethod · 0.80
isAmigaAlienLevelsMethod · 0.80
SetCursorPaletteMethod · 0.80
SetScreenSizeMethod · 0.80
GetSecondScreenSizeMethod · 0.80
isAmigaXmasMethod · 0.80
isAmigaPowerMethod · 0.80
isAmigaActionMethod · 0.80
Music_StopMethod · 0.45
Load_And_Draw_ImageMethod · 0.45
GetScreenSizeMethod · 0.45

Tested by

no test coverage detected