Commit graph

1878 commits

Author SHA1 Message Date
Charles Dang
83a3d3680b Game Load: removed unnecessary instruction text 2015-10-17 23:06:14 +11:00
Charles Dang
497a82d7cc Unit Create: move gender selection below listbox 2015-10-17 19:20:42 +11:00
Charles Dang
d87a5fc0c5 Unit Create: specified max height 2015-10-17 19:12:29 +11:00
Charles Dang
8d5fc6e449 Game Load: cleaned up layout a little 2015-10-17 04:49:29 +11:00
Charles Dang
cd4d5ffa59 Game Load: specified max height 2015-10-17 03:11:31 +11:00
Charles Dang
1a6161a8ab Make Edit Side dialog to use new share_vision tristate 2015-10-08 17:13:09 +11:00
Charles Dang
bdaddd9a4f New syntax for campaign difficulty
This replaces the old format using the tlegacy_menu_item syntax with a new one using a [difficulty] tag.
The only syntax is still supported for now
2015-09-29 15:35:39 +11:00
gfgtdf
3ed4eed9fc wait dialog for user choices during prestart events
gna.org/bugs/?23297

If we are waiting for a synced user choice during a prestart events we
now show a gui2 dialog that informs the player about why the client is
waiting and also offers the player the option to quit the game.
2015-09-20 22:32:19 +02:00
Charles Dang
205b82da69 Pluralize campaigns main menu item
This makes sense since there is no single campaign for the game
2015-09-20 08:25:03 +11:00
Wedge009
f05557a7d9 Spelling corrections
recieve -> receive
intepolate -> interpolate
2015-08-26 17:30:44 +10:00
Charles Dang
612d0b232f teditor_generate_map: removed erroneous extra border 2015-08-23 18:18:59 +11:00
Charles Dang
b5e8530433 tlabel_settings: cleaned up code and dialog layout 2015-08-23 18:09:33 +11:00
Charles Dang
fc6d6b7e7d teditor_edit_label: removed erroneous extra border 2015-08-23 17:15:56 +11:00
Charles Dang
f808f3d737 Increased width params of titlescreen progress bar definition to 600 2015-08-20 19:35:08 +11:00
Charles Dang
f7f497566f Update API to work with the new two layer logo 2015-08-20 13:58:43 +11:00
Ignacio R. Morelle
35d3120db3 gui2/tgame_version: Minor UI string tweak 2015-08-15 22:36:55 -03:00
Ignacio R. Morelle
329a0e130a gui2/tgame_version: Replace fake checkbox widgets with Unicode
Makes it more obvious that the items in the Features pages cannot be
changed by the user.
2015-08-15 22:35:06 -03:00
Ignacio R. Morelle
305b90c9a5 gui2/tgame_version: Switch to using a horizontal listbox
This makes for somewhat simpler event handling and allows using the
keyboard to switch between tabs. It doesn't solve the layout issues with
long tab labels, though.
2015-08-15 21:41:54 -03:00
gfgtdf
de1eaa30f7 Use listboxs sorting feature in experinemtal gui2 addon_list
Also fixes the toggle panels that show the addons description and the filter
textbox in the non new-widgets codepath.

These changes mostly effect the non new-wigets codepath. The new-widgets
codepath (which already had a sorting feature) still works like before
except that it was adjusted to the changes to the cfg file.
2015-08-08 16:33:08 +02:00
Ignacio R. Morelle
74a81069b9 Merge pull request #447 from CelticMinstrel/master
Interface to fine-tune displayed labels (and some other label stuff)
2015-08-08 01:29:15 -03:00
Celtic Minstrel
819eab2f96 Add dialog to allow user to customize which label groups are displayed 2015-08-07 16:44:50 -04:00
gfgtdf
a4806343f5 sortable listboxes for gui2
Fixes http://gna.org/bugs/index.php?23751

Gui2 listboxes can now be sorted. As an example how to use it i changed the
gui2 loadgame dialog to use this new feature.

To make your listbox sortable you have to add togglebuttons/panels with the
id sort_n where n is a number in [0, numer_of_columns) to the [header] of
the listbox, then the listbox will be sorted when a user clicks on that
togglebutton/panel. Also you have to register the comparision functions for
each column with listbox::set_column_order.

Alternatively you can sort the listbox manually by calling listbox::order_by

This feautre still suffers from http://gna.org/bugs/?15763 . But for small
listboxes without scrollbars this is already a good feature.
2015-08-07 13:02:28 +02:00
gfgtdf
1359e6a885 tristate buttons for gui2
This commit adds the c++ code to add tristate buttons: toggle_buttons and
toggle_panels can now have an arbitrary number of states instead of just 2
(selected and not selected). The number of states is determined by the number
of [state] tags in the widgets definition.

This doesn't add tristate definitions yet, but the plan is to use tristate
buttons later for the headers of sortable lists (No-Sort, Sort-Up, Sort-Down
buttons)

TODO: figure out whether to remove the parameter from tcontrols constructor.
2015-08-07 13:00:49 +02:00
Celtic Minstrel
1c578590e1 Add sliders to set colour of label in map editor
- Needs work, not very user-friendly in my opinion
2015-08-06 23:43:16 -04:00
Celtic Minstrel
af6d3060e2 Add new "category" and "creator" properties to map labels
- The "category" property is mainly for use by scenario designers; players will be able to hide labels based on this
- The "creator" property is meant to allow players to hide labels placed by specific other players
- Map editor allows setting the "category" property
2015-08-06 23:27:11 -04:00
Ignacio R. Morelle
a0aa111c91 Add new icon overlays for the About dialog button by pydsigner 2015-07-23 21:04:37 -03:00
Charles Dang
4235d310a9 tedior_edit_side: remove controller=<number> option 2015-07-22 22:28:04 +11:00
Ignacio R. Morelle
d7583f8bb1 gui2/ttitle_screen: Reorganize grid slightly
This frees up some space for the central stacked widget so the game
doesn't crash to desktop due to requiring a vertical resolution of 487
or more to fit it with the version label and button.

Also, the layout of the version label and button is now simpler as they
are now on their own grid outside the central stacked widget. This also
happens to ensure that the label doesn't end up behind the tip of the
day panel. Whether this is a good thing or not depends on personal
opinion.

(And incidentally, the button no longer has a margin around it. This is
intentional.)
2015-07-14 20:51:28 -03:00
Ignacio R. Morelle
6a5adc30b7 gui2/ttitle_screen: Add button to display the About dialog
It's on the bottom left corner, just like the version number. It's not
possible to have both the version number label and the button on the
same layer because only widgets on the topmost stacked_widget layer
receive events, and the label can't be on there because it messes up the
layout of the button panels row.

This currently causes the game to abort on 800x480 because the layout
algorithm runs out of space (needs 800x487) due to to the top row on the
dialog's main grid taking up a fixed amount of vertical space. This will
be corrected in a separate commit.
2015-07-14 20:51:28 -03:00
Ignacio R. Morelle
f2b86823b5 gui2/tgame_version: Add option to open stderr.txt on Windows
This is only displayed on Windows and it is disabled there if Wesnoth
was started with the --wconsole option.
2015-07-14 20:51:28 -03:00
Ignacio R. Morelle
948a3ae19a gui2/tgame_version: Add plain text report and a button to save it to clipboard
Most of it is not translatable. This is intentional as it is intended to
serve as a Technical Support/bug tracker post aid.
2015-07-14 20:51:27 -03:00
Ignacio R. Morelle
43dd063425 gui2/tgame_version: Turned into a tabbed dialog, added plenty more info
The dialog now includes the game and OS version, and has three tabs with
extra information: the Game Paths tab with the existing contents
inherited from the tgame_paths dialog, the Libraries tab with a table
listing the build/runtime library versions, and the Features tab listing
the status of optional build-time features.

Had to move a lot of code around for this, obviously. Now I have to
decide again where to move the button from Preferences -> General.
2015-07-14 20:51:27 -03:00
Ignacio R. Morelle
941e983d61 gui2/tgame_paths: Rename to tgame_version
This is in preparation for repurposing it into a more full-fledged game
version/build info dialog.
2015-07-13 05:41:37 -03:00
Charles Dang
89cc9ac49f tcampaign_dialog: remove excess borders 2015-07-06 02:53:22 +11:00
gfgtdf
cf85ac43a7 remove different lists for completed and noncompleted campaigns. 2015-06-27 14:37:58 +02:00
gfgtdf
630cce5e97 show modifications on campaigns slection screen
This means less clicks when activating modifications in SP.

In order to do this we enable the alternative campaign list which was
previously disabled. A side effect of this is, that completed campaigns
are now seperated from not-played-yet campaigns.
2015-06-21 21:54:24 +02:00
gfgtdf
548e44f5ca Revert "tcampain_selection: removed unused tree view"
This reverts commit 9f6c07815e.

Conflicts:
	src/gui/dialogs/campaign_selection.cpp
2015-06-21 19:49:45 +02:00
gfgtdf
0cd8ea5453 Merge branch 'master' of https://github.com/abacabadabacaba/wesnoth into abacabadabacaba-master
Conflicts:
	changelog
	src/game_launcher.cpp
2015-06-21 17:12:56 +02:00
gfgtdf
acf177fbd0 automaticly detect whether to show mp_configure in sp
We now automaticly show mp_configure in sp iff there are actually things
to configure. This means if eigher force_lock_settiings was explicitly
set to false or if the [campaign] or one of the [modification] provides
[options] to configure.
2015-06-19 20:38:20 +02:00
Charles Dang
bf7e2daf02 tcustom_tod: shortened title 2015-06-03 16:24:08 +11:00
Charles Dang
80b22f2b18 Fixed some non-standard indent 2015-06-02 17:15:06 +11:00
Charles Dang
ff4fe33b4b Add border around titlescreen version label 2015-06-02 17:15:04 +11:00
Ignacio R. Morelle
049d2afbb1 gui2/tmp_cmd_wrapper: Regroup mod options into a grid that's hidden by default
This makes it so the grid and its children are only displayed when the
client has mod access to the sever, rather than keeping them visible at
all times and graying them out when not available.
2015-06-01 23:04:43 -03:00
Ignacio R. Morelle
1c21924b51 gui2/tlua_interpreter: Use monospace font scroll label for contents 2015-05-31 21:38:19 -03:00
Ignacio R. Morelle
fb22da4a35 gui2/tgamestate_inspector: Use monospace font scroll label for contents 2015-05-31 21:38:19 -03:00
Ignacio R. Morelle
34e79d3e33 gui2/twml_error: Display the pp/parser output in a monospace font 2015-05-30 20:30:06 -03:00
Ignacio R. Morelle
20602f12b9 gui2: Add support for selecting widget and canvas [text] font family
This instruct ttext to use a font family other than the default sans
serif.
2015-05-30 20:30:06 -03:00
Charles Dang
f482208315 Removed an unused linked group 2015-04-26 14:52:10 +11:00
Charles Dang
8a7fe3a7db tcore_selection: removed image field under description
This also replaces the icon= key with the image= key
2015-04-25 19:33:36 +11:00
Charles Dang
bce7c9c329 tcore_selection: cleaned up cruft left over from the campaign dialog 2015-04-25 19:04:10 +11:00