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

Method GUI_Sidebar_MapButton_Render

Source/GUI_Element.cpp:1046–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046void cFodder::GUI_Sidebar_MapButton_Render() {
1047
1048 if (mGUI_Sidebar_MapButton_Prepared)
1049 return;
1050
1051 sGUI_Element* Element = mGUI_NextFreeElement;
1052 Element->field_0 = &cFodder::GUI_Button_NoAction;
1053 Element->mX = 0;
1054
1055 Element->mY = (getCameraHeight() - 0x0B); // PLATFORM_BASED(189, 214);
1056 Element->mWidth = 0x2F;
1057 Element->mHeight = 0x0B;
1058 Element->mMouseInsideFuncPtr = &cFodder::GUI_Handle_Button_ShowOverview;
1059
1060 mGraphics->Sidebar_Copy_Sprite_To_ScreenBufPtr(0xD0, Element->mX, Element->mY);
1061
1062 ++Element;
1063
1064 GUI_ClearElement(Element);
1065 mGUI_Sidebar_MapButton_Prepared = -1;
1066
1067}
1068
1069void cFodder::GUI_Element_Reset() {
1070

Callers

nothing calls this directly

Tested by

no test coverage detected