Commit graph

29603 commits

Author SHA1 Message Date
Iris Morelle
edd14a7233
gui/preferences: Clarify themes tooltip
Mentions that additional themes may be provided by add-ons.
2023-06-10 16:38:02 -04:00
Iris Morelle
6b635f3072
gui/preferences: Relabel some Display options
* Resolution options now use "Window size" instead since it is more
   accurate to the current implementation of fullscreen

 * Theme becomes "Interface theme" to make its meaning clearer in the
   absence of additional built-in themes

 * "Automatic pixel scale multiplier" just becomes "Automatic scale"
   since the rest can be inferred from the context of the option being
   located right under the Pixel scale multiplier slider
2023-06-10 16:38:02 -04:00
Iris Morelle
d402da4e11
gui: Rearrange Display Preferences
This regroups some of the display options together in more logical
blocks:

 - Limit FPS and VSync with Resolution and Pixel scale multiplier
 - Theme and Show floating labels/team colors/grid
 - Animated map and Animated water
 - Show unit idle/standing animations

(Unwieldy diff because of all the grid reshuffling)
2023-06-10 16:38:02 -04:00
Iris Morelle
f7c879a171
gui/preferences: Make Themes selection a dropdown menu
Note that this doesn't remove the themes dialog functionality, since
it is currently used by the :theme command in the game console.
2023-06-10 16:38:02 -04:00
nemaara
126e05f7f5
NR S5: fix syntax 2023-06-08 00:17:53 -07:00
TheShadowOfHassen
cc17ed39aa
NR: FINAL Edit/Rewrite/Touchup 11, 12, 13 and epilogue. (#7683) 2023-06-07 18:59:58 -07:00
TheShadowOfHassen
147470353b
NR: Rewrite/Edit/Touchup: 08a, 09a, 10a (#7682) 2023-06-07 17:46:44 -07:00
TheShadowOfHassen
056b5f74e7
Nr: Rewrite/Edit/Touchup 05_02, 06_a, 07_a (#7680) 2023-06-07 16:39:46 -07:00
Slayer95
4c4e7b57e6
HttT: Improve Thoria branch rewards (#7622)
- Sergeant has been promoted to Lieutenant.
- Book of Wose Lore now also effectively grants intelligent trait
2023-06-07 14:30:16 -07:00
TheShadowOfHassen
3fb1e8f218
NR Dialog Rewrite/Edit/Touchup: Scenarios: 5 (#7676) 2023-06-07 10:49:33 -07:00
TheShadowOfHassen
ce7e54ec40
NR Dialog Rewrite/Edit/Touchup: 2-2 3, 4 (#7663) 2023-06-07 10:48:05 -07:00
Steve Cotton
ba3e346455 UtBS: Make the name of the dark assassin translatable again
It needs to be translatable because it needs to match the other strings that
call him by name. It was translatable until 1.15.4, and several of the .po
files that are already in the 1.16 still include it as an obsolete message, so
the next pot-update run will turn this back into a translated text in
Bulgarian, Greek, Irish, Galician, Latin, Lithuanian, Russian, Serbian and
Traditional Chinese.

(cherry picked from commit d07b74f010)
2023-06-06 14:08:23 +02:00
Iris Morelle
a92ae5c86a
gui/game_version: Minor layout tweaks to Log File button
* Make the label more compact for translations ("Log File" instead of
   "Open Log File")
 * Make the tooltip slightly more specific about the file's identity
 * Relocate the button to the bottom row to use real estate better
2023-06-04 22:18:19 -04:00
Iris Morelle
acd9429a23
gui/game_version: Fix Open Log File button being missing
In commit fc7c87b765 someone missed the
logic surrounding the Open Log File button's setup that should've been
made not Windows-specific anymore.

This commit enables the Open Log File button back whenever Wesnoth has
a log file open for the current session. It also removes a few more
leftovers of the old Windows-specific UI layout path.
2023-06-04 22:18:18 -04:00
gfgtdf
f7140b2e44 WC: Fix epic trait raising xp
Now it only applies to amlas, which seems to be how
the code was indeded to work, we could also make it
apply to normal advancements that cost >60xp
2023-06-05 02:32:03 +02:00
gfgtdf
bf63ff3e9b seperate menu for quick replays 2023-06-03 15:56:01 +02:00
Gunter Labes
df855235b4
Fix version validation
Fixes #7396
2023-06-01 11:01:08 +02:00
Gothyoba
0005a2eb23 Fixed old typo in definition of unit recruit window 2023-05-31 11:00:43 -05:00
Slayer95
81014cc0c2
Update wmllint calls to parse_macroref (#7662)
Fixup for #7561.
2023-05-30 18:03:20 +02:00
doofus-01
5b27ac92c9
1.17 new terrain - ruined walls (#7629)
Three terrains for ruined walls:  Xur (damaged cave walls); Xor (damaged stone walls); Exos (ruined stone walls, rational for the 'E' is that it's more embellishment than barrier)
2023-05-27 16:30:37 -07:00
Pentarctagon
0bfef4cd31
Add some search terms to the match history dialog. (#7571)
This still defaults to searching by the selected player name, but now also allows searching by:
* player name
* game name
* one of scenario id, era id, or modification id

The game name, scenario id, era id, and modification id support a leading and/or trailing wildcard for partial matches by essentially replacing the leading and/or trailing asterisk with a percent sign.

Scenario, era, and modification parameters are the ID, not the name, since the server gets the translated value for the name. Therefore searching by name would only give partial results in nearly all situations. So while this is probably unintuitive to a player, it still seems like the less bad option.

---------

Co-authored-by: Gunter Labes <soliton@wesnoth.org>
2023-05-26 11:55:36 -05:00
TheShadowOfHassen
0aa269c66e
[NR][S1 + S2] Story Prose and Dialog Touchups (#7643)
* Update 01_Breaking_the_Chains.cfg

I fixed issue #6510 and reworded another part that seemed confusing.

* Update herodeaths.cfg

Put some periods in it where I think they were needed.

* Fix 01_Breaking_the_Chains.cfg

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

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

* Update 01_Breaking_the_Chains.cfg

* Update 01_Breaking_the_Chains.cfg

* First pass of 02_01_Infested_Caves.cfg

* spell check

* Update 02_01_Infested_Caves.cfg

* 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/02_01_Infested_Caves.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 02_01_Infested_Caves.cfg

* Update 02_01_Infested_Caves.cfg

* Update 02_01_Infested_Caves.cfg

* Update 02_01_Infested_Caves.cfg

---------

Co-authored-by: nemaara <nemaara@users.noreply.github.com>
2023-05-26 13:15:49 +08:00
Ivo Julca
d4f16cd75b wmlunits: Use safe charset for image paths 2023-05-25 10:35:57 +02:00
Ivo Julca
71ff0cfabc wmlunits: Normalize file paths consistently 2023-05-25 10:35:57 +02:00
Ivo Julca
89f819661c wmlunits: Add path2url function for cross-platform path handling 2023-05-25 10:35:57 +02:00
Ivo Julca
5136c45b3e wmlunits: Correctly get Wesnoth paths in Windows 2023-05-25 10:35:57 +02:00
Charles Dang
8f112d287e
Merge pull request #7650 from irydacea/feature/gui-dropdown-checkbox-tweak
gui: Use true labelless checkboxes in the dropdown menu implementation
2023-05-24 22:48:28 -04:00
Slayer95
be991e027d
wmlxgettext: Support extracting all textdomains at once (#7624)
* wmlxgettext: Support extracting all textdomains at once

- -o now expects a folder.
- --domain is now treated as an optional filter.

* wmltools/gui/wmlxgettext: Update input handling

- Fix --initialdomain
- Textdomain is no longer mandatory.
- Accept output dir rather than output file.
2023-05-24 22:08:18 +02:00
Toom
9dfd434cdd
move multiplayer macros to proper folder (#7647) 2023-05-22 09:01:23 -05:00
Iris Morelle
0fa13e9894
gui: Use true labelless checkboxes in the dropdown menu implementation
Using checkboxes with an empty label doesn't quite do the trick and it
results in some (minimal) wasted horizontal space.
2023-05-22 03:45:23 -04:00
Pentarctagon
00171d6cb9 1.17.17+dev 2023-05-20 22:09:27 -05:00
Pentarctagon
1c8f405838 1.17.17 2023-05-20 22:08:32 -05:00
Pentarctagon
b2133d4093 pot-update and regenerate doc files 2023-05-20 22:05:36 -05:00
TheShadowOfHassen
9671508e78
Nr: Dialog/ Story Rewrite : Scenario One (Fix) and herodeaths (#7628) 2023-05-20 14:39:12 -07:00
Dalas121
dd42e4d4e4
Improve TRoW's Clearwater and Southbay ally AI (#7525) 2023-05-19 09:11:07 -07:00
Pentarctagon
ad3f1c95b0 Add support for distinct sub-achievements.
This adds support for having up to 28 distinct sub-achievements within a single achievement. This limit exists since wesnoth's layout isn't smart enough to tell a horizontal listbox to actually use its scrollbar instead of forcing a horizontal scrollbar on the whole window.

Additionally this adds the [set_sub_achievement] and [has_sub_achievement] WML tags and their respective lua functions. [has_sub_achievement] is unsafe for use in MP, for the same reasons that [has_achievement] is.
2023-05-17 23:54:16 -05:00
Slayer95
20d443bfcb
wmlunits: Refactor HTML postprocess step (#7609)
Cleaner and faster.
2023-05-18 00:21:06 +02:00
Slayer95
0620822ab2
wmlxgettext: Improve parser resiliency for malformed files (#7625)
* wmlxgettext: Improve parser resiliency for malformed files

- WML files with no translatable strings will no longer
crash the script on unbalanced tags (but translatable will).
- .cfg files belonging to man(1) will no longer crash the script.

* Remove stray quotes from textdomain declarations

These are not recognized by the wmlxgettext parser.
2023-05-17 21:40:36 +02:00
Celtic Minstrel
d4adbdcf91 Fix [clear_variable] not working on a variable name that happens to be a number 2023-05-09 23:10:26 -04:00
newfrenchy83
f9a94e1312 [1.17] add [filter_ability] in [filter] events and [effect]remove_ability and [filter_ability_active] in [filter] events
see https://forums.wesnoth.org/viewtopic.php?p=681371#p681371 in forum

the type of ability used is also filtered.
2023-05-09 19:26:10 +02:00
gfgtdf
9530ad1bc7 add test for no [side]s in [scenario] 2023-05-09 16:50:50 +02:00
Steve Cotton
a9ed25e694 Reorder WML includes so manual tests can use the unit-test macros
Move the line that includes data/test/scenarios/manual_tests/ below the
line that includes data/test/macros/. This allows a manual test to use
the setup in COMMON_KEEP_A_B_C_D_UNIT_TEST, putting units in the right position
to test combat and leadership abilities.

Also improve comments in data/test/_main.cfg.
2023-05-08 10:58:22 +02:00
doofus-01
de29611474
New wall terrain type 'Xuf'
1.17 - more overgrown walls (#7602)
2023-05-07 20:20:20 -07:00
Slayer95
36ed4641cd
wmlxgettext: Error out on unused #po, #po-override directives (#7573)
* wmlxgettext: Error out on unused #po, #po-override directives

* wmlxgettext: Ignore out of domain #po, #po-override comments

* wmlxgettext: Properly clear pending #po, #po-override on textdomain switch

* Fix misplaced #po comments in DiD, SoF, TSG, Editor

Some of these ugly relocations can be reverted in or after #7570.
2023-05-08 00:08:21 +02:00
Slayer95
03ab458ce0
wmlunits: Include nested dependencies in -L for -B to process (#7603) 2023-05-07 23:57:10 +02:00
Slayer95
eded720ee2
Refactor TeamColorizer into a Python library (#7604)
* Refactor TeamColorizer into a Python library

* Use TeamColorizer as library
2023-05-07 23:54:18 +02:00
Celtic Minstrel
f7fadba928 Fix compatibility path for helper.set_wml_var_metatable 2023-05-07 14:56:55 -04:00
Steve Cotton
4da33cb7c5 Convert readme in data/test/scenarios to Markdown, and add docs
Add a new guideline that reserves test names containing `_fail_`
or ending `_fail` for tests that don't `PASS`. The rest is just
collecting knowledge already written elsewhere.
2023-05-07 11:10:06 +02:00
Steve Cotton
7540c8f471 Rename test_terrain_mask_simple_name_fail to ..._ignore
I want to reserve names ending `_fail` or containing `_fail_` for tests
that do not expect the `TEST_PASS` status.
2023-05-07 11:10:06 +02:00
Celtic Minstrel
8dea67d323 Don't allow markup in achievement titles.
This is done as a guarantee that there will always be one unambiguous way to identify that the achievement is completed.
2023-05-06 14:45:40 -04:00