We now use a 400x400 image (max size 500x500) and scale that down to a
'nice' size for the current window size. The scale factor might need
some tuning.
Kitty also prefers to see a 400x400 image scaled down and evaluate the
quality, this might means we only need a 400x400 image but also that we
still need a 300x300 and maybe a 200x200 image.
It's still not possible to manipulate the new portraits from the WML
but that's postponed until we know how much images will be used.
The easy close feature closes windows by a single mouse click, without
the need for a close button. Also converted the test dialog for the
remove addons to use this feature and commenting out the button in the
config (it will be needed later again).
Easy close means a single click will close a window (if this is enabled
in the configs). Also convert the dialogs in the test scenario to use
this feature.
This widget will need some more changes to be able to replace the current
dialogs shown to the user. Only replaced one place where widgets are used in
order to test the dialog.
The flags did an uncorrect test on the flags, now properly uses a mask.
Also added better detection for invalid flags. Avoided grow and
alignment both to be set (leading to invalid flags) and removed all
occurances in the configs.
currently only does lightning settings by having presets and custom
sliders. Functional but still WIP, may have some subtle bugs. Changing
slider values refreshes the underlying map, in a possibly inefficient
way (flicker), but working reasonably. This fills fr#11408
Added the option to show or hide the scrollbar. Moved the sizing code
to the tvertical_scrollbar_container_ class which will query the listbox
to as it for the best size for the list.
Needed to set the proper maximum width and use the extends size and
offset to get the proper required width. Added a debug ostream function
which already has been written a few times and added some debug code.
When the text was too long the cursor would be drawn out of bounds which
caused an assert which terminated Wesnoth. Now the text will no longer
be drawn out of bounds and be ellipized. (The ellipses are always drawn
at the end, which will be fixed later.)
Now that all 'stable' --new-widgets code has been moved to the default way
starting with --new-widgets is no longer needed unless you want to develop for
it. So the new proof-of-concept title screen can be committed. Only has the
basic buttons which work, but needs some cleanup up, both in looks and code
working.
...fix resizing issues that also came up in flipping, made size
members in map protected to allow said fix. Flipping still broken but
at least will no longer occasionally crash.
It's only a prototype and doesn't really work yet.
This dialog uses most features of the widget library so its a main
purpose is to help testing the widgets and develop new widgets.
NOTE so don't use --new-widgets if you want to play a mp game.
* The C++ of the widget has the option to set border sizes, but this hasn't
been exposed to WML yet.
* Moved the menubar around to keep it in alphabetic order.
It seemed the dialog was 2 pixels to wide for left and right side,
which has been fixed.
Move the right side trigger closer to the left side test area in the test
scenario.
- added left and right side image support and added them to the test
scenario.
- allow images the 200 x 200 image to be 250 x 250.
- added a mutulated shyde.
- mirrored the arch mage.
* Rewrote the drawing code to be able to force a redraw and to invalidate the
background. This fixes the ttoggle_panel redraw problems.
* Removed the no_redraw label hack
* Updated the WIKI comment blocks to fix some typos and add some forgotten info.
Drawing on the panel still has glitches.
Events are send to the panel not to the widget.
Sapient sorry for breaking the coding standard too lazy do convert the
0's ;-).
...including the server list dialog, to the new widget library. (The
listbox widget needs some redesigning since it starts it looks rather
bad with two columns (which can be fixed with a small hack but rather
find a cleaner way in general).)