Commit Graph

180 Commits

Author SHA1 Message Date
Mark de Wever
9b74df726d Add some space for right side messages.
Discussed with Kitty and 10 pixels space looks much better.
2009-02-19 21:37:24 +00:00
Mark de Wever
364c61e484 Make the maximum used width for the message text 650 pixels. 2009-02-19 20:21:20 +00:00
Thomas Baumhauer
803c29f54d removing the password box and the remember password checkbox...
...from the mp method selection dialog
2009-02-14 17:27:39 +00:00
Mark de Wever
9efa34b263 Implement the keyboard focus for the text widget.
Now it should be clear which widget has the keyboard focus.
2009-02-10 19:47:39 +00:00
Nils Kneuper
602be4e93f change button name to the default in a yes/no dialog...
('OK' instead of 'Login')
2009-02-01 16:57:41 +00:00
Mark de Wever
48be9a6619 Add the real support for the markup :-/
Seems this file got forgotten, without it the markup won't work
properly since it controls the setting in the label for the canvas.
2009-02-01 11:56:38 +00:00
Mark de Wever
adabe7c725 Add support for the special [option] syntax. 2009-01-31 19:39:57 +00:00
Mark de Wever
b5109a2b56 Fix a crash with a long text.
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.
2009-01-31 12:06:50 +00:00
Mark de Wever
0d66f0b154 Ported the options messages to the new dialog.
The background of the listbox is still a bit ugly. Also the escape key hasn't
been disabled yet.
2009-01-31 11:47:58 +00:00
Mark de Wever
2d93237754 Disable the vertical centering of small 'portraits'.
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.
2009-01-29 20:39:06 +00:00
Thomas Baumhauer
1ad3c0517b [[Change MP server info message]] 2009-01-29 15:10:16 +00:00
Mark de Wever
a5d2ca1e83 Renamed some labels.
The new name is already in the po files and is better as the previous version.
Also the previous version wasn't marked as translatable.
2009-01-28 21:20:19 +00:00
Mark de Wever
937a349888 Dialogs with an input text are converted to the new dialogs. 2009-01-28 21:14:13 +00:00
Mark de Wever
685e1ae040 Centre the portraits if smaller as 100 x 100.
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.
2009-01-24 12:52:02 +00:00
Mark de Wever
17905c84cd Added some macros to keep the code clean. 2009-01-24 11:47:29 +00:00
Mark de Wever
f62feb05f5 Split message.cfg. 2009-01-24 11:21:21 +00:00
Mark de Wever
133eb440fb Move the panel definition to its own file. 2009-01-23 22:54:51 +00:00
Mark de Wever
19a0d1f02d Rename a badly ided widget. 2009-01-23 22:34:49 +00:00
Mark de Wever
302007bffb Remove some unused code. 2009-01-23 22:25:37 +00:00
Mark de Wever
1e06d99b2f Add a better test to detect old portraits.
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.
2009-01-18 05:43:34 +00:00
Mark de Wever
741f8efa01 Fix the right side wml dialog. 2009-01-17 17:53:15 +00:00
Mark de Wever
0be39435c3 Add support for 205x205 images in the new dialogs. 2009-01-17 16:55:26 +00:00
Thomas Baumhauer
798e0a1001 Added a textbox widget that displays its input as stars to be used...
...in the mp login dialogs.
2009-01-15 17:38:23 +00:00
Thomas Baumhauer
ba0692ceb2 add option to prevent the password from being saved 2009-01-13 22:31:03 +00:00
Thomas Baumhauer
61fc432f9b somewhat clearing the multiplayer login dialog mess:
- 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)
2009-01-13 20:46:19 +00:00
Thomas Baumhauer
f3ace4861a making sending a private message the default in the command wrapper dialog. 2009-01-10 15:22:17 +00:00
Thomas Baumhauer
862030b806 added a graphical front end to various mp commands, replacing the whisper dialog 2009-01-06 14:02:47 +00:00
Mark de Wever
d3a3ece9b8 Allow the message dialog to grow higher.
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.
2009-01-05 20:50:40 +00:00
Mark de Wever
2a23ba1884 Cleanup part 5.
The full redraw flag is no longer needed since widgets are always fully
redrawn now.
2009-01-03 15:45:38 +00:00
Mark de Wever
8d62d4fa92 Fix the alignment of the text in the new dialogs.
Kitty pointed out the short texts seemed to start more to the middle.
2009-01-02 17:13:23 +00:00
Mark de Wever
01df1d2fee Use the proper button ids.
With the invalid ids the buttons on the horizontal scrollbar didn't fix,
which has been fix.
2009-01-02 13:34:08 +00:00
Thomas Baumhauer
06cf6bdf04 redoing the login dialog with the new widgets 2008-12-30 19:41:58 +00:00
Mark de Wever
c916ead0ad Improve the showing of scrollbars.
The not needed scrollbars are no longer shown, the space reserved for
them is not always freed. (Easyclose still doesn't work as wanted.)
2008-12-29 21:39:09 +00:00
Mark de Wever
2cc2a51603 Make NEW_DRAW unconditionally, WML side.
Remove the condition from the WML, also a few code changes which are not
longer needed, now that the WML has been converted.
2008-12-29 08:51:37 +00:00
Mark de Wever
a963d007a0 Rewrote the listbox class.
Now uses the scrollbar container as base and the generator for its
items. The scrolling doesn't work properly yet.
2008-12-24 16:01:02 +00:00
Nils Kneuper
d7c2091ec2 add a missing ' in string 2008-12-22 10:57:50 +00:00
Mark de Wever
665ef636e3 Revert 2008-12-13T22:07:30Z!ai0867@gmail.com.
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.
2008-12-15 18:20:57 +00:00
Alexander van Gessel
589f9240e3 Rename _initial.cfg to _init.cfg to match the the C++. 2008-12-13 23:07:30 +01:00
Mark de Wever
ebf482bbb5 Move some macros to their own file.
This way those macros can be reused for all containers that need scrollbars.
2008-12-13 11:35:08 +00:00
Mark de Wever
53bdb88159 Restructure the data tree a bit.
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.)
2008-12-13 11:22:50 +00:00
Mark de Wever
fba341cd49 Add a proof of concept new container class.
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.
2008-12-08 21:26:35 +00:00
Mark de Wever
2f700cd925 Added a horizontal scrollbar widget.
Also added 'new' art, since the current toolkit has no art for it. The art is
of the copy-paste-rotate kind. (The scrollbar is not used yet.)
2008-12-04 19:00:44 +00:00
Ignacio R. Morelle
93d82bf2aa s/Ok/OK/ 2008-11-29 00:06:53 +00:00
Mark de Wever
2bb2da1e80 Improved the new ingame dialogs with portrait.
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.
2008-11-25 19:07:06 +00:00
Mark de Wever
d0883b1cd1 Make wrapping for dialogs work nicely.
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.
2008-11-24 19:54:44 +00:00
Tomasz Śniatowski
71be6f8a52 editor strings 2008-11-22 14:24:34 +01:00
Tomasz Śniatowski
1dc5bc157b workaround for gui2 limitation causing bug#12545...
...make the slider wider than necessary to ensure all values are
reachable
2008-11-21 18:39:42 +01:00
Tomasz Śniatowski
1589d8713c editor2 MDI feature - have more than one map open in the editor...
...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.
2008-11-21 15:42:34 +01:00
Tomasz Śniatowski
9b65061bd2 translating numbers doesn't make much sense 2008-11-21 15:38:55 +01:00
Mark de Wever
220f72d90a Change the label to a scroll_label.
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.)
2008-11-04 16:54:54 +00:00