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

Method GUI_Sidebar_Prepare_Squads

Source/GUI_Element.cpp:1393–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391}
1392
1393void cFodder::GUI_Sidebar_Prepare_Squads() {
1394
1395 mMouseDisabled = -1;
1396 Sidebar_Render_To_BackBuffer();
1397
1398 mGUI_NextFreeElement = mGUI_Elements;
1399
1400 Sidebar_Clear_ScreenBufferPtr();
1401 int16 Data4 = 0;
1402 {
1403 // Squad 1
1404 mGUI_Squad_NextDraw_Y = 0;
1405 GUI_Sidebar_Prepare(0, Data4);
1406 }
1407
1408 {
1409 // Squad 2
1410 Data4 = mGUI_Squad_NextDraw_Y;
1411 if (Data4)
1412 Data4 += 5;
1413 GUI_Sidebar_Prepare(1, Data4);
1414 }
1415
1416 {
1417 // Squad 3
1418 Data4 = mGUI_Squad_NextDraw_Y;
1419 if (Data4)
1420 Data4 += 5;
1421 GUI_Sidebar_Prepare(2, Data4);
1422 }
1423
1424 GUI_Sidebar_Add_Sidebar_Overlay();
1425
1426 mMouseDisabled = 0;
1427
1428 Sidebar_Render_To_ScreenBuffer();
1429 mMouse_Button_LeftRight_Toggle = false;
1430}
1431
1432void cFodder::GUI_Element_Mouse_Over(const sGUI_Element *pElement) {
1433 for (;; ++pElement) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected