NuiCombo( json, json )
From NWN Lexicon
Jump to navigationJump to search
A combobox/dropdown.
// A combobox/dropdown.
json // Element
NuiCombo(
json jElements, // Bind:ComboEntry[]
json jSelected // Bind:Int (index into jElements)
);
Returns
jons Element
Parameters
- jElements
- JsonArray of NuiComboEntry
- jSelected
- JsonInt or NuiBind (don't get it confused with an NWN int)
Description
A combobox/dropdown.
Remarks
- jSelected refers to the index of the selected combo entry and not the value in jElements. This means, querying a bind attached to this parameter will return the index and not the value in the array.
- Drop-downs and tooltips use the same functionality to display, and you can only have one or the other one a single widget. This means that NuiCombo is not compatible with NuiTooltip (if you try to apply a tooltip to it, clicking the NuiCombo will not make the dropdown appear, therefore you are unable to select another value).
Version
This function was added in 1.85.8193.31 of NWN:EE.
Example
See Also
| functions: |