27534 Commits

Author SHA1 Message Date
Charles Dang
8afe3f595c MP/Lobby: flipped blocked players filter
Now it's an inclusion filter (false by default) rather than an inclusion filter.
2020-12-23 19:28:07 +11:00
Charles Dang
28264cf876 MP/Lobby: improved filter area
* Improved labels
* Reordered options
* Left-aligned the section with the filter box for easier access
2020-12-23 15:46:28 +11:00
Charles Dang
ef66625208 Ran wmlindent 2020-12-21 16:44:09 +11:00
doofus-01
0daabf73ea
Units - various work on new fauna (#5344)
* finish Giant Stoat -> Frost Stoat conversion

* adding scarab (Horned Scarab)

* various fauna animations work
2020-12-20 19:19:43 -08:00
Celtic Minstrel
651090cf47 Fix erroneous deprecation warnings from [random_placement] 2020-12-20 15:17:26 -05:00
Celtic Minstrel
5a068dad61 Fix a deprecated use of [random_placement] 2020-12-20 15:16:59 -05:00
Michal Žejdl
698c55198c SotBE: fix pronoun (Inarix is an Ambusher, thus female) 2020-12-20 12:56:45 -06:00
Michal Žejdl
5b56e675b6
SotBE S09: add user_team_name (#5371)
* SotBE S09: add user_team_name
2020-12-19 19:29:37 -05:00
doofus-01
dd322ccbf4
[terrain-graphics] fix for Eff/V* transition
fixes #5366
2020-12-19 09:54:22 -08:00
larry_the_cow
60e69492da NEAREST_HEX: variable location_found is no longer used. 2020-12-19 01:57:55 -06:00
nemaara
6e236ba03b EI: second balance pass 2020-12-19 02:22:20 -05:00
nemaara
ab900b0093 EI: rebalance pass 2020-12-19 02:11:36 -05:00
Iris Morelle
61e832e9af gui2/campaign_selection: Layout tweaks for the settings row
This makes the row actually take up its full horizontal space and spaces
out the columns very slightly while still allowing them to be usable at
800x600.

It also replaces the overlong detailed descriptions for the options in
the Combat menu with tooltips holding the same contents.
2020-12-19 03:47:54 -03:00
Iris Morelle
10d578bb7b gui2/campaign_selection: Use "Timeline" for the timeline sorting header
It's more elegant in context than "dates".
2020-12-19 03:47:54 -03:00
Iris Morelle
19004a6950 gui2/panel: Avoid using images and just draw rectangles
The opacity used here for the fill colour is identical to the one used
in the image file.
2020-12-19 03:47:54 -03:00
Iris Morelle
4b5eabdfb0 engine: Control experimental PRNG option via game classification
This removes the use_prng Advanced Preferences option and replaces it
with a new possible value for randomness in the game classification
class, "biased". It also changes the enumeration label for it in the
GUI2 campaign dialog.

It also makes it so the synced RNG is automatically used with this
option as well as the existing deterministic randomness option ("save
random seed").
2020-12-19 03:47:54 -03:00
Iris Morelle
ac53f93004 gui2/campaign_selection: Major dialog overhaul
CC: issue #4543

(N.B. This is a monolithic mega-commit because of a bunch of
experimental phase changes that necessitated constant changes to both
engine code and UI WML.)

This redesigns the campaign selection dialog implementing a
campaign-defined background image that changes depending on the selected
campaign, specified by the [campaign] background= attribute; adding a
menu button for selecting the RNG mechanism in use (default RNG vs.
predictable RNG a.k.a. "save random seed"); and finally, adding a menu
button for selecting the campaign difficulty without having to go
through the campaign difficulty selection dialog.

A huge amount of changes to the UI WML were required for this to say the
least.

This also adds the following new widget definitions:

 * toggle_button: listbox_header_centered, listbox_header_bg,
   listbox_header_centered_bg
 * panel: panel_listbox_bg, campaign_menu_bg

As a side effect, two private methods in
gui2::dialogs::campaign_selection() are no longer const-qualified. No
idea why they were const-qualified in the first place, but it
interferred with some of the new code in a major way.
2020-12-19 03:47:54 -03:00
Iris Morelle
c45e90ebb6 pot and documentation update 2020-12-18 22:29:40 -03:00
Charles Dang
3118f34798 GUI2/Screenshot Notification: use action_browse definition for browse button 2020-12-19 11:32:14 +11:00
Charles Dang
5feaf973ce
Merge pull request #5363 from shikadiqueen/feature/addonmg-url-ux
gui2/addon_manager: Replace URL widgets with a single link label
2020-12-17 04:46:15 +11:00
nemaara
f87a2bc4e4 THoT: move campaign lower in difficulty rating 2020-12-16 04:16:17 -05:00
nemaara
afbd7e0237 THoT: rebalance campaign 2020-12-16 04:13:49 -05:00
Charles Dang
c65db9acbb GUI2: added _WIDGET_DEBUG_BORDER macro 2020-12-16 19:18:29 +11:00
Pentarctagon
c8666a8a41 Remove the editor option to assign a recruit list to a unit.
The UI implementation of this is bad enough that I consider its presence to actively a detriment to anyone trying to use the editor.
2020-12-15 23:41:55 -06:00
Iris Morelle
cc052ed5a5 gui2/game_version: Minor streamlining 2020-12-15 19:49:40 -03:00
Iris Morelle
599509eb52 gui2/addon_manager: Replace URL widgets with a single link label
The URL widgets (textbox + copy button + browse button) predate the
implementation of link-awareness in labels and they sort of got carried
over into the new design magically without there being a real need for
that. Now that we have a visible cursor change when hovering links it's
even less necessary to draw unnecessary attention to the link with a
clunky and unintuitive (greyed out textbox...) interface.
2020-12-15 17:51:08 -03:00
nemaara
3c0377e28a HttT: rebalance remaining scenarios 2020-12-15 04:10:33 -05:00
fraaans
b3e5a260d9
NR S1/2: add dialogue when turns runs out (#5357)
* dialogue when turns runs out NR S1 and S2

* NR dialogue S1 and S2 for turn runs out: update

* Update data/campaigns/Northern_Rebirth/scenarios/02_01_Infested_Caves.cfg

Co-authored-by: nemaara <nemaara@users.noreply.github.com>

* Update data/campaigns/Northern_Rebirth/scenarios/01_Breaking_the_Chains.cfg

Co-authored-by: nemaara <nemaara@users.noreply.github.com>

* Update data/campaigns/Northern_Rebirth/scenarios/02_01_Infested_Caves.cfg

Co-authored-by: nemaara <nemaara@users.noreply.github.com>

* Update 01_Breaking_the_Chains.cfg

Co-authored-by: nemaara <nemaara@users.noreply.github.com>
2020-12-15 02:59:52 -05:00
Eric Gallager
35c20c1541
DW: reduce difficulty
from https://github.com/cooljeanius/wesnoth_mods
2020-12-15 02:44:01 -05:00
Charles Dang
b3d4a3744d GUI2/Addon Manager: removed link awareness from addon descriptions
Formatting is disabled for these and links require formatting, so this is redundant.
2020-12-15 11:57:33 +11:00
newfrenchy83
2168f629fb
Add overwrite_specials attribute to allow forcing a lower chance to hit
The reported issue being that the FORCE_CHANCE_TO_HIT macro was able to force an increase in an attack's chance to hit, but no longer able to force a decrease.
2020-12-14 14:57:59 -06:00
Iris Morelle
3d7f0a6116 schema: GUI2 dropdown menus support the details= attribute 2020-12-14 14:44:08 -03:00
Charles Dang
3ca809d534 GUI2/Player Info: removed redundant grid 2020-12-14 23:53:20 +11:00
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
Charles Dang
24f3245cfe Why was [titlescreen_music] in editor/_main.cfg... 2020-12-14 06:47:08 +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
nemaara
c8576a781d HttT: rebalance some scenarios 2020-12-13 04:49:14 -05: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
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
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
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
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
8c3918197c gui/addon_manager: Add dedicated license prompt dialog
This allows using full markup for the license text and making it
independently scrollable without messing up the dialog. It also enables
URL parsing in it.
2020-12-10 00:15:17 -03:00
newfrenchy83
70e4f7bb7e
Move documentation outside some macros
Fixes #5347
2020-12-07 22:26:06 -06:00