Forum Discussion
6 Replies
- SimGuruEugi9 years ago
EA Staff (Retired)
You want to be able to set the text and title to hard-coded strings? If so, you can set them to:
text=lambda **_: LocalizationHelperTuning.get_raw_text("Hello!")
You can find an example of triggering UI dialogs from code in ui_commands.py (ui_dialog_notification_test) - SimGuruEugi9 years ago
EA Staff (Retired)
"Forest_Ninja;15029666" wrote:
"SimGuruEugi;15017871" wrote:
You want to be able to set the text and title to hard-coded strings? If so, you can set them to:
text=lambda **_: LocalizationHelperTuning.get_raw_text("Hello!")
You can find an example of triggering UI dialogs from code in ui_commands.py (ui_dialog_notification_test)
Is there any way to get an instance of TunableLocalizedString by hash?
Use_create_localized_string(string_id, *tokens)
- SimGuruEugi9 years ago
EA Staff (Retired)
No. If you have a reference to a tunable, you can use the reference. If all you have is a hash, you have to create the string. You can't find a tunable using just the hash.
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,554 PostsLatest Activity: 7 hours ago
Community Highlights
Recent Discussions
- 38 minutes ago
Innisgreen not loading
Solved2 hours ago- 2 hours ago