-
- ttermeer-reboundcg
- Posts: 31
- Joined:
- Contact:
Conditional Resources Dictionaries
What would be the best way in Unreal C++, to have dynamic resources dictionaries?
Since #2380 is still pending, we like to have a have different dictionaries loaded based on the current language in order to have the proper font (and custom font style to match).
Since #2380 is still pending, we like to have a have different dictionaries loaded based on the current language in order to have the proper font (and custom font style to match).
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Conditional Resources Dictionaries
You can have different dictionaries for each language and dynamically merge them into the Application Resources when the selected language changes.
Assuming you merge the dictionary with the font definitions in the first position you can do something like this:
Could something like this work for you?
Assuming you merge the dictionary with the font definitions in the first position you can do something like this:
Code: Select all
Noesis::ResourceDictionary* app = Noesis::GUI::GetApplicationResources();
Noesis::ResourceDictionaryCollection* merged = app->GetMergedDictionaries();
merged->RemoveAt(0);
merged->Insert(0, Noesis::GUI::LoadXaml<Noesis::ResourceDictionary>(pathToSelectedLanguageDictionary));
Who is online
Users browsing this forum: No registered users and 14 guests