Code: Select all
[mod-setting-name]
my-mod-test-setting=Localized test setting name
[mod-setting-description]
my-mod-test-setting=Localized test setting description
[string-mod-setting]
#<setting-name>-<dropdown-item-name>=<translated item>
my-mod-string-test-setting-item-1=Item 1 localized string
Dropdown lists may get quite long. Currently, you'd have to make the title self-explanatory, or cram descriptions for all possible values into the mod-setting-description. It's easy to understand what an option does if it's a number values. However, the values could be used as value in comparisons, like this:
Code: Select all
if setting.value == 'X' then
remote.call('interface_A', …)
elseif setting.value == 'Y' then
remote.call('interface_B', …)
end
Code: Select all
[string-mod-setting]
my-mod-string-test-setting-X=If mod A is active, …
my-mod-string-test-setting-Y=If mod B is active, … This won't apply if mods A and C are also active!