77727 Commits

Author SHA1 Message Date
Charles Dang
24c8c3bd01 GUI2/Button: restored vertically-offset text positioning
The "plain" centered text looks a little weird with buttons
2020-12-14 23:51:16 +11:00
loonycyborg
4f5a713934 Drop load of unused scons tool "python_devel" 2020-12-14 15:47:41 +03:00
Celtic Minstrel
891421bb41 Return null instead of crashing when accessing an invalid element of a WFL list
Fixes #5355
2020-12-13 22:46:01 -05:00
newfrenchy83
b9dcc32e24
fix codeblocks projectfiles (#5356) 2020-12-14 10:35:42 +11:00
Charles Dang
6119486e32 Fixup attempt 3 2020-12-14 08:31:46 +11:00
Charles Dang
36062ed61c Testing a thing 2020-12-14 07:56:04 +11:00
Charles Dang
ccbb0de4e2 Fixup 2020-12-14 07:14:18 +11:00
Charles Dang
24f3245cfe Why was [titlescreen_music] in editor/_main.cfg... 2020-12-14 06:47:08 +11:00
Martin Hrubý (hrubymar10)
8c31a4cb10
Update Xcode project 2020-12-13 20:40:36 +01:00
Charles Dang
d00c29ab6e Minor cleanup 2020-12-14 06:33:12 +11:00
Charles Dang
b4db8dcab7 GUI2/Story Viewer: removed use of location_callable 2020-12-14 06:21:55 +11:00
Charles Dang
17f979d866 GUI2: removed pixel offset from GUI__TEXT_VERTICALLY_CENTRED
Fixes the text of menu_buttons being 1 pixel too high. Seems this is a relic from 2016 and me tweaking the
formula to try and get things more centered in buttons... But in that case, adjustments shuld probably be
directly made to buttons, not here.
2020-12-14 06:21:20 +11:00
Charles Dang
3ae339bf31 GUI2/Preferences Dialog: removed now-unused game config ctor argument 2020-12-14 06:03:59 +11:00
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