78349 Commits

Author SHA1 Message Date
Charles Dang
206675050d GUI2/Addon License Prompt: simplify implementation 2021-02-21 03:45:47 +11:00
Nils Kneuper
243bc6de78 updated Turkish translation 2021-02-20 14:12:56 +01:00
Charles Dang
8118cc5f1b GUI2/Dialogs: made use of nested namespace specifiers where possible 2021-02-20 21:41:13 +11:00
Charles Dang
34cb0c8ea9 GUI2: added helper to execute a function with a found widget as its argument 2021-02-20 19:32:03 +11:00
mattsc
1f3a90cdef Update changelog 2021-02-19 20:23:01 -08:00
mattsc
1ec1405f95 move_leader_to_keep CA: prevent error message
Previously, trying to move the leader toward an occupied keep hex caused an E_NOT_REACHED_DESTINATION error.

Fixes #5345
2021-02-19 19:41:06 -08:00
Steve Cotton
09c8c506e1 Make the preferences window big enough for HDPI fonts
The hardcoded size of the window was too small for the large fonts on HDPI
displays, this changes to using the automatic width and calculated-based-on-dpi
height. On HDPI displays that does leave blank space on the General tab, but it's
better than not scaling.

Buttons that were placed at the bottom of pages move up so that they aren't
too far from the other controls. The sub-tab-selector buttons on the
multiplayer tab move above the sub-tabs themselves.

With HDPI text, the checkboxes are placed a little too high to align with
the font, but that's a cosmetic detail; this commit fixes the usability issue.
2021-02-19 15:52:47 +01:00
Celtic Minstrel
56bdd42815
Fix segfaults and a few other issues in wesnoth.find_path
Co-authored-by: mattsc
2021-02-18 22:15:31 -06:00
newfrenchy83
05b2ea2262
Extend special_id_active and special_type_active to account for abilities used as specials 2021-02-18 18:19:35 -06:00
newfrenchy83
f671d2a678 Update wesnothd.cbp 2021-02-18 14:14:34 -06:00
newfrenchy83
144dd2310e Update wesnoth.cbp 2021-02-18 14:14:34 -06:00
newfrenchy83
6e43b2bd48 Update liblua.cbp 2021-02-18 14:14:34 -06:00
newfrenchy83
f0dae02029 Update tests.cbp 2021-02-18 14:14:34 -06:00
newfrenchy83
0bcd1853e7 revert to c++20 dev to c++17 2021-02-18 14:14:34 -06:00
kabachuha
0293e77968 Update changelog
[ci skip]
2021-02-18 19:14:30 +03:00
Charles Dang
c26b13d8bb Small cleanup to d7eab6894c6eb6d94d1159189814fe20783e1611 2021-02-19 03:00:22 +11:00
Charles Dang
ad1523f43a
Merge pull request #5538 from kabachuha/command_memory
Command history for in-game consoles
2021-02-19 02:16:05 +11:00
kabachuha
f924a75afc added command history for in-game consoles
Added terminal-style command history browsing with up-down keys for in-game consoles used by debug mode, ai and search floating textboxes.
2021-02-18 16:39:17 +03:00
kabachuha
9cf445e526 removed unused variable 2021-02-18 12:20:09 +03:00
Charles Dang
0738755bf6
Merge pull request #5550 from wesnoth/smol-campaignd-cleanup
Campaignd: cleaned up error reporting slightly
2021-02-18 19:24:56 +11:00
Pentarctagon
97bca421e7
Update flatpak docker image to newer runtime.
Also change the base image to Ubuntu 20.04 and remove the PPA providing a newer flatpak version.
2021-02-17 16:49:33 -06:00
Iris Morelle
041e56e63b help: Use color_t::from_hex_string() instead of from_argb_bytes()
Colours obtained from help markup until now have been generated using
from_argb_bytes(), even though the caller ensures they are 7 characters
long and thus in #RRGGBB hex notation. When porting the help text render
code to pango_text, this resulted in text with colour set by markup
being rendered invisible with an alpha value of 0.

Unless we decide at a later point to support alpha values in help
markup, we want alpha to always be 255.
2021-02-17 17:29:43 -03:00
loonycyborg
0ffe194f71 Update flatpak runtime version. This fixes #5552 2021-02-17 21:35:57 +03:00
newfrenchy83
3f131848ea
upgrades codeblock to Lua 5.4.2 (#5556)
* upgrades codeblock to Lua 5.4.2

* fix error

* upgrade to c++20

* upgrade to c++20

* upgradeto c++20

* Update wesnothd.cbp
2021-02-18 02:15:13 +11:00
Celtic Minstrel
54cde58860
pick_advance: Ignore units on the recall list 2021-02-17 09:32:24 -05:00
Celtic Minstrel
174f7365d2 pickadvance: Update deprecated things and other updates
- Use the functional library instead of a hand-rolled filter
- Use stringx.split
- No need for an object ID if using remove_modifications
2021-02-17 00:31:28 -05:00
Iris Morelle
5d67c191ef gui2/statistics_dialog: Minor restyling
* Moved the combobox (sorry celmin) to the top right in a manner akin
   to the search boxes in dialogs with those.
 * Switched list headers to using the gold_small label variation.
2021-02-17 01:49:13 -03:00
Iris Morelle
f8d7969774 gui2/unit_list: Fix Status header's baseline being completely off 2021-02-17 01:28:30 -03:00
Iris Morelle
184a154ded pick_advance: Do away with the Reset button and selection status text
This replaces the Reset button with a dedicated listbox entry, and
replaces the selection status text with code that sets the initial
selection for the listbox and an icon that's used to display whether a
selection applies globally or only to the current unit.
2021-02-17 01:08:13 -03:00
Iris Morelle
d69c735b75 pick_advance: Better dialog caption and menu label 2021-02-17 01:04:43 -03:00
Iris Morelle
1530ab8441 pick_advance: Add Cancel button
(CC #5555)
2021-02-16 23:08:38 -03:00
Iris Morelle
a426d9fa5f pick_advance: Use the correct team colour settings
Also removed a listbox selection callback that serves no purpose beyond
re-setting the selection's icon to what it already is. Weird code.

(CC #5555)
2021-02-16 22:54:25 -03:00
Iris Morelle
bb6ef63f0f pick_advance: Bring the UI layout more in line with the game engine
This does alter some of the code significantly to make it less "clever"
(no more dynamic build) but also less hostile to future modifications
like this.

(CC #5555)
2021-02-16 22:54:25 -03:00
Celtic Minstrel
75522eb224 Update changelog 2021-02-16 20:42:35 -05:00
Celtic Minstrel
d2734973ed Add a command-line option that makes deprecated Lua stuff evaporate 2021-02-16 20:40:18 -05:00
Celtic Minstrel
56272d4b9c Add stack traces on Lua warnings
This means that any deprecation message triggered from Lua now explains exactly where it triggered.

The message still triggers only once, so you would need multiple passes to fix every case, but it seems like an improvement.
2021-02-16 20:02:16 -05:00
Celtic Minstrel
a019edb26c
Fix cave map generator producing passages along the map border
Maps are 0-indexed even in Lua (so that 1 ends up as the lowest passable coordinate), so subtract 1 here

Closes #5407
2021-02-16 13:46:01 -05:00
Elvish_Hunter
2a83e78a3c wmllint: don't try to collect WML tags inside Lua code
Fixes #5509
2021-02-16 16:18:53 +01:00
Celtic Minstrel
a0ee38a49a
Use to-be-closed variables to scope WML variables in tag definitions (#5536) 2021-02-15 21:11:56 -05:00
Iris Morelle
a2d676e394 Take display zoom into account when rendering unit animation frames
It was already considered for registering halos, just not for rendering
regular frames. This commit touches the halo code a little so we don't
need to call get_zoom_factor() multiple times per frame.

Closes #5508.
2021-02-15 21:20:53 -03:00
Celtic Minstrel
438b661494 Avoid map borders in cave generator
Addresses #5407
2021-02-15 18:35:54 -05:00
doofus-01
aef55dcc9e
UtBS Sc8 terrain graphics - Merge pull request #5547
UtBS - new terrain-graphics rules for flood water
2021-02-15 15:05:30 -08:00
Charles Dang
d7eab6894c Campaignd: cleaned up error reporting slightly
This cleans up the awkwardness I introduced in 5de1f8d5ccda92e6e02df84146e85fd84d8fb241 and 78373d7c59e4876c27a6b14ae7ea2b308815eb24.
2021-02-16 09:55:03 +11:00
Celtic Minstrel
3671d3a8a9 Fix music track valid key not working 2021-02-15 16:28:25 -05:00
Celtic Minstrel
7e699ca398 Fix a deprecate_api bug 2021-02-15 16:28:14 -05:00
Celtic Minstrel
b60164b8c1 Utilize the new Lua warning system to push deprecation messages to the in-game console 2021-02-15 15:19:23 -05:00
Celtic Minstrel
c52b71bffd Add a deprecated declaration for unpack so that any older add-on code that uses it still works 2021-02-15 14:26:59 -05:00
doofus-01
d435ec3d0b campaigns - Add flood water to UtBS S8 2021-02-15 10:26:36 -08:00
Pentarctagon
7349ac65e0
lua unpack -> table.unpack
lua 5.4 apparently fully did away with the former.

Fixes #5546
2021-02-15 12:11:48 -06:00
doofus-01
625c41b93b terrain-graphics - small changes related to water transitions 2021-02-15 09:35:53 -08:00