| 1115 | } |
| 1116 | |
| 1117 | void cFodder::GUI_Button_Setup(void(cFodder::*pFunction)(void)) { |
| 1118 | sGUI_Element* Element = mGUI_NextFreeElement; |
| 1119 | |
| 1120 | Element->field_0 = &cFodder::GUI_Button_NoAction; |
| 1121 | |
| 1122 | Element->mX = mGUI_Temp_X - 3; |
| 1123 | Element->mWidth = mGUI_Temp_Width + 4; |
| 1124 | Element->mY = mGUI_Temp_Y; |
| 1125 | Element->mHeight = mGUI_Draw_LastHeight + 5; |
| 1126 | Element->mMouseInsideFuncPtr = pFunction; |
| 1127 | |
| 1128 | ++Element; |
| 1129 | Element->field_0 = 0; |
| 1130 | mGUI_NextFreeElement = Element; |
| 1131 | } |
| 1132 | |
| 1133 | void cFodder::GUI_Button_Setup_Small(void(cFodder::*pFunction)(void)) { |
| 1134 | sGUI_Element* Element = mGUI_NextFreeElement; |
nothing calls this directly
no outgoing calls
no test coverage detected