Beamdog / nwn-issues

Neverwinter Nights: Enhanced Edition Technical Bug Tracker
http://nwn.beamdog.com
31 stars 1 forks source link

NUI combobox with tooltip issue #616

Open silent-rock opened 6 months ago

silent-rock commented 6 months ago

Specifics

If needed, describe the bug Enter the game with provided module. NUI window should appear on enter. Try to open combobox.

Combobox doesn't work properly. It can't be expanded. The most likely cause is tooltip. When we comment out the part responsible for displaying the tooltip in the script (nui_character) that creates the NUI window, the combobox works properly.

NUI_DEITY.zip

tinygiant98 commented 6 months ago

Nuklear only allows one pop-up window per widget. In this case, the drop down list itself is a pop-up window, but takes lower precedence than the tooltip. Because of this limitation within nuklear, tootlips are not compatible with comboboxes. The only available solution for now is to not use a tooltip on a combobox. This doesn't mean other potentially useful solutions can't be used (such as an 'info' icon/widget next to the combobox), but a tooltip on the combox widget itself will prevent the combobox from expanding. We'll leave this issue open for now in case another solution can be identified.