80684 Commits

Author SHA1 Message Date
mattsc
ce9ba142bc Add new AI aspect allow_ally_villages 2022-06-22 08:00:50 -07:00
mattsc
2b3824f44c Retreat injured CA: do not take villages from ally 2022-06-22 07:51:46 -07:00
Celtic Minstrel
be8783154e
Add event unit tests for dynamic filters and names (#6785) 2022-06-21 22:25:01 -04:00
mattsc
fdb931bb16 Remove Lua AI code deprecated at level 3 in 1.15 2022-06-21 19:15:00 -07:00
Pentarctagon
2a16933229 Enable LTO for flatpak. 2022-06-21 19:14:43 -05:00
loonycyborg
e6d67c89fd
Updated msys2 Dockerfile 2022-06-21 20:24:05 +03:00
Elvish_Hunter
f1fb3a73a8 wmlunits: used os.path.join() to build paths instead of string concatenation 2022-06-21 18:29:57 +02:00
Tommy
888218c446 image: Flush texture caches 2022-06-22 00:30:55 +12:00
Celtic Minstrel
ab9fe9e09e Factor out the code that fetches the list of attributes into a separate function 2022-06-20 20:54:28 -04:00
Celtic Minstrel
f351c4df9d Rename dir() to wesnoth.print_attributes()
However, the original name dir() is still exposed in the Lua console only.
2022-06-20 20:54:28 -04:00
Celtic Minstrel
3fb0addbeb Address another review comment 2022-06-20 20:54:28 -04:00
Celtic Minstrel
a17d5089f4 Address some review comments 2022-06-20 20:54:28 -04:00
Celtic Minstrel
ed8029d522 fix whitespace 2022-06-20 20:54:28 -04:00
Celtic Minstrel
de080ad368 Misc dir() support
- Named tuples
- Version
- vconfig
2022-06-20 20:54:28 -04:00
Celtic Minstrel
eb253aa7ca dir() support for colour ranges 2022-06-20 20:54:28 -04:00
Celtic Minstrel
158e387444 Implement dir() metamethod for GUI2 widgets
This fetches all known attributes for that widget type and also walks the widget tree to grab the IDs of any child widgets, so it SHOULD get everything.

Deprecated keys value_compat and callback are excluded.
2022-06-20 20:54:28 -04:00
Celtic Minstrel
768eba4b07 Make dir() more robust against errors that can occur while walking the object 2022-06-20 20:54:28 -04:00
Celtic Minstrel
e5d5180b61 Enable dir() on wesnoth.colors and wesnoth.preferences
Note that using it on wesnoth.preferences only returns preferences that are currently set and may omit some preferences that are possible but currently unset. However, it DOES include all registered advanced preferences even if they are unset.
2022-06-20 20:54:28 -04:00
Celtic Minstrel
303b1a7ff9 Annotate the dir() list with element type (function, table, or other) 2022-06-20 20:54:28 -04:00
Celtic Minstrel
1af084515f Exclude deprecated things from dir() 2022-06-20 20:54:28 -04:00
Celtic Minstrel
d104a81269 Lua API: Make the WML module dir-friendly 2022-06-20 20:54:28 -04:00
Celtic Minstrel
15b48da437 Lua: Refactor the AI module to be dir()-friendly
This places all read-only functions straight into the AI table, which means it sticks when stdlib.lua nulls out the old move map API.

The AI table then implements the __dir metamethod to add the mutating functions in if read_only is false.

This also adds a __dir metamethod for the aspects table which gets the list of aspects directly from the engine.
2022-06-20 20:54:28 -04:00
Celtic Minstrel
bc2772891a Add a dir() function to improve API discoverability
The purpose is to simply list everything that's available in a given module or object.

Currently, it only works for tables. The plan is to extend it to userdata objects if and when it is approved.
2022-06-20 20:54:28 -04:00
Elvish_Hunter
b1c6029917 wmlunits: used shutil.move() instead of calling mv as a subprocess
This also means moving files in a more pythonic way and removing two functions (bash and shell) which aren't used anywhere else.
2022-06-20 23:24:47 +02:00
Wedge009
9fccea96ea SDL: Increase requirement to 2.0.10.
SDL_RenderCopyF and SDL_RenderCopyExF are only available from SDL 2.0.10 onwards.
2022-06-20 11:51:41 -05:00
Wedge009
c3c47f828d Standardise spacing (again).
[ci skip]
2022-06-20 11:58:47 +10:00
doofus-01
3e6e15207c
1.17 fauna work (#6768)
* add level 2 caribe

* update the fluff for caribes

* make caribes more different-looking

* remove Giant Stoat

* alternative cuttlefish melee attack anim

* sea serpent defend anim
2022-06-19 18:56:24 -07:00
Wedge009
f00ee60cbf Spelling correction + standardise spacing.
[ci skip]
2022-06-20 09:11:59 +10:00
Gunter Labes
ff4a3bb5ff
Remove reduntant check on s2 2022-06-19 21:52:25 +02:00
Celtic Minstrel
2de3246915 Add font scaling back as an advanced preference for now.
This gives an opportunity for people to try it out and maybe improve it. It can be removed again before 1.18 if deemed unsuitable at that time.
2022-06-19 14:38:45 -04:00
Pentarctagon
5857964d61
1.17.5+dev. 2022-06-19 09:07:13 -05:00
Pentarctagon
f6cfad7b50
1.17.5. 1.17.5 2022-06-19 09:07:13 -05:00
Pentarctagon
44e38ae552
pot-update and regenerate doc files. 2022-06-19 09:07:12 -05:00
Tommy
fe7081d580 Fix linear image scaling again 2022-06-19 23:02:17 +12:00
Nils Kneuper
253436b9a8 updated arabic translation credits 2022-06-19 11:31:08 +02:00
Pentarctagon
d1d07f6f0e
Re-add vcpkg caching. 2022-06-18 16:39:25 -05:00
Elvish_Hunter
d16557bae1 wmlscope: used an enumerator instead of strings in scan_for_definitions() state checks 2022-06-18 19:06:07 +02:00
Elvish_Hunter
cfbad6b81c wmlscope: avoid crashing on non-UTF8 files 2022-06-18 19:06:07 +02:00
mattsc
c5c0217aa0 Enable LTO for Xcode Release and SignedRelease builds 2022-06-18 08:05:05 -07:00
Nils Kneuper
fe9f37758f updated Chinese (Traditional) translation 2022-06-18 10:43:49 +02:00
Nils Kneuper
8079132cb1 updated Arabic translation 2022-06-18 10:40:09 +02:00
Celtic Minstrel
473c6e468e
Fix wmlindent quote detection (#6764)
* wmlindent: Fix parsing quotes in comments

* Remove unnecessary wmlindent ignores

* Run wmlindent
2022-06-18 09:37:55 +02:00
Gunter Labes
157d3426ab
Fix type 2022-06-18 08:45:27 +02:00
Pentarctagon
335dc36ba8 Unsetting macOS code signing is no longer needed. 2022-06-17 20:25:47 -05:00
mattsc
44aa42fbc4 Update changelog 2022-06-17 14:55:24 -07:00
Martin Hrubý (hrubymar10)
335a8739f9 Add new SignedRelease build configuration to Xcode project 2022-06-17 14:27:14 -04:00
Tommy
c466323808 sdl/texture: Set filtering mode when creating from surface
Defaults to nearest-neighbour interpolation.
2022-06-17 22:00:22 +12:00
Tommy
1b0fdeecad sdl/render_utils: Don't use override priority for texture hints 2022-06-17 22:00:14 +12:00
Tommy
cf4c265fc3 Fix wmlindent complaint. 2022-06-17 03:31:10 +12:00
Tommy
8380e018f5 Fix low-res themes during replay.
This was mentioned as a comment in #5620.
2022-06-17 03:02:38 +12:00