Subhraman Sarkar
523362dd33
rich label: fix excess table space and some cleanup
2025-03-15 12:38:19 +05:30
Dalas121
4b84de63f3
Revert "Use troll-hero-alt.webp portrait for Great Troll ( #10025 )" ( #10028 )
...
This reverts commit 9737595d959b494a1ae41a5a28fc2fcbda43aa27, following comments by Soliton in #10025 .
2025-03-14 07:52:01 -05:00
Subhraman Sarkar
38168bbfc4
ci searcher: same search behavior as 1.18
...
fixup of c7db03fa043ef763f9b0d51555a141d16c57f03d
2025-03-14 16:46:16 +05:30
Subhraman Sarkar
c7db03fa04
ci searcher: match entire string instead of chunks ( closes #10027 )
2025-03-14 14:38:50 +05:30
Subhraman Sarkar
c3ef8084d5
wesnoth.terrain_types: add mvt_alias and def_alias
...
these expose `terrain_type::mvt_type()` and ``terrain_type::def_type()` respectively.
(#9969 )
2025-03-14 08:55:18 +05:30
Subhraman Sarkar
cf0eb00518
help topic generator: cleanup, move special notes to separate function
2025-03-14 08:55:18 +05:30
Subhraman Sarkar
68e4c64e71
rich label: add padding between consecutive float images
2025-03-13 22:39:50 +05:30
Charles Dang
aabe92e0f9
WFL: fixup 9ddf6ca53a9b3fef60ec107260b2b86402423c25
2025-03-13 12:53:28 -04:00
Dalas121
ddb0e83c2b
EI S14: undefine GOLD_PICKUP macro
2025-03-13 09:19:25 -05:00
GreenScarab
9737595d95
Use troll-hero-alt.webp portrait for Great Troll ( #10025 )
2025-03-13 09:18:54 -05:00
OrekOrek
6184817458
HttT S19c: Fix and improve drake spawn algorithm ( #10014 )
...
Drake spawn algorithm is fixed and improved. A drake nest is added to the map. Drake nests are separated into 2 types.
2025-03-13 09:16:59 -05:00
Subhraman Sarkar
9850b49b81
help: fix unknown unit page
2025-03-13 18:54:56 +05:30
Subhraman Sarkar
68cf97e36e
rich label: inline image alignment fix
...
Fixes inline image alignment when scaling > 1. Also some cleanup.
2025-03-13 14:42:04 +05:30
Charles Dang
9ddf6ca53a
WFL: simplify debug_print
...
The speaker value now defaults to "WFL" if not provided, same as debug_profile
2025-03-13 01:55:59 -04:00
Charles Dang
5377ed7d9f
GUI2/Label: set default width for title screen tip label
...
This seems to mitigate #9885 , but I could not tell you why...
2025-03-13 01:24:28 -04:00
Charles Dang
4bbad94109
Font/Text: layout should never be null in set_text
2025-03-13 01:21:59 -04:00
Charles Dang
01ecc04ac8
GUI2/Definition: move settings members to their own struct
2025-03-13 01:20:39 -04:00
Charles Dang
b1e3bc3e56
Font/Config: tidy up load_font_config
2025-03-13 01:19:47 -04:00
Charles Dang
72a4ec9270
Font: make family_class a scoped enum
2025-03-13 01:19:02 -04:00
Subhraman Sarkar
87a4b55b31
rich label: replace canvas variables and set_var
...
Uses C++ variables for calculation instead
2025-03-13 10:10:11 +05:30
AlexanderLu98
df718c2ef5
Fix shadow inconsistencies in Lancer/Horseman breeze and peasant attack frames
2025-03-12 19:49:21 +01:00
Charles Dang
1f4e164e41
GUI2/Help Browser: set a default width for topic labels
...
Prevents them from reducing in width when searching topics
2025-03-12 01:06:12 -04:00
Charles Dang
1e833ba094
GUI2/Styled Widget: initialize canvases using range ctor
...
Also adds a proper move assignment operator to canvas. styled_widget::set_config was removed since it's not needed as of dfa09cd9d9be44ca036e6a506bdcd3116862b37e.
2025-03-12 01:05:45 -04:00
Charles Dang
f111ab1f7b
GUI2/Text Box Base: use existing resolution config ptr
...
No need to call get_control twice. Only styled_widget needs to do that.
2025-03-11 23:55:38 -04:00
Charles Dang
5dd3ec6113
GUI2/Text Box Base: remove font_family_ member
...
Added in 6c5a8e923d526796aa9afee78b9bc82ac2384410. We can just query the value directly from the resolution config.
2025-03-11 23:46:46 -04:00
Charles Dang
987004d09c
Font: remove old workaround for light weight fonts
...
Testing now, pango weight markup correctly works with the Lato weight variant files present and breaks with them missing. Seems the issue I documented back in 2018 is noo longer the case, and thus we don't need this workaround.
2025-03-11 21:45:51 -04:00
Charles Dang
dc5e0d62c4
GUI2/Styled Widget: remove orphaned text_maximum_width_
...
This was first added by mordante in a36e1ee69648fcb6f4e0600d78bf99f442bbc9cd. The code around it was subsequently removed in b217903c070e5a0de9162250108ea8f0e9ba5ad9, and had since remained functionally useless.
It was briefly called to action as part of #8510 (see 9b38089db0f2fca2374f5860b510af34454b89c7), but that usecase was temporary and the hardcoded max width subsequently removed in 4cb9df8e6c0307e065c29d2d7aad07debdc5e0da.
2025-03-11 19:43:32 -04:00
Charles Dang
b4175dbb4b
WFL: fix debug_profile
...
Fixup from 12fa8f28447e21e7522dba608034a08b984c05ac. Also fixes it doing 999 runs instead of 1000.
2025-03-11 16:26:55 -04:00
rodolphecombe
f68c4e8163
Add [have_side] tag
2025-03-11 20:11:40 +01:00
Charles Dang
d9ba97f3b2
Revert "Game Launcher: make use of optional::emplace"
...
This reverts commit 3c4239accefcfc5b1ce04cfcf4353921b08e5653. Needs C++20 for paren aggregate initialization...
2025-03-11 05:11:58 -04:00
Charles Dang
3c4239acce
Game Launcher: make use of optional::emplace
2025-03-11 04:49:11 -04:00
Charles Dang
f2c093d2a1
Game Launcher: tweak banner
2025-03-11 04:46:27 -04:00
Charles Dang
0a37c2cda9
Game Launcher: fix -fullscreen ( resolves #9991 )
...
Seems like this was missed as part of 29c82e308a44bf94303553f28fa30f32e4c33909.
2025-03-11 04:45:44 -04:00
Charles Dang
3350fc3c80
SDL/Surface: remove unused clip_rect_setter
...
Was superseded by draw::clip_setter during the draw manager refactor.
2025-03-11 02:24:28 -04:00
Gunter Labes
b2262d9bff
Fix readability of first line of changes
2025-03-10 23:19:24 +01:00
Gunter Labes
6f085ffa6d
Avoid indentation so the embedded html is parsed right
...
Use one html line per map.
2025-03-10 23:13:41 +01:00
Subhraman Sarkar
bd6f250c12
canvas: draw circle using cairo ( #10007 )
...
the circle is now antialiased using cairo.
2025-03-10 16:04:49 -04:00
Dalas121
55c228fcbb
TDG S06: clarify scenario objectives ( #10017 )
...
TDG S06 requires the player to both rescue Asheviere and also survive until turns run out.
With this commit, re-show objectives after rescuing Asheviere, and strikethrough the completed ones.
2025-03-10 11:36:43 -05:00
Gunter Labes
62b4758bca
Use a file for the comment body
...
Also fix the path to the old map file for dimension calculation.
2025-03-10 09:29:04 +01:00
Subhraman Sarkar
2b5d8b96bb
rich label: align small inline images with text vertically
2025-03-10 12:35:31 +05:30
Subhraman Sarkar
eb476bb625
help topic generator: drop "Icon" header
2025-03-09 19:17:00 +05:30
Gothyoba
14fbe59049
AToTB S3 Map: Aesthetic Revision
2025-03-09 09:22:00 -04:00
Gunter Labes
611108b4ea
Install imagemagick removed in runner image ubuntu-24.04
2025-03-09 12:44:35 +01:00
Charles Dang
845a516d5c
Font/Text: fix attribute bleedthrough
2025-03-08 13:45:14 -05:00
Subhraman Sarkar
ac1c82cd89
text renderer: eliminate local variable
2025-03-08 23:06:45 +05:30
Charles Dang
83366fa9b8
Font/Text: remove unused argument
...
Fixup b0fca37cbc
2025-03-08 12:18:11 -05:00
newfrenchy83
e0f46f23b4
update codeblock projectfile
2025-03-08 11:58:51 -05:00
Charles Dang
b0fca37cbc
Font: split cairo context and surface creation into their own functions
...
This will allow us to more easily experiment with cairo in other places. See #10007 for an example.
2025-03-08 11:37:45 -05:00
Gunter Labes
49564ed86c
Fix some indentation and make CI abort if wmlindent errors
...
Indentation was fixed by adding a newline to constructs with excessive density
and running wmlindent again. While the constructs were not particularly
readable it wouldn't hurt if wmlindent would cope a bit better.
2025-03-08 09:48:53 +01:00
Gunter Labes
cbe333583e
Add a rule for CI files
2025-03-07 20:22:53 +01:00