75816 Commits

Author SHA1 Message Date
Charles Dang
e6b5f2e2d4 Cleaned out some ancient detritus from the attic
[ci skip]
2019-11-18 16:02:21 +11:00
nemaara
78a40c8dcb Add language move to changelog 2019-11-17 19:23:25 -05:00
nemaara
5c9077dc41
Merge pull request #4568 from nemaara/language_icon
Title screen: move language button to icon
2019-11-17 19:22:42 -05:00
nemaara
ec3e0d50ec Add tutorial move to changelog 2019-11-17 18:08:13 -05:00
nemaara
32eb921d2d
Merge pull request #4566 from nemaara/tutorial_cleanup
Tutorial: move from title screen to campaign menu
2019-11-17 18:06:06 -05:00
Charles Dang
9952099ba6 Removed unused variable 2019-11-18 08:40:45 +11:00
Iris Morelle
2e9bf3e0d1 Minor code cleanups
* Remove the redundant explicitly-defined default ctor for
   game_config::server_info() as it does nothing than the compiler's
   default doesn't already do.

 * Use emplace_back() in the only way that works without giving the
   compiler a migraine.
2019-11-17 18:05:29 -03:00
Iris Morelle
1cf49cc6d9 Update changelog for issue #4564
[ci skip]
2019-11-17 18:05:29 -03:00
Iris Morelle
f136bb9ef3 gui2/mp_connect: Overhaul dialog adding a more powerful server list
There has been functionality to manage custom servers in the player's
preferences file since as far back as commit
5fb0b2a91123474d147c9de4918fc11a1b4c15ac in June 2007, but there's never
been a user interface for it.

This commit removes the current server list dialog attached to the MP
Connect dialog and replaces it with the same functionality embedded into
the latter, as well as the ability to edit the server list in the
player's preferences file. There's some code movement in a few other
places since the previous function in the preferences namespace doesn't
suit the new code (it always returned a combined list of game and
player-defined servers).

There's some disabled code referencing a situation where the listbox
with the list of servers allows the code (and the player) to clear the
selection. It's disabled because there are some UX issues with it noted
in the code comments associated to it.

Fixes #4564.
2019-11-17 18:05:29 -03:00
Iris Morelle
78df5c305e gui2/edit_text: Add an option to disallow whitespace-only input 2019-11-17 18:05:29 -03:00
Iris Morelle
b56bf27604 gui2/game_save: Give the OK button a custom label
[ci skip]
2019-11-17 18:05:29 -03:00
Iris Morelle
06719958da gui2/addon_connect: Use icon button for Help
[ci skip]
2019-11-17 18:05:29 -03:00
nemaara
c98dd7bad3 DiD S9: reduce boss difficulty 2019-11-17 15:00:34 -05:00
Celtic Minstrel
981fa93a40 Make ilua output iterable userdata as tables
This means anything with __len and __pairs metamethods.
2019-11-17 14:23:59 -05:00
Celtic Minstrel
ece5490fd9 Improve ilua's table output for tables that have both an array part and additional keys
Previously for such tables it would just show the array part and ignore the rest.
2019-11-17 14:23:59 -05:00
Celtic Minstrel
61d0da9c84 Add __tostring metamethods to textdomains, races, unit types, weapons, and sides 2019-11-17 14:23:59 -05:00
Celtic Minstrel
d53ac4b496 Fix ilua not honouring __tostring functions for tables
This gives ilua full access to the debug module so that it can determine whether the table's metatable contains __tostring
2019-11-17 14:23:59 -05:00
Celtic Minstrel
12bb52fd4e Warn if trying to deprecate a table whose metatable is masked 2019-11-17 14:23:58 -05:00
nemaara
cd7160e8f7 DiD: reduce Mal Keshar base exp 2019-11-17 14:09:13 -05:00
pentarctagon
ed7cd5b78b
Remove the labeler workflow.
It's not actually doing anything currently besides making it look like at first glance that every commit to master has some kind of error.
2019-11-17 11:51:23 -06:00
Celtic Minstrel
212a91113c Convert wesnoth.sides to a module and move several functions to it
The old names still work but are deprecated.

In addition, all the moved functions now accept either a side number or a side userdata as the first parameter.
2019-11-17 11:35:56 -05:00
Nils Kneuper
7f785de4eb updated Portuguese (Brazil) translation 2019-11-17 11:35:27 +01:00
Iris Morelle
6ac5044e8a Update changelog
[ci skip]
2019-11-17 01:49:15 -03:00
Iris Morelle
34d45d3ee5 gui2/network_transmission: Modernize appearance
Following the previous commit altering the progress bar's styling, we
now rearrange the dialog to completely eliminate visual gaps during
add-ons server connection by having the status display share a row with
the Cancel button so as to not force extreme layout recalculations. The
status display is also smaller corresponding with its lesser importance
compared to the progress bar itself, which has now become the absolute
centerpiece of the dialog by taking up almost all of its horizontal
space even when the descriptive text is short.

There's an engine change in this, recommended by Vultraz to avoid
recalculating the UI unnecessarily during network transfers. It
necessitates a minor hack in the WML to ensure that the status label has
a non-0 initial size, but it's nothing too major.
2019-11-17 01:49:15 -03:00
Iris Morelle
335e5ccdf3 gui2/progress_bar: Modernize appearance
The old design was heavily based on the old GUI0 loadscreen, inheriting
the weird blocky 3D shading effect reminiscent of the old Windows 9x
times. This makes it look very obviously out of place with the current
Wesnoth UI look and feel.

We increase the default width of the progress bar to reduce visual gaps
between different phases of the add-ons client's initial connection
sequence, and decrease the height to something that is more in
proportion with the font size without taking up more space than
necessary. The colours are inspired by the current textbox and button
widgets while keeping consistency with the rest of the game's UI.

[ci skip]
2019-11-17 01:49:15 -03:00
Celtic Minstrel
dc0d389a22 Make unit.undead_variation not write-only 2019-11-16 17:57:48 -05:00
Celtic Minstrel
eab3692372 Deprecate unit.petrified 2019-11-16 17:46:28 -05:00
Celtic Minstrel
feeb57934d Allow writing to unit.loc on off-map units 2019-11-16 17:28:39 -05:00
Celtic Minstrel
c27863b6f5 Alias wesnoth.interface.scroll_to_hex to wesnoth.units.scroll_to 2019-11-16 17:12:27 -05:00
Celtic Minstrel
e0cf8c5982 Fix syntax error (trying to write Lua like C++) 2019-11-16 17:01:43 -05:00
nemaara
6f55cd3ba2 DID S6: use alternative objective caption 2019-11-16 16:12:18 -05:00
Elvish_Hunter
42dc95a373 SotBE: fixed wmllint warnings
Fixes a warning listed in #4494 as well as a few more 'unrecognized character' warnings not listed there; it's also part of #4381.
2019-11-16 22:10:33 +01:00
Elvish_Hunter
dd0c14ffdc TRoW: fixed two wmllint warnings listed in #4494
Fixes also part of #4381
2019-11-16 21:52:37 +01:00
nemaara
476a9b084c TSG: remove first time player recommendation 2019-11-16 15:36:13 -05:00
nemaara
8a51becf83 EI: change difficulty rating 2019-11-16 15:29:39 -05:00
nemaara
dd8c2563e9 DiD S8: increase turn limit 2019-11-16 15:17:18 -05:00
Celtic Minstrel
e2af5ac14b Correct an older changelog entry from 1.15.0 2019-11-16 15:14:09 -05:00
Celtic Minstrel
cd6283f8db Add a few more tags to the [modify_unit] optimized path 2019-11-16 15:14:09 -05:00
Celtic Minstrel
1f36590e80 Add a few more attributes to the [modify_unit] optimized path 2019-11-16 15:14:09 -05:00
Celtic Minstrel
2cc7fe6450 Revert "Add [modify_unit]rebuild=no"
This reverts commit 51d6402453db08d3add2cdb571abbf1d60272142.

After discussion with @gfgtdf it was determined that this is not a useful feature after all, since it was in fact the default behaviour for the optimized path.
2019-11-16 15:14:09 -05:00
nemaara
87a0c917e7 Tutorial: add first time player recommendation 2019-11-16 15:11:56 -05:00
nemaara
4282d0b112 Tutorial: move from title screen to campaign menu 2019-11-16 15:11:55 -05:00
nemaara
3686dba82c DiD: renumber scenarios 2019-11-16 14:58:44 -05:00
Iris Morelle
393d412b0d ui: Fix untranslated text in Rename Unit
Fixes #4569.
2019-11-16 15:19:07 -03:00
Celtic Minstrel
597ed24170 Remove the helper.deprecate function, which isn't used anywhere 2019-11-16 13:11:58 -05:00
Celtic Minstrel
24b11221cf Use wml.array_variables instead of wml.array_access.get/set 2019-11-16 13:09:04 -05:00
Celtic Minstrel
3cadac1124 Replace a use of deprecated gui functions 2019-11-16 13:03:25 -05:00
Celtic Minstrel
498a3e98c4 Lua: Flip functions moved to the gui module
This means that they are now added to the gui module by default in C++, and only duplicated to the Wesnoth module in Lua.
2019-11-16 12:57:50 -05:00
Celtic Minstrel
0ee05637d9 Lua: Replace uses of deprecated (moved) interface functions 2019-11-16 12:35:20 -05:00
Celtic Minstrel
f016ac7183 Lua: Flip functions moved to the interface module, as well as the theme_items table
This means that they are now added to the interface  module by default in C++, and only duplicated to the Wesnoth module in Lua.

Some additional functions were moved:
- wesnoth.scroll -> wesnoth.interface.scroll
- wesnoth.zoom -> wesnoth.interface.zoom
- wesnoth.get_mouseover_tile -> wesnoth.interface.get_hovered_hex
- wesnoth.color_adjust -> wesnoth.interface.color_adjust
- wesnoth.set_menu_item -> wesnoth.interface.set_menu_item
- wesnoth.clear_menu_item -> wesnoth.interface.clear_menu_item

Added wesnoth.units.get_hovered as an alias of wesnoth.interface.get_displayed_unit
2019-11-16 12:24:31 -05:00