Wintermute Engine => Technical forum => Topic started by: fsk on June 28, 2011, 04:04:40 PM
Title: About Languages
Post by: fsk on June 28, 2011, 04:04:40 PM
Hi all! I have create in my options some flags (greek, english, german for example) as checked box. So, i want to save in my registry as default.. when i select a language! Any solution? Thanks..
Title: Re: About Languages
Post by: Endrit on June 28, 2011, 05:35:42 PM
I think you can use a global variable that change his value by clicking the flag and than you can use a if . (sorry i can give you any script code becouse i don't know if the answer is true )
Title: Re: About Languages
Post by: Darky on June 28, 2011, 06:37:33 PM
I think Endrit is on the right track. I don't do language changes like that but using the WME Registry functions in combination with a global variable should get you to do what you want.
Just remember, that you can't change language at runtime (as far as I know at least)
I'd do it like that (untested!) I advise looking up the functions I am about to post so that you better understand what I did.