Commit graph

1878 commits

Author SHA1 Message Date
fendrin
8e5941eb03 Fixed the reference to a renamed gui image. 2013-03-30 18:16:11 +01:00
Ignacio R. Morelle
66efdbab26 gui2/trename_unit: Implement new GUI2 Rename Unit dialog
This is probably the simplest GUI2 dialog I've ever implemented.
2013-03-28 05:15:56 -03:00
Ignacio R. Morelle
09c3d500a2 gui2/tgamestate_inspector: Expand the main grid if the window title is too long 2013-03-20 21:26:45 +00:00
Ignacio R. Morelle
90770ffd60 gui2/tgamestate_inspector: Stack the first and second panels' listboxes...
...on top of each other

This sacrifices vertical space (not needed for the first panel, not
essential for the second) in order to get us more horizontal space for
the third panel with the selection's contents, which is actually the
most important panel.
2013-03-20 21:25:44 +00:00
Ignacio R. Morelle
447fd278cf gui2/tgamestate_inspector: Save vertical space by removing some cruft
The various panels had external headers for some reason, in spite of two
of them being listboxes with their own internal headers.

By removing those external headers (and making the rightmost panel's
scroll_label have an associated header with a cell padding trick to make
it look consistent with the listboxes' headers) we can save some
valuable vertical space.

This commit also changes a few strings in order to clarify the purpose
of each panel.
2013-03-20 21:25:29 +00:00
Ignacio R. Morelle
2dd8c3e711 gui2/tgamestate_inspector: Remove unused Actions column and spacers 2013-03-20 21:25:13 +00:00
Ignacio R. Morelle
3bb3f844be gui2/ttitle_screen: Place the version/revision number label...
...on the bottom left corner of the screen

Finally achieved this in a resolution-safe manner (unlike 2010-10-22T22:22:50Z!shadowm@wesnoth.org)
by moving the label to a separate layer of the parent stacked widget that
goes beneath the main button-littered layer (to avoid stealing events).
2013-03-12 10:59:40 +00:00
Boldizsár Lipka
1e7d3319cf New title screen!
The title screen background is now composed
of two images. game_title_background is
scaled to fill the screen, while game_title
is scaled to fit in the screen while preserving
aspect ratio and aligned into the middle.
2013-03-04 12:25:56 +00:00
Ignacio R. Morelle
ba68f1dd5c gui2/taddon_connect: Add a Help button to this dialog,
...shows the same page as the Add-ons Manager's own Help button

Thanks to lipkab for help with the buttons layout trick.

The rest is kind of a hack because:

  1) GUI2 doesn't use display objects, so I needed to acquire one from
     the constructor (optionally, to avoid problems with the test suite)

  2) If the button id is "help", it is handled by a hardcoded hack that
     handles the titlescreen dialog in gui2::twindow::get_retval_by_id()
     and closes the dialog prematurely right after our local callback is
     executed; so the id is "show_help" instead

Notice that there is precedent for (1) in gui2::teditor_settings.
2013-02-06 03:44:28 +00:00
Ignacio R. Morelle
0e6e1eb04c gui2/taddon_filter_options: Keep track of the add-on type...
...fields and implement a button to toggle them all at once

Also needed to do some refactoring to achieve the tracking part. Not
that anyone really needs to see that in a separate commit.
2012-12-31 02:28:34 +00:00
Ignacio R. Morelle
21e46bf2ba gui2/taddon_filter_options: Swap left and right option columns
Having the listbox to the right seemed arbitrary and not particularly
pleasing from an aesthetic point of view.
2012-12-31 02:28:17 +00:00
Ignacio R. Morelle
b0c68e6779 gui2/taddon_filter_options: Rearrange grid layout...
...for the areas containing the type checkboxes and the status listbox

The previous grid layout seemed strictly presentational and rather
unhelpful from an organizational/semantic standpoint. The new layout
should also make a couple of upcoming changes to the dialog's widget
arrangement and contents easier to implement.
2012-12-31 02:27:48 +00:00
Boldizsár Lipka
a71c308d65 Support for new add-on type "MP modification"...
...in the add-ons manager and server.
2012-10-01 16:46:00 +00:00
Boldizsár Lipka
bcaa7f4f2c Applied patch #3297 2012-09-25 17:42:18 +00:00
Fabian Müller
e9c16cf709 Implemented a dialog for editing the map labels in the editor.
Changes to the side menu generation:
Shows the correct side numbers and names,
sadly the default for a side name is "1".
2012-07-22 16:29:09 +00:00
Ignacio R. Morelle
cc7dcbc511 gui2/taddon_filter_options: Forgot to address a...
...horizontal_alignment/grow mix complaint before committing
2012-05-29 23:57:31 +00:00
Ignacio R. Morelle
4465f15b9a gui2/taddon_filter_options: Additional filtering options...
...dialog for the gui1 Add-ons Manager dialog
2012-05-29 23:49:57 +00:00
Mark de Wever
2737a99bf2 Use the new matrix code in the debug clock.
This is only used for testing.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-28 08:54:32 +00:00
Mark de Wever
c93d7d1484 Add a new matrix widget.
This widget is slated to replace the current listbox in the
future. The code however is only ready as proof-of-concept code, and
not usable in real code yet.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-28 08:52:47 +00:00
Mark de Wever
83b510cb16 Add a new instance dummy widget.
This widget is used to postpone instantiation of a widget. This will be used
in the new matrix widget where the definition needs a widget which will only
be available when the matrix widget is instantiated in a window.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-28 08:21:28 +00:00
Mark de Wever
950169d49e Add a builder for a pane.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-27 10:03:47 +00:00
Mark de Wever
036f932414 Add a builder for a viewport.
It allows to use a viewport in a grid. It's now also possible to own the
widget in the viewport.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-26 12:29:49 +00:00
Ignacio R. Morelle
c51d3bff5c gui2/taddon_description: Let the type and status fields wrap...
...if the contents don't fit in a single line
2012-05-21 04:12:36 +00:00
Ignacio R. Morelle
1d3b959915 gui2/taddon_description: Add rows for displaying add-on type and download count 2012-05-21 04:06:46 +00:00
Ignacio R. Morelle
bdbd6150c2 gui1, gui2: Rename "Reselect difficulty" option to "Change difficulty"
This affects both internal ids and symbols and translatable strings.
2012-05-18 20:11:11 +00:00
Mark de Wever
db8ddc9b02 Add a debug and test code.
In order to test with formatting growing listboxes I need a growing
listbox. When showing the addon dialogue only one is shown, the others
are loaded with the load button. The code is a bit hacky, but hidden
under the --new-widgets switch.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-05-13 14:47:03 +00:00
Mark de Wever
2158853bce Add the find_at functions for the pane.
This allows the usage of the mouse in the pane. Also increases the size
of the pane to have a bit more space to move the mouse around.

Note the offset to the mouse movement and what it affects on the screen
is intentionally.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-30 19:37:38 +00:00
Mark de Wever
23ad78c25f Add a tooltip to the filter in the addon list.
This makes clear what is actually filtered on.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-30 19:37:34 +00:00
Mark de Wever
230eee6bc2 Add a character limit to the addon description.
The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-30 19:37:29 +00:00
Mark de Wever
02664dfb45 Remove the width limit from the campaign dialogue.
The previous limit was an artificial limit, using the character limit
feels less arbitrary. Did some other cosmetic fixes to let the dialogue
look nicely for different window widths.
2012-04-30 19:37:26 +00:00
Mark de Wever
8a4a4e6eae Adds a character limit width constrain to a label.
Lets the gui2 label use the code of the previous commit. Allow it
potentially for every control, only implemented for the label.
2012-04-30 19:37:24 +00:00
Mark de Wever
8a3a435432 Add the description of the addon in the list.
The description needs some polishing to look properly.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:53 +00:00
Mark de Wever
0003120434 Add filtering to the pane.
Using a functor items can be shown or hidden.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 20:48:50 +00:00
Mark de Wever
4d9cd65048 Add the initial pane sorter implementation.
The code can now sort addons on their name and size.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-04-29 16:51:22 +00:00
Ignacio R. Morelle
0a6c8813ba gui2/tnetwork_transmission: Fixed untranslatable Cancel button label
(bug #19659)
2012-04-27 07:26:28 +00:00
Ignacio R. Morelle
876111f52f gui2/taddon_connect: Remove Update Add-ons option,
...which is now a manager view instead
2012-03-01 21:40:11 +00:00
Ignacio R. Morelle
35504da204 gui2/taddon_description: Display add-on status information in this dialog
The exact presentation isn't yet final, and the code isn't too elegant
either, but the way it is right now should be more or less easy for
translators to handle. The coloring is an experiment and it'll be
removed if people don't like it.
2012-03-01 00:37:18 +00:00
Nils Kneuper
34ad0bf0c7 fixed two untranslateable strings in the new mp lobby 2012-02-29 10:51:11 +00:00
Ignacio R. Morelle
59a198a6e8 Added tooltips to Load Game dialog (feature/bug #18249) 2012-02-07 19:06:27 +00:00
Ignacio R. Morelle
499f879d29 gui2/tunit_create: Right-align dialog control buttons 2012-02-04 05:57:47 +00:00
Ignacio R. Morelle
24dbf0b478 gui2/tunit_attack: Use standard margins for the central listbox 2012-02-04 05:57:33 +00:00
Ignacio R. Morelle
87e482b571 gui2/tsimple_item_selector: Right-align dialog control buttons correctly,
...eliminating the large gap between them
2012-02-04 05:57:18 +00:00
Ignacio R. Morelle
d66571f0b8 gui2/tnetwork_transmission: Simplify layout removing an unneeded spacer 2012-02-04 05:57:03 +00:00
Ignacio R. Morelle
5ec456fa80 gui2/tmp_server_list: UI consistency changes
* Added standard margins for the central listbox

 * Right-align dialog control buttons correctly, eliminating the large
   gap between them
2012-02-04 05:56:49 +00:00
Ignacio R. Morelle
c1e2fa3ad1 gui2/tmp_method_selection: Right-align dialog control buttons correctly,
...eliminating the large gap between them
2012-02-04 05:56:34 +00:00
Ignacio R. Morelle
8b159f268c gui2/tmp_login: Use standard margins for the checkbox 2012-02-04 05:56:20 +00:00
Ignacio R. Morelle
45c7a5ffb7 gui2/tmp_host_network_game_prompt: Right-align dialog control buttons 2012-02-04 05:56:05 +00:00
Ignacio R. Morelle
18aecfcb6d gui2/tmp_connect: Lay out dialog control buttons separately...
...and align them to the right
2012-02-04 05:55:50 +00:00
Ignacio R. Morelle
0933f459b3 gui2/tmp_create_game: UI consistency changes
* Use "OK" for the OK button label instead of "Create game" (sic)
 * Right-align dialog control buttons
2012-02-04 05:55:20 +00:00
Ignacio R. Morelle
a8bbd00166 gui2/tlanguage_selection: Some consistency changes
* Replace "Change Language" button label with the shorter "OK"

 * Right-align dialog control buttons correctly
2012-02-04 04:26:24 +00:00