At the moment the scroll_label is the label to be used if wrapping is
required. The dialog looks a bit ugly due to the fact that the
scroll_label can't optimize it's size yet. Also the alignment looks a
bit odd, but I'll leave it to Baufo to tune that part.
Shadow_Master noticed that with a short message on a big screen the portrait
is shown outside the dialog. There's no proper way to fix it, so disabled
this feature for the time being.
Note the vertical centering doesn't work entirely since the text
height is unknown. This might be tuned later by exporting the height
of the panel part.
It seems not all old images are 205x205 so that test failed. Now test
whether both dimensions are < 300 if so treat it as an old small image
and don't scale otherwise scale. This doesn't work entirely for Arne
(TB) 297x333 but unscaled he'll hide some text.
- added the possibility to provide a password in the mp method selection dialog
- merged all dialogs that displayed erros or allowed entering the
username or password into one dialog.
- password is now saved in preferences (todo: add option to turn this off)
Kitty, Jetryl and zookeeper aren't too fond of the scrollbars in the
dialog if the text gets too long. Technically it's the easiest solution
to make things working in all cases. So we decided to let the dialog to
grow near the top so the scrollbars will pop up less frequently and
hopefully never.
2008-12-15T18:12:07Z!esr@thyrsus.com did the rename on the engine side which makes this
change no longer right. The name _initial.cfg sounds better as
_init.cfg.
In the macros directory some more generic macros will be defined, the
_initial.cfg should be loaded first. The engine doesn't enforce that yet but
probably esr will add that feature. (The odds of it not being loaded first is
probably theoretical.)
With the change of the drawing engine a rewrite of the containers is
needed as well. This adds a new container class which the scroll_label
uses. The class can't forward events and also the scrollbars are
always visible.
The code can now show a scrollbar if the text doesn't fit like the normal
dialog. (Note there's a redraw glitch which turns most of the dialog black.)
Also updated the changelog.
As long as the text is shown without a scrollbar the window closes on a
mouse click. When the scrollbar is needed a button will also be shown
and a mouse click (expect on the button) won't close the window anymore.
...with fast switching between them. Can be disabled in the editor
settings. Also changed:
* the display class now holds a pointer to the map instead of a
reference, a pointer can be changed which permits the entire MDI
behavior. Related bits were also changed in terrain_builder.
* mouse_handler_base no longer holds a reference to the map
* the map labels class does not hold a gamemap reference, as it can
use the display object to access the map. Also clearing all labels
was exposed as a public member function.
* used scoped_ptrs and forward declarations to avoid having to include
map_label.hpp and terrain_builder.hpp in display.hpp, this reduces
build dependencies quite a bit.
* made get_action_state use the menu index to allow a dynamic menu to
have checkboxes. This entire chunk of code needs a rewrite.
This is required to get the wrapping and scrolling working for the
dialog. (Note the code to do wrapping and scrolling doesn't work
properly yet. This will be fixed but is a much larger change.)
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.