Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Centered Text on an LCD Panel

$
0
0
This thread gave me some ideas on how to center text on an LCD Panel.

Using the data in FontData.xml (Content/Fonts/white_shadow), I pull the width of each character and put them into a Dictionary<string, int>, where the key is the character (like "A") and the the value is the character width (37).

I pulled that data by copy/pasting the data from the XML into a separate LCD Panel, which a Programmable Block...

Centered Text on an LCD Panel

Viewing all articles
Browse latest Browse all 645

Trending Articles