Commit Graph

85052 Commits

Author SHA1 Message Date
Charles Dang
f18821fd9a vcpkg: add boost-multi-array 2025-03-21 23:36:53 -04:00
Charles Dang
430584c22b Utils/Rate Counter: return true on first invocation 2025-03-21 23:36:14 -04:00
Charles Dang
3299eea7c6 GUI2/FPS Report: remove unnecessary include 2025-03-21 23:31:13 -04:00
Charles Dang
2afb146cb6 Prefs: fix indent 2025-03-21 23:30:45 -04:00
Charles Dang
23a03172c5 Remove game_display args from mouse_handler and menu_handler
These were only passed as nullptr, and set later once the gd ptr was valid.
2025-03-21 23:30:31 -04:00
Charles Dang
a907af7e55 Display: port FPS viewer to GUI2
Splits the FPS viewer out of the display class and into its own modeless dialog. This serves as a proof-of-concept for further modeless GUI in-game dialogs. Admittedly, it only works because I explicitly disconnect it from the UI event context, since it doesn't need to receive events.

This also introduces a new tracked_drawable interface that encapsulates the fps logic. Any class that inherits from it can have its render stats displayed using the new fps_report dialog.
2025-03-21 22:51:28 -04:00
OrekOrek
a46bae0f80 NR carryover gold fix
Makes carryover gold from old 80% to new 40%. Adds missing [endlevel] to S6.
2025-03-22 08:48:59 +11:00
Subhraman Sarkar
e7a684afbf remove unparsed text and store the dom correctly 2025-03-21 15:43:23 +05:30
Gunter Labes
11f3bbf979
Also save chat messages or commands in history 2025-03-21 09:43:56 +01:00
Gunter Labes
403fc54790
Leave chat open on failed command execution
Also remove unused set_help_on_unknown function.
2025-03-21 09:43:56 +01:00
Wedge009
02f8110420
TDG: Correct Orcish Sorceress description (#10040)
[ci skip]
2025-03-21 16:10:27 +11:00
Gunter Labes
4123e8f4ea
PUA: Access only the right unit type ID attribute 2025-03-20 23:40:43 +01:00
Vasya
a0b427dac5
Generalise log domain matching rules
Previously, `--log-debug='*'` would not match all domains.
Similarly, `conf*` would not be a correct pattern, etc.

With this change, special handling of top-level domains is removed.
For example, the config domain will not be matched by `conf*`.

All domains can be matched by the magic string "all" as before,
or by using `*`.

Basic manual testing was performed for this PR:

* broken domain patterns that do not match anything
result in an error, as expected.

* patterns containing a comma (delimiter)
are handled "correctly", that is, individual components
are understood and processed separately.

* patterns "all" and "*" were tested.

* specifying "conf*" correctly enables the config domain.

* specifying "gui/*" does not enable the config domain.

Fixes #10052
2025-03-20 22:59:11 +01:00
Dalas121
df93229ccd
TSG help.cfg: improve translatability of "ranged attack" help message (#10043)
As pointed out by @Wedge009 / @stevecotton in #9682, this string may need to be translated differently depending on the type of unit being attacked.

Also removes the message when attacking a Thief - Rogues (which IIRC are the only thief-line unit you fight in this campaign) have a ranged attack.
2025-03-19 19:37:03 -05:00
Gunter Labes
7c944435a1
Move processing of simple options that return earlier
This way they're unaffected of unrelated issues, like not finding the data dir.
2025-03-19 22:54:56 +01:00
Subhraman Sarkar
877ac69366 rich label: support setting table bgcolors from definition 2025-03-19 17:00:36 +05:30
Subhraman Sarkar
00b6d14379 help: hide specials column when no weapon has special 2025-03-18 15:51:15 +05:30
Subhraman Sarkar
d68071b2c9 rich label: add valign and halign attributes to table
specifically, `valign` is available for `<row>` while `halign` is for `<col>`.
2025-03-18 15:31:33 +05:30
Subhraman Sarkar
6d05fb1f8d rich_label: table width=fill and customizable global padding
* Stops table from growing beyond the max width due to padding.
* <table width='full'> causes table to grow to available width.
* Add a `padding` key to `[rich_label]` that allows setting the internal padding to a custom value.
2025-03-18 09:59:32 +05:30
Subhraman Sarkar
56a08cb97f rich label: handle w correctly for table 2025-03-18 08:22:25 +05:30
Charles Dang
20b43ea775 Markup: allow simpler syntax for passing attributes to tag() 2025-03-17 17:49:18 -04:00
Charles Dang
4f163b2528 GUI2/Window: clear to-be-rendered area unconditionally
This fixes overpaintin issue with continually-updated to-be-drawn windows
2025-03-17 17:47:40 -04:00
Oleksii
9f70d37189
Move TDG's spells to a separate file + bug fix (#10036)
This pull request separates TDG's magic system and its spells, making it easier to create your own sets. I also fixed a bug with spell unlocking that I reported to @Dalas121 last year.
2025-03-17 14:40:43 -05:00
Charles Dang
7ec15aee0c WFL/Formula: use a unique_ptr for the managed instance
Turns out we can use a unique_ptr after all, we just need to define the dtor out-of-line once function_symbol_table is a complete type.

Also adds a move ctor and assignment operator. This is necessary since the unique_ptr makes the class non-copyable, and also fixes a case in unit_filter_attribute_literal where a move was attempted but no move ctor provided.
2025-03-17 13:51:22 -04:00
Charles Dang
d3a8b882a7 Fixup 6415bb8adc 2025-03-17 13:49:44 -04:00
Charles Dang
6415bb8adc Disable Windows CI job temporarily
https://gitlab.freedesktop.org is undergoing maintenance until March 22nd and causing vcpkg to fail (see https://github.com/microsoft/vcpkg/issues/44429).

This should be reverted once it's back up.
2025-03-17 12:10:43 -04:00
pentarctagon
0e5ae74d07 add a slash 2025-03-17 09:42:24 -05:00
Ibrahim Velasquez
2a2cb8bb2b change function naming back to original 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
b308ce70d6 import * from scons.scripts 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
e3ee6c5961 add back explicit references for imports 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
7ea5637a88 adjut line length for readability 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
f809e9dbad remove f strings and add back FS import 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
5b04600f9d Add f strings for better readability 2025-03-17 09:36:19 -05:00
Ibrahim Velasquez
6eba6df5f6 Remove unused imports, adjusted styling and naming conventions 2025-03-17 09:36:19 -05:00
Subhraman Sarkar
49775a2b57 rich label: fix broken table width attr 2025-03-17 11:38:43 +05:30
pentarctagon
e7a7960cee 1.19.10+dev 2025-03-16 23:30:13 -05:00
pentarctagon
8266a078ea 1.19.10 2025-03-16 23:29:07 -05:00
pentarctagon
f532c3852a pot-update and regenerate doc files 2025-03-16 23:26:03 -05:00
Gunter Labes
20f74d6ef3 Make sure formula symbol tables get deleted properly 2025-03-16 23:14:04 -05:00
Subhraman Sarkar
1510245682 markup: add tag overload that handles tags with attributes 2025-03-17 08:58:31 +05:30
Gunter Labes
8179feaa8c
Show all relevant metadata for all involved files 2025-03-17 00:56:09 +01:00
pentarctagon
aa49fae09d update changelog 2025-03-16 13:20:17 -05:00
Pentarctagon
a900508835
Add queue-like functionality to the multiplayer lobby (#9819)
This allows defining an [game_presets] tag which contains [game] tags describing how to show the game in the lobby and what settings the game should use.

Functionally this adds an entry per [game] into the Matchmaking section of the MP lobby:
* If a player clicks Join and there are no previously created games from this "queue" that are open, then the server instead responds telling the client to create the game. The game is created directly using the settings defined in its [game] tag, so for the player it looks like they clicked join and then go straight to the MP staging screen.
* If a player clicks Join and there is an open game created from this "queue", then the server instead responds telling the client the actual ID of the game to join and the client then joins that game just as if they had clicked Join on a normal game.

Currently only implemented for mainline.
2025-03-16 12:49:10 -05:00
Subhraman Sarkar
45b3f682c0 rich label: new attributes <row> bgcolor and <row>/<col> padding 2025-03-16 12:31:13 +05:30
amakriLexa04
2a28ebd2d0 spacer fix 2025-03-15 22:44:03 -04:00
Charles Dang
1ffc5aa57a Fix usage inconsistency with make_ci_matcher overload
In order to properly distinguish the overloads, the second takes the keywords instead of the filter text. This was confusing, so now `translation::ci_search` properly handles vector input. Removes the need for the second overload.
2025-03-15 22:42:56 -04:00
Gunter Labes
ee24ef6102
Correct variable name 2025-03-15 22:11:59 +01:00
Bradley Williams
85c00bb161
add_source_file: styling changes for readability (#10011) 2025-03-15 21:30:57 +01:00
Gunter Labes
07ef83131a
Make function properly local and fix variable names 2025-03-15 21:13:48 +01:00
Gunter Labes
470c0b8b0a
Remove badly named variable 2025-03-15 21:13:39 +01:00