Difference between revisions of "Extensions:Organised Traits Dropdown"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Extensioninfobox|title=Organised Traits Dropdown|desc=Organizes trait dropdowns by category.|auth=Draginraptor|status=Stable|github=|LKVer=3.0|migration=no|package=no}}
+
{{Extensioninfobox|title=Organised Traits Dropdown|desc=Changes trait dropdowns to use their categories as an optgroup.|auth=Draginraptor|status=Stable|github={{Github|user=draginraptor|branch=extension/organised_trait_dropdown}}|LKVer=2.0.0|migration=no|package=no|dev300=yes}}
 
{| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;"
 
{| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;"
 
|-
 
|-
 
| '''<u>THIS EXTENSION IS PART OF v3.0.0</u>'''
 
| '''<u>THIS EXTENSION IS PART OF v3.0.0</u>'''
 
|-
 
|-
| This extension has been merged into the v3.0.0 branch as [https://github.com/corowne/lorekeeper/pull/293 Organised Traits dropdown].
+
| This extension has been merged into the v3.0.0 branch as [https://github.com/corowne/lorekeeper/pull/293 Organised Traits Dropdown].
 +
|-
 +
| The Github link is for older versions, for those running on LK v2. Please note the differences below.
 
|}
 
|}
This changes traits/features dropdowns to have optgroups based on the traits' categories. 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.
+
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 ==
 
== Installation ==
Must be turned on in config/lorekeeper/extensions.php in order to be used.
+
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 ==
 
== Images ==
 
<!-- Do you have any images to show what it looks like in action? -->
 
<!-- Do you have any images to show what it looks like in action? -->
 +
== Troubleshooting ==
 +
There are currently no known issues, but you can always find Draginraptor on the Lorekeeper Discord server if you need help.
 
== See Also ==
 
== See Also ==
 
* [[Updating:_to_3.0.0]]
 
* [[Updating:_to_3.0.0]]

Latest revision as of 14:09, 15 April 2024

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