Albeoris / Memoria

Final Fantasy IX tools
MIT License
345 stars 45 forks source link

Configurable font drop shadow distance #655

Open snouz opened 1 month ago

Tirlititi commented 1 month ago

If I'm not mistaken, the shadow effect is done by writing the same text a second time with a small distance (I think that's a pretty standard way to add shadow to text) and there's a bug in the sense that, at least in some situations, it doesn't take offseted text into account (text can be offseted with opcodes like [YADD=...]). So there's that to fix at the same time.

snouz commented 1 month ago

If I'm not mistaken, the shadow effect is done by writing the same text a second time with a small distance (I think that's a pretty standard way to add shadow to text) and there's a bug in the sense that, at least in some situations, it doesn't take offseted text into account (text can be offseted with opcodes like [YADD=...]). So there's that to fix at the same time.

At least in some places, like shopUI as an example, it's just a setting alongside the font size.

image

Effect distance controls the drop shadow.

No idea how it works for text, I know Samsam fixed some problems with colored text not going back to the old offset after the word in question. I know he did it in the code that receives the script, so I'm almost sure it's possible to tweak that value.