Improved keyboard support

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
User avatar
pango
Posts: 1404
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Improved keyboard support

Post by pango » Fri Nov 02, 2018 9:14 am

Many things can be triggered from keyboard already, but sometimes I wish for more :)
Like <T> <H> to ride horse and <T> <F> to dismount, that kind of thing.
Shortcuts in menus:
- Yes/No
- Travel menu
- Talk/Sell/Repair
- ... (you name it)
Difficulty here may be to make those shortcuts translation-ready.
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1404
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Fri Nov 02, 2018 9:15 am

And the elephant in the room, but harder to implement...
Reaching for your spellbook or worse your list of trinkets and potions break the rhythm of combat:
- keyboard shortcuts for spells and magic items.
They're obviously too many to map them all, so assignments would have to be user-modifiable.
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1404
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Wed Sep 11, 2019 1:22 am

I started adding keyboard shortcuts to standard dialog boxen:
https://github.com/Interkarma/daggerfal ... rd-support

They're several "special" dialog boxen, rest, travel, so this is far from complete...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Cliffworms
Posts: 36
Joined: Sun Dec 30, 2018 6:24 pm
Location: Québec

Re: Improved keyboard support

Post by Cliffworms » Wed Sep 11, 2019 7:09 pm

Great ideas!

Using the "Use" key to quickly close loot/shopping/dialogue windows would be great too. :)
It would make for faster interactions, especially when you are asking around for rumors and have to ask several NPCs in a row.
Excuse the gloom.

User avatar
pango
Posts: 1404
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Wed Sep 11, 2019 8:32 pm

I added support for options menu, rest menu, transportation menu.
I used the same Yes/No shortcut settings for dialog boxen and daedra princes prompts.
Also, I moved hardcoded loading screen and travel map shortcuts to external settings.

I'm not sure how to enumerate all the menus that exist in game; Guild prompts, shop prompts, it seems they're plenty and I'm sure to forget some of them...

(Same URL): https://github.com/Interkarma/daggerfal ... rd-support
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 1404
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Improved keyboard support

Post by pango » Sat Sep 14, 2019 11:47 am

I borrowed the HotkeySequence class from the Automap, extended it to support both physical and virtual modifiers (say, not only have LeftControl and RightControl modifiers, but also Control that matches either), then switched modifiers logic to ANDed instead of ORed together...

So for example the Inventory categories can be mapped to F1, F2, F3 and F4, or Control-W for weapons, Control-C for clothing, etc.

https://github.com/Interkarma/daggerfal ... rd-support
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply