Secretchronicles / TSC

An open source two-dimensional platform game.
https://secretchronicles.org/
GNU General Public License v3.0
205 stars 49 forks source link

Replace HorzCentred with CentreAligned in CEGUI XML layouts #668

Closed Quintus closed 5 years ago

Quintus commented 5 years ago

With CEGUI 0.8, the value HorzCentred has been removed as a valid value from the HorzFormatting property. This is not documented, but breaks all centred formatting directives (of course without printing a warning about the removal, it just stops working and everything is left-aligned).

It has been replaced by CentreAligned. That is, each occurence of

 <Property name="HorzFormatting" value="HorzCentred"/>

has to be replaced by:

 <Property name="HorzFormatting" value="CentreAligned"/>

For the record: I found this by grep-ping through the XML files in our data/gui directory, which got updated on the CEGUI 0.8 update. At time of writing, there appear exactly two pages on the entire Internet (as per my favourite search engine) that mention CentreAligned, none of which is a reference, let alone a changelog. It is a prime example of CEGUI's poor documentation.

This issue ticket now probably constitutes the third search result.