Galladite27 / ONScripter-EN

Continuation of ONScripter-EN with updated dependencies and more features and bugfixes. Also see onscripter-insani (https://github.com/insani-org/onscripter-insani), our sister project.
http://galladite.net/~galladite/ons-en/
GNU General Public License v2.0
57 stars 12 forks source link

fix to show appropriate numbers by adding a function #85

Closed kunrakun closed 4 days ago

kunrakun commented 1 week ago

In UTF-8 mode, getStringFromInteger seems to behave differently than expected when used with UTF-8. It only displays @@ regardless of whether the prnum_info[no]->param has the correct value. I added a function, convertNumToFullWidthStr(), to convert numbers into full-width characters and replaced the getStringFromInteger() function with it. This works. getStringFromInteger()

However, it still exhibits the same issue as #83 overlapping text. Once issue #84 is resolved, the overlapping text problem here will also be automatically fixed.

Since convertNumToFullWidthStr() only needs to work in UTF-8, it should be possible to merge it with getStringFromInteger()... (but I can't)

This has only been tested for a specific case: pscript.dat.