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

Method GUI_Sidebar_Number_Draw

Source/GUI_Element.cpp:898–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896}
897
898void cFodder::GUI_Sidebar_Number_Draw(int16 pNumber, int16 pX, int16 pData8, int16 pY, int16 pData10) {
899 pData10 -= 0x1A;
900
901 std::stringstream Tmp;
902 Tmp << tool_StripLeadingZero(std::to_string(pNumber));
903
904 String_CalculateWidth(pData8, mFont_Sidebar_Width, Tmp.str());
905 mGUI_Print_String_To_Sidebar = -1;
906 String_Print(mFont_Sidebar_Width, pData10, mGUI_Temp_X + pX, pY, Tmp.str());
907
908 mGUI_Print_String_To_Sidebar = 0;
909}
910
911int16 cFodder::Mouse_Button_Left_Toggled() {
912 if (mMouse_Button_Left_Toggle >= 0)

Callers

nothing calls this directly

Calls 1

tool_StripLeadingZeroFunction · 0.85

Tested by

no test coverage detected