Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

Expose vgui::Label::SetCenterWrap(bool) to the lua #2432

Open IVogel opened 3 months ago

IVogel commented 3 months ago

As far as I can see, Garry's Mod should have this function in the Label class, since it has it in vgui::TextImage. Label also uses TextImage for text rendering.

If m_bWrapCenter is true, then RecalculateCenterWrapIndents should be called and it should update all horizontal offsets in the m_LineXIndent array.

Also, Source SDK 2013 headers have void SetCenterWrap( bool bWrap ); inside the Label class.

robotboy655 commented 3 months ago

Related: https://github.com/Facepunch/garrysmod-requests/issues/680