This code is used to test the new widget, also to be used on the FOSDEM,
the code is hidden under --new-widgets. It's not planned to keep this
change for the campaign dialog.
Set up the defaults to better match what's needed in the main lobby
causing less resizing after joining. Also avoid some silly cases.
- Never show a horizontal scrollbar for the rooms and lobby list.
- Always show it for the game list.
- Hide it for the rooms (always might be slightly better).
A repeating button is button when pressed down will execute an action,
if the user keeps it pressed down for a longer time it will repeat
this action until released.
The main place where the widget was missed is the MP lobby, I haven't
tested it there much since the lobby is still to slow. This means once
the lobby is fast enough it needs more tuning.
The widget hasn't been wired in the scrollbars, which will be done in
the next commit.
Some UMC uses listbox rowes with less than 20 pixes which caused images
to be resized to x - 20 which is negative and resulted into huge
positive numbers.
Modified the WML to return 0 in these cases and also added protection in
the engine to ignore those images. (The latter is needed since people
can create their own themes which might have this problem as well.)
Fixes bug #14525 and probably bug #14002.
This shows the scrollbars when a window doesn't fit, the code is only
lightly tested but initial tests seem to work. More testing is needed
especially on the MP lobby.
It still shows some scrollbars too often, which will be fixed later.
Fixes bug #13180.
Added male/female toggle buttons, name generation toggle, listbox. The
listbox should get filled with unit types now. Basically all the dialog
works except for a SDL issue with a toggle button which causes an
assertion failure before being displayed.
- JAP's ums2 icon (as ums.png)
- Zarael's fog/shroud icons (modified to add transparency)
- Zarael's disclosure triangles, key and qmark reload icon (modified
with transparency)
- Zarael's A-Z sort icon, modified with transparency and with
desaturated version as "off" icons
- group effort relation sort icon, with desaturated version as "off" icons