Extensions:Organised Traits Dropdown

From Lorekeeper Wiki
Jump to navigation Jump to search
Organised Traits Dropdown
Description Changes trait dropdowns to use their categories as an optgroup.
Author(s) Draginraptor
Status Stable
Github extension/organised_trait_dropdown
LK Version 2.0.0
Is part of LK v3.0.0's release






THIS EXTENSION IS PART OF v3.0.0
This extension has been merged into the v3.0.0 branch as Organised Traits Dropdown.
The Github link is for older versions, for those running on LK v2. Please note the differences below.

Trait dropdowns will now show options grouped by their trait category, or under 'Miscellaneous' if not assigned one. On selecting an option, the trait category will also display in brackets next to the trait name.

Dropdown options are fetched via a static Feature class method (Feature::getDropdownItems); this is where the extension's toggle state is checked as well, changing the output returned.

Installation

To install, you only need to pull the branch into your project. If your Lorekeeper is v3.0.0 or higher, you do not need to do this.

Configuration

If your Lorekeeper is v3.0.0 or higher, you must enable this in config/lorekeeper/extensions.php in order to be used. Older versions do not require any configuration.

Images

Troubleshooting

There are currently no known issues, but you can always find Draginraptor on the Lorekeeper Discord server if you need help.

See Also