Help me(button)!!!
10 years 3 months ago #254
by truongson
Replied by truongson on topic Help me(button)!!!
Thank you very much. But can you give me details..How to set it up
Please Log in or Create an account to join the conversation.
10 years 3 months ago #255
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Help me(button)!!!
Hi,
I attached an example with the script for localizing button states.
Just unzip the attached file in any project containing I2 Localization and NGUI with its Examples
In "Assets/I2/Localization Extras" I created a copy of the NGUI Localization example scene.
It now has a button at the top right with an image for each of the button states.
Also in the languageSource there are 4 new terms ("PLAY_BUTTON_NORMAL", "PLAY_BUTTON_HOVER", etc)
And I attached the LocalizeButton script to the button and set the names of the Term used for each state.
Thats it by attaching that script and adding the terms, you will now be able to localize buttons with images for each state.
In future versions, I will add a propper custom inspector to easy the editing of that component and allow selecting the terms from a dropdown.
Hope that helps,
Frank
I attached an example with the script for localizing button states.
Just unzip the attached file in any project containing I2 Localization and NGUI with its Examples
Attachment LocalizationExtras.zip not found
In "Assets/I2/Localization Extras" I created a copy of the NGUI Localization example scene.
It now has a button at the top right with an image for each of the button states.
Also in the languageSource there are 4 new terms ("PLAY_BUTTON_NORMAL", "PLAY_BUTTON_HOVER", etc)
And I attached the LocalizeButton script to the button and set the names of the Term used for each state.
Thats it by attaching that script and adding the terms, you will now be able to localize buttons with images for each state.
In future versions, I will add a propper custom inspector to easy the editing of that component and allow selecting the terms from a dropdown.
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
The following user(s) said Thank You: truongson
Please Log in or Create an account to join the conversation.
10 years 3 months ago #256
by truongson
Replied by truongson on topic Help me(button)!!!
Thank you very much ... I had success with the enthusiastic guidance of your
Please Log in or Create an account to join the conversation.
Time to create page: 0.206 seconds