Commit Graph

77 Commits

Author SHA1 Message Date
1617f3af82 TODOs on menu items not recorded/replayed 2024-08-24 20:04:29 -04:00
92870587a8 record and replay preferences menu item 2024-08-24 20:04:29 -04:00
4fcb0ba417 record and replay new party menu item 2024-08-24 20:04:29 -04:00
a7c1d757be record and replay PC deletion 2024-08-24 20:04:29 -04:00
47ceeabddc move real deletion behavior into drop_pc(), keep buffer messages 2024-08-24 20:04:29 -04:00
2513fc113b record and replay several help dialogs 2024-08-24 20:04:29 -04:00
9d31dd3589 record arrow button clicks (cosmetic) 2024-08-24 20:04:29 -04:00
0e87c730c6 Add a replay speed option so that we can watch the replay in action. 2024-08-22 23:21:29 -04:00
61bf8d327e Inserting a timestamp into the filename isn't great for testing, let's make it optional 2024-08-22 23:21:29 -04:00
d74b11aa31 Reform command-line handling to use Clara, which is bundled with Catch 2024-08-22 23:21:29 -04:00
8801d17ed5 Fix crash due to erroneous false load AppleEvents when command-line arguments are passed
The fix is just to initialize the dialog subsystem AFTER the main window, causing the AppleEvent handler to output the load failure to the log instead of showing a dialog
2024-08-22 21:53:27 -04:00
39c85e7f3c limit framerate of controls' nested event loops 2024-08-22 09:47:06 -04:00
fe4821cb4e fix CPU spike during intro splash screens 2024-08-22 09:47:06 -04:00
f400a5b7de Address a bunch of dead store issues found by the static analyzer.
Pretty much all of these fall into one of two categories:

* Variables that are obviously unneeded and in many cases completely unused – probably remnants of old code that was rewritten. These ones were deleted.

* Variables that look like they should be used but aren't. These ones have been suppressed, with a TODO message added as a reminder to investigate them in more detail later.
2024-08-10 12:22:05 -04:00
104f6d6b0b Address some compiler warnings (Xcode 12)
* Missing prototypes
* Unused function parameters
* Float comparison in preferences
2024-08-10 12:06:11 -04:00
4e6306b110 record and replay mods on startup buttons. fix #394 2024-08-09 19:47:15 -04:00
a13e7cdc3b replace atoi with std::stoi 2024-08-09 02:06:31 -04:00
fc12092a1b replace rand() and srand(). fix #390 2024-08-08 13:43:29 -04:00
f9ccd2bb9a fix #148 2024-08-03 12:46:09 -04:00
09b2c0c822 move forward-declarations into boe.actions.cpp 2024-08-03 12:30:08 -04:00
0554149859 deque use non-const type parameter 2024-08-03 12:30:08 -04:00
bc89dad159 record and replay quitting the app 2024-08-03 12:30:08 -04:00
cc5823bbcd de-duplicate quitting logic 2024-08-03 12:30:08 -04:00
27db98a634 record/replay giving items 2024-08-03 12:30:08 -04:00
f3f1124bef record and replay dropping items 2024-08-03 12:30:08 -04:00
43350e4e09 handle several one-step actions 2024-08-03 12:30:08 -04:00
1e68d32543 DRY retrieval of some types from replay action 2024-08-03 12:30:08 -04:00
40cec6e861 move replaying into the event loop 2024-08-03 12:30:08 -04:00
d9cf1c8fae record and replay switching active PC 2024-08-03 12:30:08 -04:00
afca0dc85d mac replay preferences 2024-07-31 19:58:19 -04:00
3c3a105ae4 make pop_next_action() return a reference 2024-07-28 17:07:33 -04:00
b7692c2fa6 use specific stringstream types 2024-07-28 17:07:33 -04:00
756cf658d6 when replaying, don't open file browsers 2024-07-28 17:07:33 -04:00
3744005f68 record and replay startup button clicks 2024-07-28 17:07:33 -04:00
d23d5c5857 replay movement actions 2024-07-28 17:07:33 -04:00
1640ba9a79 no spaces after ifs 2024-07-28 17:07:33 -04:00
945a4f14a0 fix command-line arg docs 2024-07-28 17:07:33 -04:00
047c471607 finish_load_party() 2024-07-28 17:07:33 -04:00
b749b6377a put decoded replay save in tempDir 2024-07-28 17:07:33 -04:00
31dcb26d9d WIP encode and decode save files in action logs 2024-07-28 17:07:33 -04:00
56169abaf5 Reorganize global replay code
Theoretically, the scenario and character editors could also have replay systems
2024-07-28 17:07:33 -04:00
196c5d784a allow providing base filename for log recording 2024-07-28 17:07:33 -04:00
cbfddc26ab pre-declare action log vars/functions for global use 2024-07-28 17:07:33 -04:00
669d7dcb5c record and replay srand() in an action log 2024-07-28 17:07:33 -04:00
4fa4f0b92b remove args and windows logic from all set_up_apple_events 2024-06-12 22:38:31 -06:00
cb62505e8d reorder init calls to fix file loading 2024-06-12 15:35:54 -06:00
a45b34ec42 all platforms load party from command line 2024-06-12 12:28:42 -06:00
5bce71d59f Make implicit switch fallthrough an error in the Xcode project and fix all places that do it
Since we can't directly use C++11 attributes, I've chosen BOOST_FALLTHROUGH to annotate intentional fallthroughs.

Thanks to @fosnola for spotting a missing break, which triggered this.
2023-01-21 22:39:33 -05:00
ALONSO Laurent
c4e9baf854 UI scaling: try to also scale the mini_map 2023-01-21 19:21:20 -05:00
e0418c685a Track modifier state in the main loops
Really fixes #291
2023-01-13 19:55:24 -05:00