Commit Graph

220 Commits

Author SHA1 Message Date
Mark de Wever
ef8895a344 Add a new real multi page widget and use it.
It's used in the campaign dialog, this change breaks the unit tests
for small gui and small gui since UtBS won't fit in the available
space. This will be fixed later.
2009-05-31 18:52:42 +00:00
Mark de Wever
5550d240e9 Polish the new campaign dialog a bit more.
Add some spacing and remove some obsolete code.
2009-05-31 13:24:36 +00:00
Mark de Wever
8d4681200a Improve the new campaign dialog.
Still needs work (wrapping of the description fails) but at least you
can read the description of the campaign again.
2009-05-30 17:13:47 +00:00
Mark de Wever
c071bd16e8 Add a very crude proof-of-concept multi page widget.
The widget is used in the campaign selection dialog, which doesn't work
properly (but is only used with --new-widgets). The code still needs a lot of
polishing and testing, which will be done later.
2009-05-23 09:17:44 +00:00
Mark de Wever
a01857f746 Add a new transient dialog. 2009-05-22 19:08:34 +00:00
Mark de Wever
ffdbcda976 Reverted 2009-05-13T22:46:48Z!terraninfo@terraninfo.net, the code now works due to 2009-05-14T18:08:45Z!koraq@xs4all.nl.
Tested and bug #13521 no longer occurs with this code.
2009-05-14 18:20:00 +00:00
Iurii Chernyi
a82a901125 Reverted 2009-05-13T17:57:34Z!koraq@xs4all.nl, as it caused Bug #13521 2009-05-13 22:46:48 +00:00
Mark de Wever
59b4f7a094 The tmessage dialog can now show up to 4 buttons. 2009-05-13 17:57:34 +00:00
Jörg Hinrichs
9dee31d3ed Moving the savefile overwrite dialog to gui2. 2009-04-28 20:12:39 +00:00
Jörg Hinrichs
ffa6fde8bb Savegame reorganization Step 1: a simpler interface to saving and loading.
Some more savegame.cpp refactoring.
2009-04-27 22:25:43 +00:00
Jörg Hinrichs
29a3b7d681 Adds a missing file... 2009-04-27 22:02:38 +00:00
Jörg Hinrichs
b539658983 Savegame reorganization Step 1: a simpler interface to saving and loading.
Implement the savegame dialog for OoS messages.
2009-04-27 20:27:15 +00:00
Jörg Hinrichs
dce2a6c01e Savegame reorganization Step 1: a simpler interface to saving and loading.
Transfer save-game dialog to gui2 and use it within savegame.cpp.
2009-04-24 21:59:53 +00:00
Mark de Wever
ca934892bc Updated the description string.
The original string wasn't too clear and Polarina had a better suggestion.
2009-04-19 17:17:50 +00:00
Nils Kneuper
6ccc7c33c7 add some textdomain markers to files that had none,
...should not introduce any strings, just for completions sake (every
.cfg should have a marker, have done the job util
utils/change_textdomain -t )
2009-04-11 22:30:16 +00:00
Mark de Wever
255db63a20 Properly balance braces. 2009-03-13 21:36:56 +00:00
Mark de Wever
c9a63e9f0f The message dialog no longer uses a magic value.
Before the width offset of the map was hardcoded, now it uses the actual
map size so the magic value is no longer needed.
2009-03-13 21:03:24 +00:00
Mark de Wever
978aa913ad Add the preview pane for the campaign dialog.
The pane still needs quite a bit tuning and the extra layout phase looks
rather bad.
2009-03-01 16:24:42 +00:00
Mark de Wever
576eba454d Add the initial version of the new campaign dialog.
This version only has the list with campaigns. The cfg is in the wesnoth text
domain instead of wesnoth-lib to avoid a new string.
2009-03-01 14:03:47 +00:00
Mark de Wever
68c640c5da Make the new tooltips look like the old ones.
Also update the changelog.
2009-03-01 09:40:58 +00:00
Mark de Wever
5adea4af72 Comment out some not translatable tooltips. 2009-03-01 09:40:40 +00:00
Mark de Wever
653e08fd97 Change return_value to return_value_id. 2009-03-01 08:23:37 +00:00
Mark de Wever
e77b593dd7 Listbox rows no longer have a fixed height.
Remove the old part of the code which allowed that.
2009-02-28 19:42:36 +00:00
Mark de Wever
625d60a939 Add the transparent button to the right side. 2009-02-28 19:00:51 +00:00
Mark de Wever
1bd360080e Add a transparent listbox to the wml_message. 2009-02-28 18:58:36 +00:00
Mark de Wever
16a85ceb57 Add a transparent toggle panel. 2009-02-28 18:57:33 +00:00
Mark de Wever
70fdcccad8 Add the transparent horizontal scrollbar. 2009-02-28 18:23:14 +00:00
Mark de Wever
f5d47584ab Made the scrollbar code more generic. 2009-02-28 18:20:28 +00:00
Mark de Wever
d3e8190e98 Add a file forgotten in my last commit. 2009-02-28 18:10:59 +00:00
Mark de Wever
596eeca1de Add a new transparent scrolllabel for wml_message. 2009-02-28 18:09:29 +00:00
Mark de Wever
ba85499fda Made the scrollbar code more generic. 2009-02-28 17:45:18 +00:00
Mark de Wever
a5eb28f569 Add a new set of transparent navigation buttons.
These will be used in the transparent wml message dialog.
2009-02-28 17:34:35 +00:00
Mark de Wever
0a78fd1ed4 New transparant button in transparent dialog.
The art might need some more polishing, but rather leave that to an artist.
2009-02-28 17:15:50 +00:00
Mark de Wever
c0ceab1d57 Refactor the button widget.
This way multiple button variations can be defined in the macro.
2009-02-28 17:04:05 +00:00
Mark de Wever
21c497df6f Cleanups and improvements.
The listbox now also has proper columns also for the header.
2009-02-28 15:57:55 +00:00
Mark de Wever
b62d9f5883 Cleanups and improvements.
This prepares the listbox to have it's header the same size as it's
content.
2009-02-28 15:57:27 +00:00
Mark de Wever
cce9f9da1d Added experimental new addon download dialog.
This dialog is only available when started with --new-widgets and shouldn't
add new strings. The dialog is added to ease the testing the listbox
alignment feature that still needs to be added before 1.6. This dialog won't
be finished before 1.6.
2009-02-22 08:17:46 +00:00
Mark de Wever
dd3e853ec3 Add the framework to allow gui sounds. 2009-02-20 19:30:48 +00:00
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