Commit Graph

75 Commits

Author SHA1 Message Date
673de75c73 separate args to highlight text and item help button 2025-02-04 12:29:52 -06:00
ddad32458e render shop highlights at non-offset positions 2025-02-04 12:16:23 -06:00
081d237cbf talking and shopping: don't pass click events forward
Fix #567
2025-02-04 08:59:55 -06:00
3ad647c700 Fit preset talk word click rects. Fix #566 2025-02-04 08:48:18 -06:00
54bab68497 Allow custom 'no items' response 2025-01-22 19:58:09 -05:00
9f2ffd1ce0 fix shop and talk clicks falling through. Fix #544 2025-01-22 19:58:09 -05:00
c27789eaa0 When shops are empty, don't go into shop mode. Fix #216 2025-01-22 19:58:09 -05:00
5dcdd18b3c Merge pull request #537 from NQNStudios:screen-shift-keys
This makes it so arrow keys/numpad can control screen shift when it's available.

When this preference is enabled, #482 will not be an issue (Fix #482). But the player will also miss out on cases where adjacent targeting would be a good thing. I haven't done anything smart to determine whether one mode or the other is better on a case-by-case basis.
2025-01-22 09:28:28 -05:00
ead987fff7 default to legacy directional key behavior 2025-01-20 12:50:49 -06:00
1c1d00f4af implement the preference with an LED group for clarity 2025-01-20 09:13:36 -06:00
37640bf349 fix compiler warnings 2025-01-20 09:41:29 -05:00
dbe92c00b5 Implement a preference for this feature 2025-01-18 19:09:20 -06:00
c16807690c Note about a TODO 2025-01-07 21:35:59 -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
2b01a18bb3 make text-size an optional attribute of button 2024-12-03 09:44:40 -05:00
e409464a97 hide main window scale options that won't fit 2024-12-03 09:44:40 -05:00
925306825b match reset help button text size to leds 2024-12-03 09:44:40 -05:00
5b4cef4bc7 fix event return value 2024-12-03 09:44:40 -05:00
34dd31cf51 Remove 3 obsolete settings 2024-12-03 09:44:40 -05:00
1375a2e6b1 turn resethelp pref led into a button with a confirmation dialog 2024-12-03 09:44:40 -05:00
6a26229ab6 only valid ingame beep use a sound 2024-12-01 18:52:09 -06:00
b4848cf1fe D flag for shops is now ignored 2024-12-01 18:54:03 -05:00
2876993c78 Better sounds for purchases 2024-12-01 17:21:38 -06:00
9d972a3961 Pick the largest suitable default scale. Fix #468 (#472) 2024-11-19 19:17:15 -05:00
9fed4fc799 Recharge: Melt chance and shop customization
For the recharge spell, there is now a chance for the item to melt if you try to charge it too much.
For recharge shops, it is now possible to configure how much they are willing to charge an item,
as well as how many charges are given per payment.
2024-09-10 22:18:59 -04:00
753dbbcc59 Add a new dialogue mode to recharge items
This is currently useless, as exhausting an item's charges currently deletes it, but it is part of a work in progress
2024-09-10 22:18:59 -04:00
846789df73 record and replay buying and info of shop items 2024-09-03 00:08:26 -04:00
3b028e1717 fix #418 2024-09-03 00:08:26 -04:00
342ec3a17e record and replay end_shop_mode 2024-09-03 00:08:26 -04:00
7a5c865779 record and replay dialog choices 2024-09-03 00:08:26 -04:00
7791380a9a refactor dialogue word button on/off colors to constants 2024-09-03 00:08:26 -04:00
9b862d848f record dialogue and shop help buttons 2024-09-03 00:08:26 -04:00
a1962f2792 fix #420 2024-08-30 20:36:10 -04:00
da3eb3aad2 Cure Dumbfounding at a healer shop no longer removes enlightening 2024-08-27 09:35:30 -04:00
ccc53058f9 Fix a couple more uses of 0 as nullptr 2024-08-24 20:15:15 -04:00
c0df7c3f53 record and replay tip of the day 2024-08-24 20:04:29 -04:00
92870587a8 record and replay preferences menu item 2024-08-24 20:04:29 -04:00
39c85e7f3c limit framerate of controls' nested event loops 2024-08-22 09:47:06 -04:00
23e0db9922 Add enum for creature status 2024-08-21 23:47:44 -04:00
20c53fb2ed Fix crash if you cancel the scenario selection 2024-08-21 23:47:44 -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
f8d319c550 replay the scenario list 2024-08-09 02:16:07 -04:00
c691b908a6 Only hide left/right buttons for empty vector 2023-02-04 18:54:07 -05:00
b03c34396d Split quest flags into two separate boolean values 2023-01-22 18:56:50 -05: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
c02dde4925 talk: try to make "Go Back" and the keys work again,
shopping: try to make work again,
2023-01-21 22:21:52 -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
577ff1a405 Don't show an 'other' option for UI scale unless it's actually selected 2023-01-21 20:15:58 -05:00
ALONSO Laurent
dda95397ec UI scaling: add a different scaling for minimap + add more scaling values... 2023-01-21 19:53:27 -05:00