LanguagePatches / LanguagePatches-Framework

Framework that can be used to translate Kerbal Space Program
MIT License
2 stars 1 forks source link

Main Menu in 1.2.2 #8

Open StollD opened 7 years ago

StollD commented 7 years ago

With 1.2.2 the structure of the Main Menu has changed. First, the bounds of the textfields are way smaller than they used to be, means something like this happens. Second, while it was built using Unity Components (TextMesh and Font), it is now created with components from TextMesh Pro, using their own Font type.

The first issue should be easily fixable, but I am not sure about the second one. I am almost sure, that TMP offers no way to convert a Unity Font into their vector font yadda yadda - without buying the whole asset for 90$, which is not something I want to do, and I dont want that others spend money just because they want to translate KSP properly.

@simon56modder (or others who follow this) If you dont have other suggestions, I would try to rebuild the whole MainMenu UI using the old TextMesh skeleton from an 1.2.1 install (or earlier) - and remove the TMP integration. If you have other ideas, please post them, because this is not something I'd like to do - I would do it only if neccessary.

jiangtiandao commented 7 years ago

I extracted ksp recource.assets with Unity Studio and found multiple font with German letters already inside so generating font is unnecessary I think just substitute dotty SDF for Calibri-Greek Cyrilic SDF or ARIAL SDF and resizing would be OK for German Main menu. this.m_fontAsset = Resources.Load("Fonts & Materials/ARIAL SDF", typeof(TMP_FontAsset)) as TMP_FontAsset; @ThomasKerman qq 20170120102208

StollD commented 7 years ago

This is of course an option. It's not nice, but I will add the code for it if I dont manage to find another solution.

Thanks