Commit Graph

3214 Commits

Author SHA1 Message Date
763154bdce fixup! assign escbtn and defbtn appropriately 2025-03-27 15:22:20 -05:00
3e12e37b54 if file browser canceled, don't save replay log 2025-03-27 14:55:24 -05:00
3e3b2e1e6f assign escbtn and defbtn appropriately
Behaviorally: This change makes it so that Enter will never cancel
a dialog, unless that dialog only contains info to be read. Escape
will never unpredictably be treated as Enter. And some dialogs without
Escape to cancel, now can be canceled with Escape.

A lot of this just refactors dialogs to define the cancel button
at the top, not as a hotkey on a cancel button deep in the XML.
I think this makes enter/escape behavior in dialogxml files more
legible at a glance.
2025-03-27 14:46:57 -05:00
1b65be5ab4 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-27 13:26:36 -05:00
3ab3171287 replace buffer print which doesn't refresh with LOG() 2025-03-27 13:10:07 -05:00
ebf69b318c all affirmative buttons on right side. Fix #702 2025-03-23 18:52:02 -05:00
af30a2a50b note in dialog.xsd for doc file I can't ever find 2025-03-23 15:53:53 -05:00
c3f459e254 Change logic of restart-game confirmation 2025-03-23 15:53:34 -05:00
c0d66124a4 Fix hitbox of special item use button 2025-03-21 14:37:27 -05:00
bffbdcad99 Scenario editor can launch unpacked scenario 2025-03-21 13:46:44 -05:00
cb08edba64 another --scenario startup case where repositioning not needed 2025-03-21 13:46:07 -05:00
f4c32094cf game feature flags match scenedit feature flags 2025-03-21 13:36:40 -05:00
4dc0938bef buffer messages for wrong-context L or b 2025-03-21 10:48:23 -05:00
e44e21ec4c Alchemy select_pc highlight highest skill 2025-03-21 10:38:48 -05:00
cae5310c85 Lockpicking limit choices to pick-holding PCs 2025-03-21 10:36:57 -05:00
984d64b81a more room for extra info in select-pc dialog 2025-03-21 10:35:56 -05:00
2935200f4e more succint skill hint 2025-03-21 10:35:33 -05:00
4fa924c852 disarm traps highlight skill 2025-03-21 09:45:41 -05:00
1f63f68e2d show skill levels for bash/pick selection, highlight best 2025-03-21 09:38:09 -05:00
6b40bbf549 1-4 keyboard shortcuts in save picker 2025-03-21 09:36:40 -05:00
f3e8e641d9 fixup! focus the search field when showing 2025-03-21 08:47:10 -05:00
cc0c8b70b2 fix crash in string picker search feature 2025-03-20 20:53:04 -05:00
f3dba40b74 focus the search field when showing 2025-03-20 20:52:50 -05:00
01a5463f75 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-20 20:40:09 -05:00
2b62df57fa Ctrl+f in text field should not type 'f' 2025-03-20 19:58:40 -05:00
ca66ca20d1 fixup! String picker search field. Fix #701 2025-03-20 19:58:17 -05:00
ec4f8ad56e fixup! Refactor allows cLedGroup leds to use relative positioning 2025-03-20 17:36:36 -05:00
ae6f0d276e String picker search field. Fix #701 2025-03-20 16:38:09 -05:00
f05d2c2bb2 relativize choose-string.xml 2025-03-20 09:46:47 -05:00
ca3e77a0c3 Refactor allows cLedGroup leds to use relative positioning 2025-03-20 09:35:52 -05:00
593890337b fixup! Give item: more sensible button selection 2025-03-20 08:22:08 -05:00
99eb9962b5 Give item: more sensible button selection 2025-03-19 20:22:23 -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
783b19e429 Make all scenarios match VoDT arrow/bolt values 2025-03-19 19:31:31 -05:00
460e821700 ignore autosaves of replay parties 2025-03-19 19:31:30 -05:00
ad53a2e4a3 Make preset arrows and razordisks stack with scenario arrows and razordisks 2025-03-19 19:31:29 -05:00
da576f38e2 add target lock to a special spell I missed. 2025-03-19 19:31:27 -05:00
03e4344598 Allow checking if give_item() will succeed 2025-03-19 19:31:27 -05:00
bed263e720 expose INVENTORY_SIZE to boe.text.cpp 2025-03-19 19:31:27 -05:00
e1b2c27c57 allow checking if combine_things() will create free space 2025-03-19 19:31:26 -05:00
ea47359739 No magic number for item window size 2025-03-19 19:31:26 -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
7980af7c31 Reorder more field layering 2025-03-19 19:31:26 -05:00
8ae88a4ce6 apply target lock to offensive spells as default-off cSpell field 2025-03-19 19:31:25 -05:00
8ea34d434d Use std::tie to unpack bounds
Co-authored-by: Celtic Minstrel <CelticMinstrel@users.noreply.github.com>
2025-03-19 19:31:25 -05:00
01ad3c5622 some targeted spells shouldn't shift screen onto enemies 2025-03-19 19:31:25 -05:00