| 4594 | } |
| 4595 | |
| 4596 | bool 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 | |
| 4631 | void cFodder::Sprite_Handle_Player_Enter_Vehicle(sSprite* pSprite) { |
| 4632 | // Have a target vehicle? |
nothing calls this directly
no test coverage detected