Commit Graph

167 Commits

Author SHA1 Message Date
f24283e0e2 location helper functions for camera work 2025-02-13 09:47:57 -06:00
c20dbbf88e DRY launch doc url 2025-02-07 09:51:45 -05:00
6fc55ed311 Fix multiple inconsistencies when saving (#550)
* debug_leave_town use same logic as normal town exit. fix #549
* Standardize all save party code paths

Fix #480
Fix #204
Fix #267

* remove file_in_mem now that it is redundant
* Print message when save file not chosen
2025-01-26 12:56:57 -05:00
37640bf349 fix compiler warnings 2025-01-20 09:41:29 -05:00
17a4c25d3c Merge pull request #534 from NQNStudios:fix-479
Fixing text buffer texture/font corruption (#479)

* #479 demonstrates that the contents of the text buffer are NOT irrelevant for reproducing bugs. So I set up recording/replay for the burma shave easter egg. This also makes an easy way to mess with the buffer state when debugging (just mash &/\*/&/\*/&/\* n times)
* When a replay throws an error, it puts up a showError() dialog. If the next action is a control_click, the system will try to click that control on the error dialog--which is totally divergent from the replay's intended behavior. So we should just stop replaying when an error happens.
* If you have a long replay and want to run it very fast, but then slow down when you get to the sequence that reproduces your bug, now you can add a `<change_fps>` to your replay to achieve that.
* Fixes for the 2 legacy replay errors that I opened recently

Fix #479 
Fix #532 
Fix #533
2025-01-20 09:10:17 -05:00
34785c3254 fix check_for_interrupt stubs in editors 2025-01-16 16:53:37 -06:00
62313e5bd6 allow interrupting replay 2025-01-16 16:53:34 -06:00
b3d8a64e79 start implementing scenario editor launch function 2025-01-15 23:05:52 -05:00
73e85836a3 we've been using the wrong define for mac detection 2025-01-15 23:05:52 -05:00
5936b1c579 global vector for extra scenario directories 2025-01-15 23:05:52 -05:00
e8bcd663c3 add text to leds for pc-alchemy-info.xml 2025-01-11 21:50:35 -05:00
6f0145c285 Revert "always combine_things() after identifying a held item"
This reverts commit 364712ef9e.
2025-01-08 23:06:44 -05:00
b174dd3fb5 always combine_things() after identifying a held item 2025-01-08 23:06:44 -05:00
65dbf8dc88 Merge pull request #519 from NQNStudios:sounds
* Changed shop purchase sound effects where Yum! definitely didn't fit. For alchemy, mage spells, and priest spells, I made the sound the same as the sound when you perform those actions. I figure this actually makes sense because the teacher would show you how to do the thing.
* For skill training, I made the sound be the same as leveling up. I think this makes sense.
* When something is too heavy to pick up, the "Argh!" labeled as 'Action Failure' in the editor sound picker makes a lot of sense--you tried to pick it up and were frustrated.
* I changed beep() so every platform just plays sound effect 1, the one labeled "low beep" [here](http://openboe.com/docs/editor/appendix/Sounds.html) that's labeled "Cancel target lock" in the editor picker. I think this reasonable.
* Removed `ding()` which was an unused alias for `beep()`
2025-01-07 21:34:08 -05:00
1384b4668d Replace pc editor event beeps with play_sound(1) 2024-12-27 11:18:17 -06:00
992fae0ed8 Revert "Mac editors fix Settings menu item"
This reverts commit 489f753ea12caceea45abdf3e1795262271b5143.
2024-12-03 09:44:40 -05:00
43fdc94f47 Mac editors fix Settings menu item 2024-12-03 09:44:40 -05:00
494f0e8533 Editors hide unwieldy scale options 2024-12-03 09:44:40 -05:00
e187f07307 Revert "make beep use a game sound"
This reverts commit 44881905cf.
2024-12-01 18:49:07 -06:00
44881905cf make beep use a game sound 2024-12-01 17:21:45 -06:00
dd347a5f79 replace the debug flag with a release flag 2024-11-30 17:58:42 -05:00
b441401475 wrap pollEvent() to guarantee all loops handle modifiers (#477) 2024-11-23 17:46:54 -05:00
9d972a3961 Pick the largest suitable default scale. Fix #468 (#472) 2024-11-19 19:17:15 -05:00
d76787932d Make check_for_intel() call automatically
This will avoid future repeats of the situation where it took way too long
to figure out why a unit test wasn't working
2024-09-21 20:57:22 -04:00
8a522bdcbf Fix #444: win-scons include Visual Studio debug symbols 2024-09-17 20:48:32 -04:00
71a9d11cd0 Gather all alchemy info into a single place 2024-09-10 22:18:59 -04:00
f7291f49c3 switch the order of 2 stupid things 2024-08-28 20:22:36 -04:00
bf86d8c3c3 Note another minor bug in Create New PC 2024-08-24 20:04:29 -04:00
d74b11aa31 Reform command-line handling to use Clara, which is bundled with Catch 2024-08-22 23:21:29 -04:00
30e583b1d4 Address compile warnings (Xcode 12) in the editors 2024-08-10 12:58:01 -04:00
3e331d7cfa Update PC Editor's version of give_help() to match game's version.
This fixes a dead store issue reported by the static analyzer and also addresses a now-obsolete TODO comment.
2024-08-10 12:32:41 -04:00
fc12092a1b replace rand() and srand(). fix #390 2024-08-08 13:43:29 -04:00
c251fee834 Fix graphics flickering/stretching on Windows (#367)
* DRY, standardized window top offset
* handle_splash_events() handle multiple events per frame
* accurate windows menubar height for multiple rows
* Windows filter a resize event triggered by the menubar
* windows expand small window to fit menubar
* splash screens draw in view rect, not window rect
2024-06-27 08:40:34 -04:00
e74f1e1ca0 standardize cross-platform command line args for the editors 2024-06-12 22:38:50 -06:00
4fa4f0b92b remove args and windows logic from all set_up_apple_events 2024-06-12 22:38:31 -06:00
80b6a6decf Undo e47b7e6a22
I forgot that each program already has a separate settings file. Duh!
2023-01-21 20:35:56 -05:00
584ba11a5f Apply the more advanced scaling options also to the editors 2023-01-21 20:33:28 -05:00
d88ec6a08d Fix cases of assigning get_float_pref() to a float variable
It's called "get_float_pref" because it returns a floating-point.
However, that floating-point is in double precision.
2023-01-21 20:18:16 -05:00
e47b7e6a22 Allow setting UI scale and sounds differently in each program 2023-01-21 19:10:28 -05:00
ALONSO Laurent
26d2328fe7 pc/scenario editor: add a basic preferences's menu. 2023-01-21 19:10:28 -05:00
e0418c685a Track modifier state in the main loops
Really fixes #291
2023-01-13 19:55:24 -05:00
8872f1aa25 Stop storing players as bare pointers - use unique_ptr instead
Should fix some potential memory leaks that were caught by static analysis
2023-01-12 21:26:08 -05:00
e3d6a4748e Dialog XML definitions are now loaded thru the resource manager 2023-01-07 11:59:42 -05:00
ALONSO Laurent
e2a4fcc788 OsX[AppleEvents]: try to avoid some crash by delaying the function which is called
by such events...

Fixes #292
2023-01-06 13:57:01 -05:00
f70f63eead Update and clean up the Visual Studio 2017 project files
These were very shoddily put together!
It seems the person who made them never really tried building
the editors or the tests.

Also included here are a couple of minor source changes that are needed
to make the project files build.
2023-01-05 19:29:16 -05:00
e2de459bd3 make include paths absolute within src 2023-01-05 09:28:57 -05:00
d860422c6d Update to TGUI 0.9.x 2022-12-29 10:18:06 -05:00
5b2561d034 Disable header maps in Xcode 12 2022-07-12 20:35:41 -04:00
f14c99f14b Split out cContainer, cLed, and cLedGroup into their own files 2020-12-21 17:16:15 -05:00
3ba6266cd4 Fix editors launching in the top left corner of the screen 2020-02-23 23:29:44 -05:00