How to judge which interface language the SCR uses?
Post has been edited 1 time(s), last time on May 7 2019, 4:37 am by Lost_Angel.
None.
The width of two or more whitespaces differs from language to language in SC: R, and whether user purchase SC: R or not.
The width of whitespaces in Unpurchased, English SC, has largest width. DisplayText will break line with at least 124 whitespaces.
In Purchased, Korean SC, DisplayText with 171 whitespaces will break line.
The width of whitespaces is same in Purchased, English and Unpurchased, Korean SC. DisplayText with 206 whitespaces will break line.
We can measure the number of lines in last DisplayText, by calculating difference of 0x640B58.
The width of two or more whitespaces differs from language to language in SC: R, and whether user purchase SC: R or not.
The width of whitespaces in Unpurchased, English SC, has largest width. DisplayText will break line with at least 124 whitespaces.
In Purchased, Korean SC, DisplayText with 171 whitespaces will break line.
The width of whitespaces is same in Purchased, English and Unpurchased, Korean SC. DisplayText with 206 whitespaces will break line.
We can measure the number of lines in last DisplayText, by calculating difference of 0x640B58.
Oh,thank you, it seems a good method which I still don't know how to use. In fact, I came up with a complex and clumsy solution which could judge which interface language in map. But it is so pity, I cann't judge whether SCR English is Unpurchased or not, so I think your method will be better.
Post has been edited 2 time(s), last time on May 22 2019, 3:15 am by Lost_Angel.
None.
The width of two or more whitespaces differs from language to language in SC: R, and whether user purchase SC: R or not.
The width of whitespaces in Unpurchased, English SC, has largest width. DisplayText will break line with at least 124 whitespaces.
In Purchased, Korean SC, DisplayText with 171 whitespaces will break line.
The width of whitespaces is same in Purchased, English and Unpurchased, Korean SC. DisplayText with 206 whitespaces will break line.
We can measure the number of lines in last DisplayText, by calculating difference of 0x640B58.
oh, my method has a bug what is easy to drop each other because of data asynchronization.Can you elaborate on your method? I jsut want to judge Unpurchased English,简体中文,繁体中文 and 한국어.It's very useful.
None.
oh, my method has a bug what is easy to drop each other because of data asynchronization.Can you elaborate on your method? I jsut want to judge Unpurchased English,简体中文,繁体中文 and 한국어.It's very useful.
I uploaded working example map and epScript code;
http://www.staredit.net/sc1db/file/4393/ .