Commit Graph

2406 Commits

Author SHA1 Message Date
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
14943493dc Show combat buffer message before loading starts 2025-05-11 10:49:17 -05:00
86ca8c1173 watch cursor when outdoor combat is preparing 2025-05-11 10:49:17 -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
8f95a9311e Allow scaling rectangle delegates by floats
This fixes talk-mode word hit boxes for 1.5x UI scale
2025-05-06 15:24:13 -05:00
da653a4334 fix file picker location preview in town 2025-05-06 15:24:13 -05:00
9928608199 pacifist gray LEDs for spells that harm. Fix #711 2025-05-06 15:24:13 -05:00
447f9739a4 Remove RepeatRoomDescriptions, which never did anything
Fix #712
2025-05-06 15:24:13 -05:00
e7fe2a6546 remove unused rectangles in draw_targeting_line() 2025-05-06 15:24:13 -05:00
48d30f2038 interesting_string() don't add . to empty 2025-05-06 15:24:13 -05:00
b25b851055 former_spell must be a reference everywhere std::bind uses it 2025-05-06 15:24:13 -05:00
80e045cfa3 3-choice dialogs make OK/Leave always leftmost" 2025-05-06 15:24:13 -05:00
6666a2753f custom choice dialogs Stay/Leave can't both use Enter Key.
And since depending on context they could both mean 'Cancel' but 'Leave' could be a positive action in some contexts, I've just given them no keys.
2025-05-06 15:24:13 -05:00
947787f5c6 fix a crash in some pacifist spell checks 2025-05-06 15:24:13 -05:00
fe69f57345 conveniently disable error catching to keep callstacks 2025-05-06 15:24:13 -05:00
72ff67ceab dialogs ignore <error> actions 2025-05-06 15:24:13 -05:00
df0e3cd723 copy constructor and swap() must copy status
Fix calref#710
2025-05-06 15:24:13 -05:00
d89d149d5b Skip reading more things for file previews 2025-05-06 15:24:13 -05:00
85f49d15ae fix crash when monster targets PC with field spell 2025-05-06 15:24:13 -05:00
02f7828a08 map ctrl+f to key_find (which does nothing) 2025-03-30 11:51:15 -05:00
dcf6bb63d8 Fix how fatal errors are recorded 2025-03-30 11:51:15 -05:00
bf6a314433 Fix thrown/missile weapon crash 2025-03-30 11:51:14 -05:00
9e67aa09ce Fix logic of the 'Newer' autosave indicator 2025-03-30 11:51:14 -05:00
f0f08ae5a8 Replay test scenarios can be unpacked. Fix #603 2025-03-30 11:51:13 -05:00
c53b53d938 if file browser canceled, don't save replay log 2025-03-30 11:51:13 -05:00
8af5eb6c38 dialogs can have a button respond to Escape
I'm planning to make it so the Enter key will never cancel a yes/no dialog. To do this, I'm adding an Escape button to dialogs. So cancel/accept keyboard shortcuts will be predictable and intuitive. Dialogs that require extra confirmation will have a 'really confirm' LED.
2025-03-30 11:51:11 -05:00
8242c1e4bd replace buffer print which doesn't refresh with LOG() 2025-03-30 11:51:11 -05:00
98debe66fe Change logic of restart-game confirmation 2025-03-30 11:51:10 -05:00
967ef41ba1 Fix hitbox of special item use button 2025-03-30 11:51:10 -05:00
7cce42ce12 Scenario editor can launch unpacked scenario 2025-03-30 11:51:09 -05:00
fc36dcfd55 another --scenario startup case where repositioning not needed 2025-03-30 11:51:09 -05:00
1ebdb9612c game feature flags match scenedit feature flags 2025-03-30 11:51:08 -05:00
9ba0a9437f buffer messages for wrong-context L or b 2025-03-30 11:51:08 -05:00
00c0103616 Alchemy select_pc highlight highest skill 2025-03-30 11:51:08 -05:00
1702f795cf Lockpicking limit choices to pick-holding PCs 2025-03-30 11:51:07 -05:00
650f16bf27 disarm traps highlight skill 2025-03-30 11:51:06 -05:00
f9c05815fc show skill levels for bash/pick selection, highlight best 2025-03-30 11:51:06 -05:00
1c11810f58 fix crash in string picker search feature 2025-03-30 11:51:05 -05:00
53bb8a6d26 focus the search field when showing 2025-03-30 11:51:05 -05:00
f26a9e9c32 Fix awkwardness of Enter key in string picker
Search field starts out hidden. When the button is
clicked, the field and other controls appear, and
the button takes over the enter key. Ctrl+Enter
clicks okay (so if search is not opened, either
Enter OR Ctrl+Enter will click okay)
2025-03-30 11:51:04 -05:00
aa029f6bdc Ctrl+f in text field should not type 'f' 2025-03-30 11:51:04 -05:00
a17f5b1a7c String picker search field. Fix #701 2025-03-30 11:51:03 -05:00
341c285a39 Refactor allows cLedGroup leds to use relative positioning 2025-03-30 11:51:01 -05:00
1a85fc25ae Give item: more sensible button selection 2025-03-30 11:50:59 -05:00
85baeb454c When shopping, allow stacking without empty slot 2025-03-19 19:31:33 -05:00
c63bbd96dc Make cPlayer::give_item() return the reason for failure 2025-03-19 19:31:32 -05:00
599f1030f2 Allow PC to accept item that will stack, even if slots full 2025-03-19 19:31:32 -05:00
cb73d5d7f6 debug give allow overloaded weight 2025-03-19 19:31:31 -05:00