Topic: Editable dropdown?
kaputtnik Topic Opener |
Posted at: 2024-02-26, 17:28
Is it possible to have an editable dropdown widget? Wanted behavior of such an "dropdowneditbox": I came across this idea by using the "Copy area" addon: Often i needed values (x- and y-coordinates) which were just used some time ago. In the current implementation you have to
to use this value again. If the spinboxes will be exchanged with dropdowneditboxes one can enter values and/or choose a previous entered value. Did i overlooked such a widget? Top Quote |
Nordfriese |
Posted at: 2024-02-26, 19:54
Widgets that do this are called Comboboxes. Widelands doesn't have such a widget built-in currently as we have no use case for it in the default UI. What you could do is to put an editbox and a dropdown of type Top Quote |
kaputtnik Topic Opener |
Posted at: 2024-02-27, 15:39
Ah, that's a good idea I have trouble to get an image on the button of the dropdown if it is of type
Where has this icon to be set? Or: To which icon "shown icon" refers? Applying an icon to the dropdown entries works, but the button is still blank. Trying to set an icon for in the main dropdown definition also doesn't work. Codesnipped for testing, see attachment for the whole test addon)
Top Quote |
Nordfriese |
Posted at: 2024-02-27, 17:08
Oops That's an oversight in the Lua UI API code, will make a branch to fix this Top Quote |
kaputtnik Topic Opener |
Posted at: 2024-02-27, 17:13
Thanks, glad that i didn't overlooked something again Top Quote |
Nordfriese |
Posted at: 2024-02-27, 17:25
https://codeberg.org/wl/widelands/pulls/4742 Top Quote |