ModSettings Manager is out: https://forums.civfanatics.com/resources/modsettings-manager.32070/
ModSettingsManager is a mod to allow to organize Mod Settings. It's not required at all to have mods options displayed
It allow to have custom group if ComboBox display is used or not.
mod: { value: "lf_yields", label: "LOC_OPTIONS_MOD_LF_YIELDS", tooltip: "LOC_OPTIONS_MOD_LF_YIELDS_TOOLTIP" }
It will define your insert into the dropdown.
ModSettingsManager is a mod to allow to organize Mod Settings. It's not required at all to have mods options displayed
How to add Option in Mod Category
The simpliest way is by far to use: OptionsAPIWhat Mod do
It add a combobox for each (groupOf) Mod. Allowing to display only wanted one without scrolling.It allow to have custom group if ComboBox display is used or not.
How to have multiple group inside my mod selection
By default each different 'group' generate a insert into mods dropdown. But you can define a mod property in your option declartion like that:mod: { value: "lf_yields", label: "LOC_OPTIONS_MOD_LF_YIELDS", tooltip: "LOC_OPTIONS_MOD_LF_YIELDS_TOOLTIP" }
It will define your insert into the dropdown.
How to have multiple group in comboDisplay but only one otherwise
add 'groupCB' property to your mod declartion. It will be used as group if comboDisplay enabled
JavaScript:
````javascript
export const enableAutoSelectEmptySlotOption = modOptions.addModOption({
id: 'mmf-feature-auto-select-empty-slot',
category: CategoryType.Mods,
group: MOD_OPTIONS_GROUP_FLAT,
groupCB: MOD_OPTIONS_GROUP_FEATURES,
type: OptionType.Checkbox,
defaultValue: true,
label: "LOC_OPTIONS_MMF_ENABLE_FEATURE_AUTO_SELECT_EMPTY_SLOT"
});
export const hideCheckboxOption = modOptions.addModOption({
id: 'mmf-config-hide-checkbox',
category: CategoryType.Mods,
group: MOD_OPTIONS_GROUP_FLAT,
groupCB: MOD_OPTIONS_GROUP_CONFIG,
type: OptionType.Checkbox,
defaultValue: true,
label: "LOC_OPTIONS_MMF_CONFIG_HIDE_CHECKBOX",
description: "LOC_OPTIONS_MMF_CONFIG_HIDE_CHECKBOX_TOOLTIP"
});
````
Attachments
Last edited: