Commit graph

84096 commits

Author SHA1 Message Date
Charles Dang
8bf49639ea Fix build on VS 17.11 2024-08-15 19:30:23 -04:00
newfrenchy83
8f20c12e3d fix incomplete add [disable] abilityto abilities used like weapon special 2024-08-14 19:39:35 -05:00
pentarctagon
0cf9490409 handle preferences case change
Fixes #9199
2024-08-14 19:33:54 -05:00
Charles Dang
c5e0b3eefb GUI2/Drawing: don't assert on empty [draw] 2024-08-14 14:03:37 -04:00
Charles Dang
4058f866d6
Remove UNUSED (#9210) 2024-08-14 13:55:58 -04:00
Subhraman Sarkar
6980ad04d6 gamestate inspector: use uneditable scroll_text instead of scroll_label
allows text to be selected and copied
2024-08-14 12:03:39 +05:30
Subhraman Sarkar
18a08fbbef muliline text: improve slowdown and line calculation algorithm 2024-08-14 12:03:39 +05:30
Subhraman Sarkar
cf5cc8ec3f text renderer: remove caching and get_byte_offset, add get_cursor_pos_from_index 2024-08-14 12:03:39 +05:30
Charles Dang
b874b8c6d4
Update xBRZ to v1.8 (#9208)
* Update xBRZ to v1.8 (resolves #8307)

This replaces our implementation with stock xBRZ sans any of our custom code. Made these changes from plain source:
- Renaming .h -> .hpp
- Conditionally use [[likely]]
- Added a trailing newline
- Comment out unused parameters
- Disable `-Wunused-function` warning on macOS
2024-08-14 01:13:37 -04:00
Charles Dang
dac8f6f5e0 Mark draw RAII getters [[nodiscard]] 2024-08-13 21:56:46 -04:00
Celtic Minstrel
8baf95601d [LuaDoc] Mark filesystem.asset_type as an enumerator 2024-08-13 08:54:04 -04:00
Celtic Minstrel
d2983f849b [Lua] Read campaign ID from scenario settings instead of mp_settings. 2024-08-13 08:54:04 -04:00
Celtic Minstrel
233237be1e [Lua] Add some TODO notes on things to come back to later. 2024-08-13 08:54:04 -04:00
Celtic Minstrel
a277073e36 [Lua] Remove some internal implementation functions from the external ai_helper interface.
There are no callers in mainline. The functions are not meant to be called directly at all – for each, there are wrapper functions that are intended to be called instead, which are still exposed.
2024-08-13 08:54:04 -04:00
Celtic Minstrel
faaeaadaa1 [Lua] Avoid missing field warning by reversing the order of the check 2024-08-13 08:54:04 -04:00
Celtic Minstrel
9e79a627c3 [Lua] Fix some accidental global warnings 2024-08-13 08:54:04 -04:00
Celtic Minstrel
dd24051c17 [Lua] Mark location_set.values as private 2024-08-13 08:54:04 -04:00
Celtic Minstrel
b6da8a705f [Lua] Avoid variable reuse as a different type 2024-08-13 08:54:04 -04:00
Celtic Minstrel
542581916f [Lua] Suppress some diagnostics and also recommend suppressing certain diagnostics globally 2024-08-13 08:54:04 -04:00
Charles Dang
7891a9f06f Animated: remove unnecessary default value ctor 2024-08-12 23:59:59 -04:00
Charles Dang
9ef2e4043f GUI2: simplify the implementation of decode_font_style 2024-08-12 23:59:17 -04:00
Charles Dang
6625aa42d2 Simplify WML filter checks with in_ranges (closes #9083)
We don't want the main change from that PR, but we do want the cleanup.
2024-08-12 23:58:47 -04:00
Charles Dang
cce8c7a410 GUI2/Preferences: fix anim frequency slider being incorrectly initially set (fixes #8612) 2024-08-12 00:50:35 -04:00
Charles Dang
2e8dd8f5fc GUI2/Tree View Node: fix broken manual folding (fixes #8689, fixes #9146) 2024-08-12 00:35:28 -04:00
Charles Dang
91f26a1624 Revert "Attempt to address overly enthusiastic minimap rendering"
This reverts commit 6fff6de906.
2024-08-11 22:46:57 -04:00
Charles Dang
283e52222a Restore old clip rect when reverting render target (fixes #7087, fixes #8607)
This specifically manifested with the new minimap rendering code. Since we were creating a new temp texture onto which to draw the minimap before drawing it to the window texture, the formerly set clip rect was incorrect when the old viewport was restored:

For a minimap texture of 738 x 912:
Clip before changing target: `[0,0|330,200]`
Clip after changing target: `[0,0|738,912]` (covers whole of new target)
Clip after old target is restored: `[476,55|330,200]`

It's unclear where the extra x,y values came from, but I suspect it's some issue with SDL's internal viewport handling.
2024-08-11 22:45:34 -04:00
Elvish_Hunter
401b969704
Changelog entry for PR #9189 2024-08-12 00:32:36 +02:00
Elvish_Hunter
1f9c5af164
Add sprite for the Cold Dagger item to UtBS (#9189)
* Add sprite for cold dagger item

* UtBS 04: use cold dagger sprite

* Update copyrights.csv for the cold dagger sprite
2024-08-12 00:28:54 +02:00
Charles Dang
30977f588a Fixup 71f9ee6ae7 2024-08-11 17:11:45 -04:00
Charles Dang
44db56d767 MP/Staging, Join Game: fixed some alignment and formatting issues 2024-08-11 17:00:21 -04:00
Charles Dang
71f9ee6ae7 Remove image::locator::value
This builds on the work in cca82c4c3a. There, I delegated the ctors to the `value` strict via a forwarding ctor, but it honestly seems better to just remove the value struct entirely and just have class members. There isn't anything that relies on `value` as a distinct type anymore anyway.

The change in minimap.cpp is to deal with build errors that suddenly emerged with this change.
2024-08-11 16:24:59 -04:00
newfrenchy83
6ebca64acc add [disable] abilityto abilities used like weapon special 2024-08-11 13:29:34 -05:00
Gunter Labes
f11fbee7fe
Fix filter attribute name 2024-08-11 15:21:00 +02:00
Toom
31658e2587
Set unit hitpoints to 0 during [kill] (#9164) 2024-08-10 09:20:12 -05:00
Nils Kneuper
e9a6761484 updated Czech translation 2024-08-10 15:11:40 +02:00
Nils Kneuper
02f8b8c2ea updated French translation 2024-08-10 15:10:27 +02:00
Gunter Labes
6bc7a80b5d
Properly implement DO_NOT_MODIFY_CACHE
This fixes node_to_string() by making sure the node is really not modified.
2024-08-10 10:36:55 +02:00
Gothyoba
0aa93bf94c
Revised Encyclopedia (#9188)
This is a series of mostly minor changes to the encyclopedia:

- The Wesnoth Calendar has been renamed to Wesnothian Calendar.
- The calendar page now explains YW, BW, and AF. As far as I’m aware, these are not explained in-game despite their use.
- The unused file drakes.txt has been removed.
- The Great Ocean section now mentions the drakish name World Ocean and some drakish mythology from drakes.txt. 
- The Great River page has had a section on the Ford of Abez added. This is partly copied from the wiki (section copied appears to have been added by Esr, 8 October 2008)
- Morogor has had Mount Krogor been added as a notable land feature in the encyclopedia, taken from drakes.txt.
- The Green Isle section has been greatly expanded to include details on settlements and terrain. I thought it would be useful to have this, as the Green Isle is the original home of the Wesnothians and a major part of the setting of TRoW.
- Added a short sentence on the Old Continent being the original homeland of orcs and humans.
- Westin has been added to the Wesnoth page.
- The Isle of Alduin has been added to the Wesnoth page.
- A section on the Green Swamp has been added to the Wesnoth page. This is copied from the wiki. (section copied appears to have been added by Octalot, 21 September 2021)
- The section on notable cities for the Southwestern Elves has been removed due to the lack of known cities in the region.
- The Northlands description has been modified.
- The local orcish names for the Heart Mountains are now mentioned on the page for the Heart Mountains.
- Tirigaz and Jotha now have short one-sentence descriptions.
- The Desert of Death has been added to the far north section.
- Various land features from the far north have had short descriptions added.
- A section on the Far South has been added. It does not expand much on current lore except for some mentions of monsters. It only includes the Mountains of Peril, Sandy Wastes, and the Black Forest (moved from Southwestern Elven Lands and slightly modified) and is intenced to be very vague to allow UMC creators to imagine details of the Far South.
2024-08-09 12:26:47 -05:00
Charles Dang
6fff6de906 Attempt to address overly enthusiastic minimap rendering
See #8607 and #7087
2024-08-09 11:40:27 -04:00
Sergey Popov
c10c47ebb1
wesnothd: avoid a race condition when logging on
Ensure that there is no coroutine yield between confirmation of login
and update of player_connections_. Otherwise another login under same
name could succeed if it happened before handle_player() which resulted
in an assert later.
2024-08-09 11:50:08 +02:00
Subhraman Sarkar
8863cd1bcd
MP: correctly register Start Game button's shortcut with hotkey system (#9181)
Correctly register the Start Game button's shortcut with hotkey system
2024-08-09 08:56:08 +05:30
Gothyoba
c761174331 New Titlescreen images 2024-08-08 21:37:42 -05:00
Charles Dang
884fdbeb95 Attempt to work around more accursed macOS build issues 2024-08-08 19:07:30 -04:00
Charles Dang
f8ca3ccd36 Update CodeBlocks and XCode projectfiles 2024-08-08 17:26:35 -04:00
Charles Dang
367c6c8aa3 Fix spritesheet generator 2024-08-08 17:26:35 -04:00
Charles Dang
c9ed3711b4 Make get_non_transparent_portion return a rect again
Reverts part of 37a45c32ce and moves the actual surface handling to the relevant IPF, which was also simplified
2024-08-08 17:26:35 -04:00
Charles Dang
518e0d2050
Added spritsheet generator (#6665)
This takes a folder with images and writes an assembled spritesheet to disk along with a config file.
2024-08-08 11:29:08 -04:00
Charles Dang
d762bea734 Split drawing_layer into its own file, make scoped enum 2024-08-08 02:14:22 -04:00
pentarctagon
8bebc86b6a damage_type tests 2024-08-07 21:32:46 -05:00
pentarctagon
9821e2037b macroify some preferences code 2024-08-07 21:31:11 -05:00