Improved keyboard support

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

Improved keyboard support

Post by pango »

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.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Improved keyboard support

Post by pango »

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.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Improved keyboard support

Post by pango »

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...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Improved keyboard support

Post by Cliffworms »

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.

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

Re: Improved keyboard support

Post by pango »

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
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Improved keyboard support

Post by pango »

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
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
jayhova
Posts: 923
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Improved keyboard support

Post by jayhova »

I have suggested a number of times that the function keys that switch screens (Inventory and character sheets, etc.) be reachable from spaces other than the main screen. For instance you can go to the character sheet and then go to your inventory, spellbook, log or history. I seems reasonable that if there is a button to go to these pages from the character sheet, you should be able to go to these screens via a keyboard shortcut. It also seems reasonable that you not be forced to go back to the main screen afterwards. You should rather be able to move between the screens via shortcut keys at will.
Spoiler!
Image
Remember always 'What would Julian Do?'.

Post Reply