PlatinumTeam / PlatinumQuest

PQ HERe
https://marbleblast.com
MIT License
21 stars 7 forks source link

Gem/TT indicator font customization in prefs, level description edits #1

Closed main-gi closed 3 years ago

main-gi commented 3 years ago

I have tested the Gem/TT indicator code myself, haven't tested level descriptions but there shouldn't be a problem there, I took account of needing to escape the quotes.

I am confused about why the prefs are actually defined like $pref::DefaultFontPointPopups and not $pref::DefaultFont["PointPopups"] like in the code though. I mean, it still worked though (the same works for DefaultFontItalic vs. DefaultFont["Italic"] in the actual code).

JeffProgrammer commented 3 years ago

I have tested the Gem/TT indicator code myself, haven't tested level descriptions but there shouldn't be a problem there, I took account of needing to escape the quotes.

I am confused about why the prefs are actually defined like $pref::DefaultFontPointPopups and not $pref::DefaultFont["PointPopups"] like in the code though. I mean, it still worked though (the same works for DefaultFontItalic vs. DefaultFont["Italic"] in the actual code).

The reason is torquescript arrays aren't real. they just append the string to the variable name. So with or without the brackets, it's actually the same variable.