Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Carles on Tue 16/05/2023 14:38:30

Title: 9 verbs template
Post by: Carles on Tue 16/05/2023 14:38:30
Hi

In a previous project I used the Tumbleweed template. I put some buttons inside the game menu to be able to change the language from there. I used this function so that all 9 verbs would update on button press:
Code (ags) Select
Verbs.VerbGuiOptions[eVerbGuiTemplateLanguage] = eLangEN;
Now I'm modifying an old project, and it uses the 9 verbs template (but not Tumbleweed), so I can't use the previous function. I have not found a way to achieve the same. When I change the language the 9 verbs are not updated.

Thanks for the help.
Title: Re: 9 verbs template
Post by: Khris on Tue 16/05/2023 14:57:49
Afaik you need to make your buttons run something like this:

  // button handler for Spanish
  lang = eLangES; // update global variable
  InitGuiLanguage();
  AdjustGUIText();
Title: Re: 9 verbs template
Post by: Carles on Tue 16/05/2023 17:25:25
InitGuiLanguage(); I can't use it, it's from the Tumbleweed template. But instead I have done this and it already works perfectly:
Game.ChangeTranslation("English");
lang = eLangEN;
AdjustLanguage();
AdjustGUIText();
System.SaveConfigToFile();
Thanks for the support.
Title: Re: 9 verbs template
Post by: Khris on Tue 16/05/2023 19:20:23
I looked at the AGS 3.4 version of the 9verb template and it looks like the function was renamed :)
Glad it works!