77714 Commits

Author SHA1 Message Date
Charles Dang
ccd006cccd Refactored handling of advanced preferences
Instead of having the preferences dialog make a copy of all advanced preference config objects (and sorting them)
every time you invoke it, this adds a new advanced_manager class instantiated once in game_launcher (not sure if
that's the best place for it, though) that parses and handles the options. Allows me to greatly clean up the
preferences dialog code.
2020-12-14 05:56:52 +11:00
nemaara
c8576a781d HttT: rebalance some scenarios 2020-12-13 04:49:14 -05:00
Charles Dang
1ed3edb6db Editor: fixed vertical misalignment of map marker in the Window dropdown 2020-12-13 19:07:54 +11:00
Charles Dang
0963d2785d GUI2/Grid Builder: better validation error messages for Iris
Also fixes a logic oversight where the first row was allowed to have 0 columns somehow...?
2020-12-13 06:17:34 +11:00
Charles Dang
8049551241 WC: removed spurious error message 2020-12-12 23:20:09 +11:00
nemaara
41f65f84b9 HttT S6: make caves easier to navigate 2020-12-11 18:38:50 -05:00
nemaara
f1344c8574 HttT: reduce difficulty in early scenarios 2020-12-11 18:35:37 -05:00
Nils Kneuper
018866a7c8 updated Italian translation 2020-12-11 20:00:41 +01:00
Nils Kneuper
18cdb98b77 updated Czech translation 2020-12-11 19:57:46 +01:00
Charles Dang
a22622258e Updated schema 2020-12-12 03:53:48 +11:00
Charles Dang
7188781f91 GUI2: made link_aware a per-instance config option rather than per-definition
Back when link awareness was first added (https://github.com/wesnoth/wesnoth/pull/300), this key was added
globally to label definitions alongside link_color. This had the unintended side effect of making *all* labels
link aware, leading to issues such as being able to open a do-you-want-to-open prompt from an instance of the
same ad-infinitum.

This became an active issue after 213453e6cf78371360471ac4d110602aafecd9f3, since now that labels could capture
focus if link_aware was true - which it always was for most labels - labels in toggle panels would always
grab mouse_motion events and no longer allow their parent toggle panels to gain their hovered states. That
appears to be in keeping with the design of GUI2, and a further evaluation of that issue is needed at a later
time. However, the fact remains that almost every single label was marked as link-aware, even when in almost every
case that was not the desired behavior.

This change move the link_aware config option to individual label and scroll_label instances. The following uses
had this explicitly enabled:

- Addon license prompt
- Addon descriptions
- Campaign descriptions
- The Server Info popup
- The chatbox
2020-12-12 03:03:09 +11:00
Charles Dang
22647c388a GUI2/Label: properly overload update_canvas
Previously, I was handling updating the label alpha in the set_text_alpha function, which meant it needed
to be called from the builder in order for that variable to be properly set on a newly constructed label.
This properly adds it to the update_canvas and changes set_text_alpha to match the other setter formats
that require canvas updates.
2020-12-12 02:23:50 +11:00
Charles Dang
2a152a6f66 GUI2/Label: pull initial values from the builder where possible 2020-12-12 02:18:28 +11:00
Charles Dang
9b3d34ed20 GUI2/Label: more misc cleanup 2020-12-12 01:54:58 +11:00
Charles Dang
c67e55efed Cleaned up usage of MP Create Game and MP Staging 2020-12-12 01:54:23 +11:00
Charles Dang
63b16ad6e1 GUI2/Label: minor cleanup
- Removed unused parameter from event handlers
- Moved some simple setter/getters to the header
2020-12-11 23:27:01 +11:00
Charles Dang
cfcc2979f3 GUI2/Window: removed CVideo getter
One should use CVideo::get_singleton instead since there's only one CVideo object anyway.
This class just has a convenience reference to it.
2020-12-11 23:00:29 +11:00
Charles Dang
e3f444a04c Fixup c974d4d 2020-12-11 22:51:47 +11:00
Charles Dang
c974d4d899 GUI2/Dialogs: used new modal_dialog::set_retval wrapper 2020-12-11 22:36:11 +11:00
Charles Dang
3f1ca71e0c GUI2/Modal Dialog: added a convenience set_retval wrapper
This wraps window::set_retval and acts as a companion to get_retval
2020-12-11 22:35:08 +11:00
Iris Morelle
213453e6cf gui2/label: Use the hyperlink mouse cursor while hovering links
This also moves gui2:🏷️:can_mouse_focus()'s declaration to a
section that makes more sense for it to be in. Thanks to jyrkive for
pointing out the existence of this method.
2020-12-11 07:39:29 -03:00
Charles Dang
99188ee077 Removed game_config parameter from start_local_game_commandline 2020-12-11 20:10:12 +11:00
Charles Dang
3f7152f87a MP: cleaned up includes 2020-12-11 20:06:15 +11:00
nemaara
32c803017a TSG S5: reduce difficulty 2020-12-11 03:42:01 -05:00
nemaara
0059c67edf TSG S6a: reduce difficulty 2020-12-11 03:39:53 -05:00
nemaara
6d8b14855e TSG: reduce bandit branch difficulty 2020-12-11 03:38:05 -05:00
Charles Dang
ff11c846b8 GCC I've come to bargain 2020-12-11 16:29:35 +11:00
Charles Dang
2f9449edec Test fixup dos 2020-12-11 16:13:18 +11:00
Charles Dang
5943a72e68 Revert "Test fixup"
This reverts commit 5c0b50b35ec8a3ce6bcba4f4eabba7c598e131af.
2020-12-11 16:10:45 +11:00
Charles Dang
5c0b50b35e Test fixup 2020-12-11 15:52:10 +11:00
Pentarctagon
91b21f143f
Remove unused badges. 2020-12-10 16:43:46 -06:00
Pentarctagon
882d7abf55
Missed one. 2020-12-10 14:48:40 -06:00
Iris Morelle
01fc2a8434 addon/client, addon/mg: Documentation 2020-12-10 17:33:13 -03:00
Iris Morelle
f747f9a692 image: Drop unused include 2020-12-10 17:33:13 -03:00
Pentarctagon
8942efe5fd
Move/rename various CI scripts to no longer refer to travis. 2020-12-10 14:11:17 -06:00
Pentarctagon
515feabb66
Add boost coroutine and context. 2020-12-10 11:09:06 -06:00
newfrenchy83
1d17f559a3
update codeblocks projectfiles 2020-12-10 16:21:29 +01:00
Charles Dang
0c522de242 Merge branch 'master' of github.com:wesnoth/wesnoth into master 2020-12-11 00:43:41 +11:00
Charles Dang
9ce66d88e9 More include cleanup 2020-12-11 00:42:57 +11:00
Martin Hrubý (hrubymar10)
8bf0742994
Fix Xcode project 2020-12-10 14:39:15 +01:00
Charles Dang
e2d628cbb2 Cleaned up some includes 2020-12-11 00:21:01 +11:00
Steve Cotton
68eeb39e97 EI S03: Fix the chance-to-hit on the initial Dark Adept
The map was changed to use ruined castles in 1.14.12 (fb6d79c8) and 1.15.3
(704fa2ef), but the .cfg file was missed.
2020-12-10 11:36:51 +01:00
Iris Morelle
b58c798875 addon/mg: Remove an ABSURD amount of superfluous includes 2020-12-10 05:19:36 -03:00
Iris Morelle
aa5aec0914 addon/mg: Refactor installed/available_addons()
The code in both is almost identical except for the check for .pbl
files. Furthermore, the call to filesystem::get_files_in_dir() does not
need a list of files to output since support for Addon_Name.cfg-style
add-ons was dropped in version 1.13.0.

The ADDON_ENUM_CRITERIA enumeration is there in case in the future we
need more criteria for enumerating add-ons. Right now it's just a
convenience so enumerate_addons_internal() takes a self-descriptive
parameter instead of a boolean.
2020-12-10 05:13:38 -03:00
Iris Morelle
1fa08d811c addon/mg: Make get_addon_install_info() unwrap the retrieved [info] WML
Since write_addon_install_info() (which was just added) automatically
wraps the input in the [info] envelope, it make sense to me to do the
inverse operation in get_addon_install_info() as well instead of
off-loading the responsibility onto the callers. The file in question
should never contain any useful information outside of the singular
[info] node anyway.

(Admittedly, this obsoletes the previous bugfix in
220792dd07b525c9b925c8fdb811b3661578dd64. On the other hand, it was
useful to have it in that form in 1.14 anyway to avoid any accidental
regressions.)
2020-12-10 04:55:10 -03:00
Iris Morelle
f49cb62c7c gui2/addon_license_prompt: Fix missing translation mark 2020-12-10 04:34:22 -03:00
Iris Morelle
4fa0ac6357 gui2/addon_license_prompt: Revert caption to just "Terms" 2020-12-10 04:31:02 -03:00
Iris Morelle
782ee9d761 campaignd: Rephrase a few parts of the default license notice
Quite concerningly, people made a typo ('proscribed' instead of
'prescribed') which changes the meaning of the sentence in question
rather substantially.

Additionally, the situation with different versions of the GNU GPL
hasn't ever been quite clear -- in theory people could've used the GNU
GPL version 1 with content previously licensed under version 2 or later.
This change is meant to address this issue as well. Some redundant
wording has been removed in the process.

(Reviewed by Pentarctagon and Vultraz.)
2020-12-10 03:48:29 -03:00
Iris Morelle
220792dd07 addon/mg: Ensure _info.cfg has an [info] node when reading it
Fixes the dreaded "Mandatory WML child missing yet untested for. Please
report" error occurring when reading _info.cfg files that don't have a
valid [info] tag. In particular, this would cause the game version
dialog to crash to desktop.
2020-12-10 03:21:00 -03:00
Iris Morelle
d8f943664f addon/mg: Turn _info.cfg writer into a public API
This reduces code duplication in the client proper resulting from the
addition of delta pack support, plus makes the overall procedure less
complicated since we don't have to inject a file into the pack before
unpacking it to disk.
2020-12-10 03:13:22 -03:00