MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetFlagsForLabelProperties

Function GetFlagsForLabelProperties

src/game/client/ui.cpp:758–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758static int GetFlagsForLabelProperties(const SLabelProperties &LabelProps, const CTextCursor *pReadCursor)
759{
760 if(pReadCursor != nullptr)
761 return pReadCursor->m_Flags & ~TEXTFLAG_RENDER;
762
763 int Flags = 0;
764 Flags |= LabelProps.m_StopAtEnd ? TEXTFLAG_STOP_AT_END : 0;
765 Flags |= LabelProps.m_EllipsisAtEnd ? TEXTFLAG_ELLIPSIS_AT_END : 0;
766 return Flags;
767}
768
769vec2 CUi::CalcAlignedCursorPos(const CUIRect *pRect, vec2 TextSize, int Align, const float *pBiggestCharHeight)
770{

Callers 1

DoLabelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected