Author Topic: NGUI Localization Format  (Read 6292 times)

animotion.tm

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
NGUI Localization Format
« 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?

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: NGUI Localization Format
« Reply #1 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 
  1. 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.