eugeneloza / decoherence

Project moved to https://gitlab.com/EugeneLoza/decoherence
GNU General Public License v3.0
10 stars 7 forks source link

FPSLabel spams wrong size errors #479

Closed eugeneloza closed 6 years ago

eugeneloza commented 6 years ago

18:47:19> DFont.AddNewString: "49" has width 16 which is larger than requested text width 15

eugeneloza commented 6 years ago

Not sure how to fix this issue correctly. Setting Next.w := MaxInt i.e. "force text into a line" looks like an easy solution for integer labels, such as FPSLabel or HealthLabel. However, it doesn't look clean enough.

Seems like we need 3 types of labels: Sharp labels always fitting "width" (i.e. some text); 1-line Labels scaled down to fit "width" (i.e. headers of the window). Sharp labels always in 1 line (i.e. numeric data, nicknames, etc.)