Commit Graph

3144 Commits

Author SHA1 Message Date
b7b595590d Fix loading trapped monsters 2025-02-27 08:55:56 -05:00
04183c7fbe Fix summoning exported monsters 2025-02-27 08:55:56 -05:00
bbddbefa99 Debug action: clear trapped souls 2025-02-27 08:55:56 -05:00
f2869494bb Buffer message when no souls for simulacrum 2025-02-27 08:55:56 -05:00
36a9c237d7 fix pick buttons in simulacrum menu 2025-02-27 08:55:56 -05:00
126245180a Replay scrollbar changes in dialogs' scrollbars 2025-02-27 08:55:26 -05:00
756415aeb2 record scrollpane name 2025-02-27 08:55:26 -05:00
5d3dd844ba scrollbar store reference to pane 2025-02-27 08:55:26 -05:00
a01c9d6e2a All controls store their name/keyO 2025-02-27 08:55:26 -05:00
f5f157c2ea Make cContainers handle relative elements within 2025-02-27 08:55:26 -05:00
c061ed4b0f Retarget Windows SDK for Visual Studio projects 2025-02-27 00:29:58 -05:00
b200dc2e20 Fix special item Use button 2025-02-23 21:04:32 -05:00
ca8da469e1 Debug give item: try give to active PC. Fix #635 2025-02-23 19:19:42 -05:00
c7ec0e3a85 Debug action: fill active PC's inventory 2025-02-23 19:19:42 -05:00
23adcac665 Debug mode: infinite PC turns 2025-02-23 19:19:42 -05:00
756324ad05 Exclude more invalid indices from damage_target 2025-02-23 19:11:30 -05:00
b505dc5852 Don't double-adjust boom text pos. Fix #127 2025-02-23 19:11:30 -05:00
942442ab26 Refactor: use damage_target() to remove repetitive if-else 2025-02-23 19:11:30 -05:00
3689adcc12 Fix text bar flicker. Fix #602 2025-02-23 19:09:53 -05:00
f92e7abe56 Only redraw textbar when text changes 2025-02-23 19:09:53 -05:00
d4675ed4c7 Refactor text-bar text calculation 2025-02-23 19:09:53 -05:00
11f5ab179d Merge pull request #657 from NQNStudios:replay-fixes
A round of replay system fixes and improvements.
* replaying the debug help window was broken in 2 ways which I fixed
* Fix #559 -- When we observe bugs in random sessions, we no longer have to regret that we didn't pass `--record` at the command line. The replay data is kept in memory and writing it out can be enabled with debug action Z.
* Recording replays into the working directory by default is pretty wonky, because the working directory is usually a build output folder that might be clobbered by a `scons -c`, wiping out important replays. Also, if the working directory is the Visual Studio project folder, you end up adding untracked files to your repo folder which can get annoying. So - I've made the default replay directory a folder alongside the tempDir that already exists. On Windows, this is in AppData, on Mac it's in Application Support, etc. But if you pass an explicitly relative or absolute path, it is resolved as expected.
* I made a mistake a while ago that made the Debug action N (end scenario) not get recorded. Fixed!
2025-02-23 19:09:27 -05:00
6ff155434c don't access uninitialized sf::Event 2025-02-23 15:09:32 -06:00
32e644b9f5 some actions shouldn't be recorded in every context 2025-02-23 15:09:32 -06:00
f601678f33 replay handle_victory must pass force 2025-02-23 14:09:52 -06:00
13532fe09a update unused key list 2025-02-23 09:38:26 -06:00
651348cf7e record debug end scenario 2025-02-23 09:38:25 -06:00
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
f0662902cb Merge pull request #637 from NQNStudios:fix-default-key
I have certain UI expectations, like for the Yes/No dialogs to all respond to both the Y or N key. If there's a default button that responds to Enter, I want it to do that without clobbering its existing hotkey.

Fix #600
2025-02-19 21:27:49 -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
090c2faa75 Merge pull request #626 from NQNStudios:fix-blue-text-again
Fix shop item highlighted text again

Fix #86 which was re-opened by the scale-aware text change.
2025-02-18 09:37:08 -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