| 749 | } |
| 750 | |
| 751 | void cFodder::GUI_Prepare_Button_TroopName() { |
| 752 | |
| 753 | if (mSquad_Selected != mGUI_Loop_Squad_Current) |
| 754 | return; |
| 755 | |
| 756 | for (int16 Data4 = 2; Data4 >= 0; --Data4) { |
| 757 | if (!mSquads_TroopCount[Data4]) |
| 758 | goto loc_2FCF4; |
| 759 | } |
| 760 | |
| 761 | return; |
| 762 | |
| 763 | loc_2FCF4:; |
| 764 | mGUI_TroopName_DrawOffset = mGUI_Loop_Draw_Y; |
| 765 | sGUI_Element* Element = mGUI_NextFreeElement; |
| 766 | |
| 767 | Element->field_0 = &cFodder::GUI_Button_NoAction; |
| 768 | Element->mX = 0; |
| 769 | Element->mWidth = 0x2F; |
| 770 | Element->mY = mGUI_Loop_Draw_Y + 0x22; |
| 771 | |
| 772 | Element->mHeight = mSquads_TroopCount[mSquad_Selected] * 0x0C; |
| 773 | Element->mMouseInsideFuncPtr = &cFodder::GUI_Handle_Button_TroopName; |
| 774 | |
| 775 | ++Element; |
| 776 | GUI_ClearElement(Element); |
| 777 | } |
| 778 | |
| 779 | void cFodder::GUI_Handle_Button_TroopName() { |
| 780 |
nothing calls this directly
no outgoing calls
no test coverage detected