Commit Graph

1896 Commits

Author SHA1 Message Date
8ba173e5eb Record replays into AppData 2025-02-23 09:38:23 -06:00
60b178d6e8 Debug action to save out (and keep saving) the log in memory 2025-02-23 09:38:23 -06:00
64702b3a88 support for recording replay in memory 2025-02-23 09:38:22 -06:00
5ee8f91f5d fix replay show_debug_help 2025-02-23 09:38:22 -06:00
01c11518cc Fix scaled text offset in fullscreen modes. Fix #651 2025-02-22 11:21:47 -05:00
99f3cdc1c4 Fix party invisible outdoors 2025-02-20 20:03:13 -05:00
9bfe8e3f12 -1 is supposed to be no face pic (#645)
Fix #74
2025-02-20 20:02:56 -05:00
85096de3b7 when status is 0 bound low to 0. Fix #138 2025-02-20 20:02:27 -05:00
35a2157059 Write timer index. Fix #621 2025-02-20 20:01:59 -05:00
907c459419 Fix another crash on page 2 of spell picker 2025-02-20 20:01:38 -05:00
f80f8a932a Implement a feature flags system.
* Scenarios contain a string map of feature flags. The flag names are the keys, and flag versions are the values, so a typical value might be "fixed" for bug fixes or for evolving features, "V1", "V2", etc.
* The game has a map of flags to lists of supported versions. The game can therefore signal that it supports a legacy behavior for a given feature flag. The last version in the list is considered to be this build version's default behavior.
* When launching a scenario, we check to make sure the game supports the scenario's required versions of its feature flags.
* When launching a replay, we make sure the game supports the feature flags that the version of the game that made the recording did.

Fix #555
Close #591
2025-02-19 22:32:12 -05:00
5a9c2cd17b explicit bool logic grouping 2025-02-19 19:39:32 -06:00
c94228c99c Default controls keep their hotkey AND the enter key 2025-02-19 19:29:02 -06:00
e61abae720 When party is off-center, draw_party_symbol offset them. Fix #628 2025-02-18 20:41:25 -05:00
dbf5822590 Add hotkey in top-left corner of shop item. Fix #624 (#630) 2025-02-18 20:40:36 -05:00
ec06ca4be3 Don't handle arrow keys specially in some modes. Fix #588 2025-02-18 09:37:56 -05:00
a669fe0223 handle showPipes in code only. Fix #609 2025-02-18 09:37:29 -05:00
32a532b7eb draw scale-aware text clipped to the adjusted clip_rect 2025-02-17 13:03:55 -06:00
d78793c979 store clip_rects of RenderTextures 2025-02-17 12:33:08 -06:00
2145d88133 Remove the <os> element from scenarios
Fix #522
2025-02-16 21:41:47 -05:00
c6f06ea862 DRY food/gold maximums. fix #79 2025-02-16 21:41:47 -05:00
cff8200f02 make give/take gold/food DRY 2025-02-16 21:41:47 -05:00
6916752a8a fix crash when no strings defined 2025-02-16 19:33:58 -06:00
8b873ffea5 fix crash bug when editing single text 2025-02-16 19:33:57 -06:00
c4e1ff7f0d Make getting scenario strings DRY 2025-02-16 19:33:52 -06:00
8cff2428a9 DRY advanced town help. Fix #611 2025-02-16 00:02:22 -05:00
83ae5eaa1b make Done & Race buttons use scaled text 2025-02-15 16:15:33 -06:00
f2248c766e Allow line-wrapped button labels 2025-02-15 16:14:31 -06:00
9c70859244 Fix C++11 compiler error 2025-02-15 15:16:39 -06:00
78d10987fe draw scale-aware text onto RenderTextures 2025-02-15 15:16:15 -06:00
6fa63307b1 Draw scale-aware text onto windows 2025-02-15 15:12:25 -06:00
8ab451f633 delete unused sf::Text 2025-02-15 15:12:17 -06:00
7383b39e69 Debug action: Preview every dialog layout 2025-02-15 16:04:32 -05:00
ec4094cf29 Fix line breaks being ignored. Fix #608 2025-02-15 16:04:32 -05:00
cfbb09a008 Merge pull request #587 from NQNStudios:fix-ranged-anim
Fix some ranged attack animation bugs

Fix #582
Fix #97
2025-02-15 16:03:51 -05:00
1ac6aeda05 scenario editor warn about outdated help windows 2025-02-15 11:00:19 -06:00
66256b305c Delete the "make shop random" button in favour of a preset selection when first creating the shop - this also adds "healing" to the list of presets 2025-02-15 11:33:40 -05:00
65cf27bc81 Reorganize Advanced Town Details and add some instant help
It now uses relative positioning as well.

Fix #546
2025-02-15 11:33:40 -05:00
46c102257b make give_help()'s force_help a bool arg 2025-02-15 11:19:44 -05:00
18a425be0d cPlayer give_help use bool flag instead of function pointer 2025-02-15 11:19:44 -05:00
576a40b3e1 make give_help() DRY 2025-02-15 11:19:44 -05:00
d3dff69d1a Fix a help dialog that appears in the top-left 2025-02-15 11:19:44 -05:00
3bd8874147 make all targets compile text-based pref handling in prefs.cpp
mac replays use preference std::map
2025-02-14 09:54:33 -05:00
1d25b447e7 fix typo in mac preference recording code 2025-02-14 09:54:32 -05:00
3a5cc4ead4 catch a replay system do_load edge case crash 2025-02-14 09:54:32 -05:00
a3ddff55aa add was_replaying to track how the game started 2025-02-14 09:54:32 -05:00
aed913a7f4 use bool_to_str 2025-02-14 09:54:32 -05:00
404f364053 recenter camera 1/2way into missile arc if sooner 2025-02-13 09:51:36 -06:00
fa1d9a7442 don't frame active PC when out-of-bounds in ranged anim 2025-02-13 09:50:20 -06:00
ab0eada20d explosion anims clip within terrain screen 2025-02-13 09:50:13 -06:00