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

Method GUI_Sidebar_MapButton_RenderWrapper

Source/GUI_Element.cpp:882–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

880
881
882void cFodder::GUI_Sidebar_MapButton_RenderWrapper() {
883
884 // Don't display the map button on the final map
885 if (mVersionCurrent->isRetail() && mVersionCurrent->isCannonFodder1()) {
886 if ((mGame_Data.mMission_Number == 24 && mGame_Data.mMission_Phase == 6))
887 return;
888 }
889
890 // No the map overview button in the Demo versions
891 if (mVersionCurrent->isDemo() && !mVersionCurrent->isCustom())
892 return;
893
894 mGUI_Sidebar_MapButton_Prepared = 0;
895 GUI_Sidebar_MapButton_Render();
896}
897
898void cFodder::GUI_Sidebar_Number_Draw(int16 pNumber, int16 pX, int16 pData8, int16 pY, int16 pData10) {
899 pData10 -= 0x1A;

Callers

nothing calls this directly

Calls 4

isRetailMethod · 0.80
isCannonFodder1Method · 0.80
isDemoMethod · 0.80
isCustomMethod · 0.45

Tested by

no test coverage detected