Comboboxes - EvaTheDM/mildly-magical-inspiration GitHub Wiki

With v.2.0.0 of the module, modular comboboxes have been introduced that are being used for selecting current owner, an activation cost and an effect duration. This is a quick overview over how they function.

General Functionality

Comboboxes are meant to serve two purposes: 1. Reducing your possible dropdown choices by starting to type in the choice you're looking for. 2. Helping you save time by selecting already existing or used options from a simple dropdown list. As you type text into the input field, the dropdown list of the comboboxes adjusts and changes to show you only options that are matching your current selection.

When you finish typing and go to the next combobox you also created a new option that you can use in other comboboxes.

The dropdown options are always specific to the respective type of comboboxes. As such current owner, activation cost and effect duration can but usually won't have the same options available.

Current Owner Combobox

The current owner combobox is meant to only serve the names of the players in your game. As such you can't add a new player name by simply typing a different name. The Combobox will at that point refuse your input and colour the box red for a short moment. The input field here is simply meant to help you choose players more quickly in case you have a very long list of them.

The combobox will always select the closest matching option. So if you have players called Aren, Reynold and Max typing Ar into the text input and then leaving the combobox will automatically select Aren as it would be the closest match.