Commit Graph

1652 Commits

Author SHA1 Message Date
4c383d116c re-arrange and align HP/SP 2025-01-20 13:44:47 -06:00
4260d41bf6 colorize hp and sp in casting menu 2025-01-20 13:44:42 -06:00
daecca4abe dialogxml parseColor use a map built from Colours constants
parseColor() was doing a big if-else with string comparisons,
and returning values that differed from our Colours constants.
Since I couldn't find an instance of the colour attribute in our
existing xml, it should be safe to do away with those conflicting
values and refactor parseColor() to match the constants
and use cleaner code.
2025-01-20 13:44:31 -06:00
c7ce84def2 More intuitive coloration in spell menu 2025-01-20 13:42:20 -06:00
0ef3ad81d9 Recast hint for spellcasters 2025-01-20 13:42:03 -06:00
c38c79b12b no default repeat spells & buf message when none stored
Fix #535
2025-01-20 13:41:49 -06:00
37640bf349 fix compiler warnings 2025-01-20 09:41:29 -05:00
f545ce5333 slight simplification 2025-01-20 09:33:13 -05:00
3a5a02202b print remaining enemies when can't end combat 2025-01-20 09:29:21 -05:00
94b63dee49 when checking if outdoor enemies are alive, count types 2025-01-20 09:29:21 -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
0ae90ea695 prevent out-of-bounds on empty name string 2025-01-18 15:00:01 -06:00
62ddf3d0b3 The bug was caused by newline in empty PC name. fix #479 2025-01-16 16:53:37 -06:00
34785c3254 fix check_for_interrupt stubs in editors 2025-01-16 16:53:37 -06:00
df02f79ab8 fix explosions breaking old replays 2025-01-16 16:53:36 -06:00
afa79bcc5d prevent edge case in interrupting replays 2025-01-16 16:53:36 -06:00
78e3c46b05 don't check for interrupt in confirmation dlg 2025-01-16 16:53:35 -06:00
62313e5bd6 allow interrupting replay 2025-01-16 16:53:34 -06:00
2d824e869e Encode startup buttons as string in replays, fix #533 2025-01-16 16:53:27 -06:00
3455327363 Mac replay ignore obsolete settings (fix #532) 2025-01-16 12:09:10 -06:00
3daf1d55e4 Update source files required for scenario editor target 2025-01-15 23:10:05 -05:00
1a2c0ed07b editor validate the debug party preference 2025-01-15 23:05:53 -05:00
041b08a9af don't overwrite debug party from editor 2025-01-15 23:05:53 -05:00
5d1532afda all launch types can reset story 2025-01-15 23:05:53 -05:00
897047a566 use the exe-args format for child process 2025-01-15 23:05:53 -05:00
832ceffe8e launch from start: restart scenario if already in it 2025-01-15 23:05:53 -05:00
80aa0341a1 properly force string prefs to be quoted on win/linux 2025-01-15 23:05:53 -05:00
aa58b3cb41 push_front() doesn't exist -- use insert() 2025-01-15 23:05:53 -05:00
2c5fe3485f include fileio.hpp 2025-01-15 23:05:53 -05:00
adb4b8a027 fix template syntax 2025-01-15 23:05:53 -05:00
056fbfe393 use existing string quoting functions 2025-01-15 23:05:53 -05:00
4eee43cd7e make eLaunchType enum class 2025-01-15 23:05:53 -05:00
fa2eb743f9 allow setting the debug party with file browser 2025-01-15 23:05:53 -05:00
5d56415299 pass debug party preference to launch command 2025-01-15 23:05:53 -05:00
3b3d4fd4f8 catch on the same line 2025-01-15 23:05:53 -05:00
1bf9c71865 get_ and set_ string prefs windows/linux 2025-01-15 23:05:53 -05:00
59de48f25e Make scenedit prefs accessible on Windows 2025-01-15 23:05:53 -05:00
491857d0f9 clear error when working directory is wrong 2025-01-15 23:05:53 -05:00
213b61e7ec hack tinyxml to save/load string prefs win/linux 2025-01-15 23:05:53 -05:00
5368b89b6d add extra launch menu items for windows 2025-01-15 23:05:53 -05:00
64980a80f0 fix compiler conditionals 2025-01-15 23:05:53 -05:00
11b9683252 make LOG_VALUE work with polynomial expressions 2025-01-15 23:05:53 -05:00
9739ab2f61 add 2 more launch types 2025-01-15 23:05:53 -05:00
3db902ea37 clarify arg error messages 2025-01-15 23:05:53 -05:00
11767f553d more understandable prompt to save 2025-01-15 23:05:53 -05:00
bf08f03b52 put cases on same line 2025-01-15 23:05:53 -05:00
8e3256a5b9 use UTF-8 for string preferences 2025-01-15 23:05:53 -05:00
aea043a9e7 rewrite optional match logic to satisfy mac compiler 2025-01-15 23:05:53 -05:00
0742fe5fe0 error message suggest non-paren location 2025-01-15 23:05:53 -05:00
d7d06db50d parse location with optional parens 2025-01-15 23:05:53 -05:00