Page 2 of 2

Posted: Fri Mar 18, 2005 6:33 am
by Cowboy
Looking at the code in the gtk client, it seems it does try to use
playername.keys on win32.

Ideally, we'd have functions like:

clear_key_bindings()

load_key_bindings(key set)

On client startup, it would load a default keyset.
It would then scan the keys directory, and turn each keyset found into a
menu option, so you could have an option like:

Key bindings -> (list of keysets to choose)

Selecting one, would clear the old bindings, and load the new ones.

You'd also have a save key bindings option, to save the current bindings, to
a certain name, or save them to be the default.

Does this seem logical? If so, I think I can manage to implement it (my C isn't
amazing, but the logic is simple enough I should be able to manage)

Thoughts?

Posted: Fri Mar 18, 2005 9:09 am
by cavesomething
I like the design, it seems very elegant. Might be best to not reload the menus during runtime though, a client restart being required seems reasonable IMHO.

Posted: Fri Mar 18, 2005 1:02 pm
by Aaron
should be after you log in, it promts you to load a keybing set. it should also have a link in the menu so we can call it for spellcasting.bind and fighting.bind. then we could also map it to keys, so F11 does spellcasting, and F12 will be my warior.

Posted: Fri Mar 18, 2005 1:26 pm
by cavesomething
The thing with mapping to keys is that then you need to have a multimodal system. My previous comment about vi was a joke, honest.

Anyway, emacs is a far better model for crossfire - it already can read mail :)

:wq

Posted: Fri Mar 18, 2005 3:39 pm
by Cowboy
Aaron wrote:should be after you log in, it promts you to load a keybing set. it should also have a link in the menu so we can call it for spellcasting.bind and fighting.bind. then we could also map it to keys, so F11 does spellcasting, and F12 will be my warior.
Should be easy enough, there would have to be a client command anyway, like:
keymap warrior

You could bind that to a key in a different keymap.
Might take some time, and cause a bit of confusion if you are binding keys to adjust
the key bindings, but the average player probably wouldn't bother, and those that
wanted to take the time, could enjoy the flexibility.

I'll start playing with this over the weekend, and see how it goes.