Then you might be right and itâs Kha thatâs missing support for those characters which would be sad. Maybe Lubos will push some commits to one of the Kode repos implementing this if there is an open issue. It also doesnât help to use unicode escape strings so it isnât a Haxe issue.
While testing the russian string I found a bug in Armory when parsing the trait file for properties to show in the Blender UI:
location: <unknown location>:-1
Error: Traceback (most recent call last):
File "A:\Workspace\Documents\Projekte\Forks\ArmorySDKDEV//armory/blender\arm\props_ui.py", line 566, in execute
make.play()
File "A:\Workspace\Documents\Projekte\Forks\ArmorySDKDEV//armory/blender\arm\make.py", line 501, in play
arm.utils.fetch_script_props(fn) # Trait props
File "A:\Workspace\Documents\Projekte\Forks\ArmorySDKDEV//armory/blender\arm\utils.py", line 297, in fetch_script_props
lines = f.read().splitlines()
File "A:\Programs\Blender\Blender 2.83\2.83\python\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 914: character maps to <undefined>
I will try to fix it tomorrow
@ Everyone: I pushed another commit that improves how theme files can be overridden. Now, when you override a theme ID only those properties that are explicitly set are overriden, not the entire group of properties. This makes it possible to change some theme IDs in the overriding file without the need to create custom ones.
Lets look at the following example situation where the original theme file has an entry like this:
buttonA > _root:
font:
size: 18
color:
text: #ffffff
// buttonB has all properties from buttonA and overrides the text color
buttonB > buttonA:
color:
text: #000000
Lets create another theme file that will be applied on top of the theme file above with the following content:
buttonB > buttonA:
font:
size: 24
Previously, this would result in the buttonB having a white color (#ffffff
) and a font size of 24px because buttonB from the original theme file would be completely overriden. Now, buttonB has a black color (#000000
) and a font size of 24 as one would expect.
This makes it very easy for example to just set another default font without having to copy all contents from the _root
ID.