77029 Commits

Author SHA1 Message Date
Nils Kneuper
ae52d22f5c updated Russian translation 2020-09-11 19:49:00 +02:00
Nils Kneuper
cbe8973014 updated Portuguese (Brazil) translation 2020-09-11 19:46:44 +02:00
Steve Cotton
48279849d6 Update changelog for the loyal trait. 2020-09-11 06:21:54 +02:00
Steve Cotton
e9603e6e01
Show the "loyal" trait in help (#5123)
Fixes #1935 for normal users, expanding on aac0941's fix which only showed
these abiities when Wesnoth was in debug mode.

The removed enum member "NON_REVEALING_DESCRIPTION" was unused, and all
existing callers effectively used description_type() as a boolean.

This does mean that the "aged" trait will be shown to all users, even if
they haven't played HttT, however that seems reasonable.
2020-09-11 06:18:08 +02:00
gfgtdf
5fb3880ee4 use new lua gui2 api in WC mapgen settings
The lua gui2 compatibility code doesn't apply
to the mapgen lua kernel. So this code was broken
2020-09-10 20:05:10 +02:00
newfrenchy83
88fbe11457
update DID_SHADOW_VEIL_HANDLER in DID campaign (#5094)
* update DID_SHADOW_VEIL_HANDLER implementation
2020-09-09 15:12:22 -04:00
Nils Kneuper
914dfb50f1 updated British English translation 2020-09-09 09:10:38 +02:00
Steve Cotton
c227d42e74
Northern Rebirth: remove the evil campaign branch (#5138)
These 5 scenarios were never completed, so the option to play this branch was
always commented out. However the existence of them has caused extra work for
the translators, and would cause further extra work in tasks roadmapped
for 1.15.x (removal of the ^Uf mushrooms, removal of {MODIFY_UNIT}).

If it comes back then it will likely start as UMC.
2020-09-09 02:01:34 +02:00
Nils Kneuper
f338fff725 updated Portuguese (Brazil) translation 2020-09-08 20:00:56 +02:00
Nils Kneuper
58e865ddaa updated Russian translation 2020-09-08 19:59:43 +02:00
walodar
b985cb7145 add-ons manager translated titles and description also for System default language
The nice new feature that allows translated add-on titles and descriptions in the add-ons manager works well when the language preference is explicitly set to some supported language, but not when "System default language" is selected, because this is represented by an empty string in language.hpp. This pull request fixes this by getting the effective locale (the actual translation target language) from gettext.
2020-09-07 14:23:29 -05:00
doofus-01
9d4ce1bb9f
terrain graphics - make mushrooms-small.png smaller (#5136) 2020-09-07 12:21:01 -07:00
Nils Kneuper
7715bc3d24 updated Hungarian translation 2020-09-07 20:13:05 +02:00
Nils Kneuper
6837b3c6f3 updated Russian translation 2020-09-07 20:09:48 +02:00
gfgtdf
ebc65c9b00
fix [micro_ai] when called from lua
fixes #5134
2020-09-07 18:10:41 +02:00
Lordbob
54f86f0c9b
Update ARTISTS
Attribute new royal warrior portrait
2020-09-06 22:41:15 +02:00
Lordbob
b627855e72
Linked new profile picture 2020-09-06 22:38:36 +02:00
Lordbob
d4ab7b40ce
Added royal warrior portrait 2020-09-06 22:35:45 +02:00
Nils Kneuper
76bf1317f8 updated Polish translation 2020-09-06 11:18:47 +02:00
gfgtdf
1dd10f69c8 add a comment 2020-09-05 10:20:12 +02:00
gfgtdf
5be808f1ba git add [advancement][filter]
fixes #4495

Maybe it makes sense to remove the filter once
the [advancement] is applied since it no
longer serves any purpse after that.
2020-09-05 10:12:04 +02:00
Nils Kneuper
d8492a7257 updated Catalan translation 2020-09-04 21:10:27 +02:00
Nils Kneuper
07e1c86b57 updated Polish translation, updated maintainer in credits 2020-09-04 18:49:30 +02:00
Nils Kneuper
a71b0c963a updated French translation 2020-09-04 18:41:39 +02:00
Nils Kneuper
d9e2d866f8 updated Esperanto translation 2020-09-04 18:39:54 +02:00
Nils Kneuper
e33486b43a updated Portuguese (Brazil) translation 2020-09-04 18:38:34 +02:00
Steve Cotton
538a172079
Fix inverted logic in working out which resources are active (#5127)
This line is meant to skip the rest of the loop for things that have previously
been inserted in to loaded_resources; but instead it skipped the rest of the
loop unless the id was already in loaded_resources. Fixes #5126.
2020-09-04 13:59:28 +02:00
newfrenchy83
51f7340067
fix codeblocks project for lua widget 2020-09-04 13:20:16 +02:00
Martin Hrubý (hrubymar10)
1b1c0a4e52
Fix Xcode project 2020-09-04 10:54:28 +02:00
Gunter Labes
8c103a9018
Fix unused parameter warning 2020-09-04 09:04:58 +02:00
Wedge009
6ef05c73e7 Update WCII strings
* Attempt to resolve spelling errors and other phrases which didn't make complete sense.
* Replace apostrophes in user-visible strings with typographical equivalent.
* Revised WoCopedia Help based on clarification from @gfgtdf.
* Unify use of 'OK' in dialogues and remove use of 'okay' in prose.
* Remove some 'modern' language usage such as 'guys'.

[ci skip]
2020-09-04 14:21:39 +10:00
Steve Cotton
a2b98687b7
Update the VC16 project files for Lua Widgets (#5125)
In source_lists/wesnoth, put the new files in alphabetical order.

This (as expected) fails to build on MacOS, just like the previous build.

It also fails to build with Clang on Linux, just like the previous build. That's
caused by src/scripting/push_check.hpp:89's unused parameter 'L', and is
also just like the previous build.
2020-09-04 05:44:15 +02:00
Pentarctagon
c082660aa6 Compress linux and windows debug information before uploading.
Also limit sftp to taking at most 5 minutes.
2020-09-03 19:21:38 -05:00
gfgtdf
5a9c5bda1c add more lua widget callbacks
I'm not sure how mcuh of this api we should expose
in particular wrt to the fron/back_pre/postchild
parameter. The api is still no in its final state
2020-09-03 22:08:53 +02:00
gfgtdf
a158eef0d0 move widget attributes before children
This is mostly for perfromance reasons, sicne windget::find()
might search quite a while (relertively) in the wirst case
2020-09-03 22:08:53 +02:00
gfgtdf
ae2b7fc2de add lua window:close() function 2020-09-03 22:08:53 +02:00
gfgtdf
661fc1d8ef refactoor lua gui2 callback code
this refactors the lua gui2 callback c++ implementation
Now the callback infrastructure also supports different
types of callbacks for a single widget. Furthermore
it also supports multiple open gui2 dialogs at the same time.

This now also makes the widget parameter of widget.find
manditory.
2020-09-03 22:08:53 +02:00
gfgtdf
7b2ede6243 SotA: use new gui2 widgets api in custom dialog 2020-09-03 22:08:53 +02:00
gfgtdf
ba1ea7a701 wc: use new widget lua userdata in help dialog 2020-09-03 22:08:53 +02:00
gfgtdf
522f301dd0 fix unused parameter warning 2020-09-03 22:08:53 +02:00
gfgtdf
90a5930f21 new lua gui2 widget userdata
lua now has a widget userdata that can be used
to set/get widgets properties as one would
expect, a lot of the set/get_dialog_xy function
were converted into modifiable properties of
the widget userdata. This in particular allows
us to get rid of the strange 'path to widget'
type of arguments of gui2 functions.

It currently generates lot of compiler wanrings,
I will fix this in a later commit.

One of the main advantage is that it makes it
much easier to add new api, previously a lot
of functions where overused, probably because
that was just easier than creatign a new
function. For example set_dialog_value returned
multiple value of listbox objects. (the
compatibility path doesn't support this
particular feature yet but i don't think it is
important, it probably wasn't even used at all,
since it also wasn't documented).

This also adds some new features, like an 'add_item'
function to add an item to a listbox, a 'type'
property of widgets to query the type of a
widget and a 'item_count' property to count the
number of children in an item.

Im still not 100% sure about the
property /function names, in particular:

1) i might rename 'items' to 'elements' or
   'children' in some functions. Not sure yet
2) I might rename the 'value' property to
   'value_compat' to make clear that its only
   supposed to be used by the
   backwards_compat.lua code.

A next step in improving this api might be
to introduce a (reusable!) 'window' userdata
so that the implementaion of wesnoth.show_dialog
would become:
```
function wesnoth.show_dialog(wml, preshow, postshow)
  local dialog = gui.create_dialog(wml)
  preshow(dialog)
  local res = dialog:show()
  postshow(dialog)
  return res
end
```

However this is currently not really possble
since the pure existance of a gui2::window
object blocks the gui1 code (the main game view)
from receiving events. So we clearly cannot luas
gc take ownership of gui2::window objects.
2020-09-03 22:08:53 +02:00
gfgtdf
0a9c3a45eb fix lua_push<string_view> 2020-09-03 22:08:53 +02:00
Martin Hrubý (hrubymar10)
c48e176a1a
Fix Xcode source tarball builds
Closes #5117
2020-09-03 10:48:30 +02:00
Pentarctagon
10c60fd2e3 Print when starting/finishing the sqlite updates and when the caching step starts. 2020-09-02 12:47:34 -05:00
gfgtdf
cd34e2d8ae
fix crash in unit animation code
fixes #5121
2020-09-02 17:57:56 +02:00
Pentarctagon
ca7ab8ec8a Resend the announcements and server info text when rejoining the lobby.
Fixes #5095
2020-09-01 00:55:11 -05:00
Steve Cotton
67dfb4f23d
Refactor text.cpp's buffer alloc, throw instead of crashing if it needs more than 2GB (#5042)
The limit is arbitrary, and 2 gigabytes is very large. The new TODO comment
in the .cpp file gives a possible future refactor which would reduce the limit.

The old early-return for surface_buffer_.empty() moves upwards and changes to
testing for zeros before the allocation; it now also acts as a guard for
division by zero in the (height > int::max() / stride) test.

The loop around from_cairo_format() relied on stride being exactly
sizeof(uint32_t) * width, an assumption which would break if
cairo_format_stride_for_width added padding.
2020-09-01 04:17:49 +02:00
Steve Cotton
fbfda841bb Changelog; update for #5110 and add some placeholder headings
The placeholders will hopefully avoid merge conflicts when changelog
entries are included in PRs.

[ci-skip]
2020-08-31 19:44:25 +02:00
Severin Glöckner
7136e3cfc3 NR: fix errors
- Typo found by travis
- Duplicated code
2020-08-31 16:20:07 +02:00
gfgtdf
ae3eea28f8
fix unit_type::variation_id_ not set 2020-08-31 14:34:46 +02:00