Support => NGUI 3 Support => Topic started by: animotion.tm on December 21, 2016, 10:16:02 AM
Title: NGUI Localization Format
Post by: animotion.tm on December 21, 2016, 10:16:02 AM
We are using NGUI version 3.5.8 unitypackage. In example #10 (localization) we are given an option in the form of a "drop-down menu" in order to choose our desired language. The question is how to replace this "drop-down menu" format with a series of icons each representing a single language, so that the user can simply browse the list of languages and click on the desired icon?
Title: Re: NGUI Localization Format
Post by: Holy Manfred on December 23, 2016, 10:59:03 AM
The user interface elements you use is relatively irrelevant. You can use buttons, drop-downs, sliders or anything else to switch the language. Simply calling
Localization.language="yourlanguage";
will switch the language. So you could just create a button and call a function that calls the above line on OnClick.