4bd320e6a5
make label of debug give item 'identified' clickable
2025-05-11 10:50:08 -05:00
df446032a8
magic numbers out of show_get_items()
2025-05-11 10:50:00 -05:00
bb4aae1285
move get_str and get_strs into universe (shared code)
2025-05-11 10:49:35 -05:00
fe57c10173
move custom_choice_dialog into shared code
2025-05-11 10:49:35 -05:00
07c15dc1e7
Fix window focus bugs for Windows
2025-05-11 10:49:31 -05:00
3ba9259482
Remember window positions as preferences
2025-05-11 10:49:21 -05:00
2c0a513107
Debug give item: remember the last
2025-05-11 10:49:20 -05:00
3e1c2a9fb1
Debug give item: allow giving as unidentified
2025-05-11 10:49:19 -05:00
f633d6b9e2
rename variable in drop_item
...
it was probably copy/pasted from give_item and not changed
2025-05-11 10:49:18 -05:00
f6f58a4370
fix item duplication bug I caused
2025-05-11 10:49:18 -05:00
8b14519fa5
Fix funny message: can't give to dead pcs because 'no item slot'
2025-05-11 10:49:16 -05:00
3af79e80d3
Select-pc skill highlighting: don't count dead ones
2025-05-11 10:49:15 -05:00
1702f795cf
Lockpicking limit choices to pick-holding PCs
2025-03-30 11:51:07 -05:00
f9c05815fc
show skill levels for bash/pick selection, highlight best
2025-03-30 11:51:06 -05:00
1a85fc25ae
Give item: more sensible button selection
2025-03-30 11:50:59 -05:00
c63bbd96dc
Make cPlayer::give_item() return the reason for failure
2025-03-19 19:31:32 -05:00
1c99e963d4
Comment on something I misunderstood
2025-03-19 19:31:26 -05:00
07bbf1b8ef
Refactor mode integer for select_pc (see calref#699)
2025-03-19 19:31:26 -05:00
03e5ee59c6
select_pc() allow_choose_all argument, eliminate overloaded version
2025-03-19 19:31:21 -05:00
3beda3bd59
get_num_response debug actions: allow canceling
2025-03-19 19:31:17 -05:00
079e3d721f
Fix steal-item dialog breaking get-items modal status
2025-03-16 14:03:53 -04:00
Nathan R
598fd4836a
Fixed up: Move file-static RenderWindow and RenderTexture instances inside functions to fix GL race condition on startup ( #682 )
2025-03-06 19:40:40 -05:00
bb3937d40a
New feature: dialogs with pictures can animate
2025-03-05 19:27:10 -05:00
cff8200f02
make give/take gold/food DRY
2025-02-16 21:41:47 -05:00
6916752a8a
fix crash when no strings defined
2025-02-16 19:33:58 -06:00
c4e1ff7f0d
Make getting scenario strings DRY
2025-02-16 19:33:52 -06:00
46c102257b
make give_help()'s force_help a bool arg
2025-02-15 11:19:44 -05:00
392ad5eac0
get_num_response allow pass choice names
2025-02-08 23:11:57 -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
bab6b2f8f8
fix map scale
...
Somewhere along the line, I broke the map scale so it was using UI scale.
2024-12-03 09:44:40 -05:00
4c27f731f5
play action failed grunt when item too heavy
2024-12-01 17:21:45 -06:00
9d972a3961
Pick the largest suitable default scale. Fix #468 ( #472 )
2024-11-19 19:17:15 -05:00
23e0db9922
Add enum for creature status
2024-08-21 23:47:44 -04:00
0a3aa97b59
Fix #318
2024-08-01 23:11:27 -04: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
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
ALONSO Laurent
dda95397ec
UI scaling: add a different scaling for minimap + add more scaling values...
2023-01-21 19:53:27 -05:00
ALONSO Laurent
c4e9baf854
UI scaling: try to also scale the mini_map
2023-01-21 19:21:20 -05:00
2d1bbe0058
Move get_item_interesting_string() into the cItem class
2023-01-19 09:32:07 -05:00
9536b79096
Reverse order of conditions to avoid integer overflow giving a fals positive
...
Thanks to @fosnola for spotting this.
2023-01-18 20:56:26 -05:00
e3d6a4748e
Dialog XML definitions are now loaded thru the resource manager
2023-01-07 11:59:42 -05:00
cb73719af3
Make item abil_data a bit more readable
...
A two-element array is an ugly thing to behold
2023-01-06 02:13:46 -05:00
5b2561d034
Disable header maps in Xcode 12
2022-07-12 20:35:41 -04:00
72bd8265fa
Game modes cleanup
...
- Fix some cases where modes were still referenced by number
- Replace most cases of mode range-comparison with is_out(), is_town(), and/or is_combat()
There could be some minor errors in the replacements.
2020-02-04 00:02:08 -05:00
511b1858a3
Fix Windows build and tests
2020-02-02 22:32:33 -05:00
86d2574aed
Some refactor of special node system
...
- Context type (town/out/scen) is now an enum
- Don't expose internals in the header
- Use a state struct to pass things around through the system
- Fix special AFFECT_DEADNESS case for default party selection
- Maybe other bits and pieces?
2020-02-02 19:12:45 -05:00
060be4dd42
Remove some extern data declarations that didn't exist anymore (and weren't used)
2019-11-24 20:28:52 -05:00
4f785e2650
Use enums for most of the rest of the game constants.
...
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
4ad85936d3
Fix use of a static bitset to record whether items (in a dynamic vector) have been taken
2019-11-23 12:31:30 -05:00
c2ce2a2cd1
Split up the graphtool files
2017-04-14 15:43:07 -04:00