Having a Menu for Default Ingame Actions


Here’s what I’ve been up to…

This is actually the idea Kevin Granade had written about, and I dunno if it has been discussed since. Methinks it would be cool to have a different route to default actions than via hotkeys/assignment. If there was something like this, maybe…:

Enviroment: 1 - open (o), close (c) 2 - smash (s), butcher (B) 3 - examine (e), listitems (V) 4 - pickup (, g), grab (G) 6 - chat (C) 7 - look (; x) peek (X) 8 - advinv (/)

Inventory & Quasi-Inventory
1 - inventory (i), organize (=), compare (I)
2 - apply (a), apply_wielded (A)
3 - wield (w), reload (r), unload (U)
4 - wear (W), take_off (T),
6 - eat (E), read (R),
7 - throw (t), fire (f), fire_burst/select_fire_mode (F)
8 - drop (d), drop_adj (D)
9 - bionics (p), sort_armor (+)

Long Term, Special, Info
1 - wait (|), sleep ($), player data (@)
2 - craft (&), recraft (-), disassemble ( ( )
3 - construct (*)
4 - control_vehicle (^)
6 - safemode (!), autosafe ("), ignore_enemy (')
7 - save (S), quit (Q), help (?)
8 - map (m), missions (M), factions (#)
9 - kills ( ) ), morale (v), messages (P)

You’re guessing it’s about numkey bindings, and it is - there’s only a small problem with calling the menu gadget. Currently there’s a while loop that’s waiting for a close (window) gadget event, altough it’s closed with ESC key really. This should be a #include item within the loop, called and closed with the same key; NumPad(5) should circle between three sets of options, while the other keys aren’t really waited for because there’s a listen event of sorts. I was thinking of parsing the current selection with NumPad (Enter) as the default; for example, if you hit NumPad(1) on the first menu_set, hitting it again selects the open (o) option, just as if you hit enter while pointing at it. Hitting ESC should exit this loop, too.
The only real issue is with the timer; one must exist to render the animation properly. Right now it’s global, but I’m sure that you know what I’m babbling about here if you’re reading this. I know that timed events are the bane of all apps, so I need some help with this also. Also, I want to discuss if Cataclysm_DDA needs this, and is this the proper measure; I was thinking the current set of CataDDA options should appear once NumPad(0) is hit in the bottom-right portion of the sidebar, being that it’s only 250 pixels w/h. Those revised icons you see are the actual pixels you could see in-game, and those four frames create a “blinking” animation.

Fire away.

Hrm, this didn’t spark much conversation sadly :expressionless: I’ve suggested it before, basically borrowing off of Elona’s radial wheel design, and I always imagined it’d be mapped to “z” key… I’m interested because I dislike all those important commands being shift+hard-to-reach number keys along the top…

Mmmm, radial keypad menu… keypad is good if you have it, but needs to be remappable of course, and considering that we already use vikeys, it’s a no brainer to default to:

7/y  8/k  9/u

4/h  5/?  6/l

1/b  2/j  3/n

I should… just do this, it’s actually a fairly simple thing to code (the hard part will be making the menu commands remappable, but even that isn’t super hard I think).
Good point about having different menus depending on the context, I hadn’t actually thought ahead that far.

[quote=“Kevin Granade, post:3, topic:4243”]Mmmm, radial keypad menu… keypad is good if you have it, but needs to be remappable of course, and considering that we already use vikeys, it’s a no brainer to default to:

7/y  8/k  9/u

4/h  5/?  6/l

1/b  2/j  3/n

I should… just do this, it’s actually a fairly simple thing to code (the hard part will be making the menu commands remappable, but even that isn’t super hard I think).
Good point about having different menus depending on the context, I hadn’t actually thought ahead that far.[/quote]
What keyboard is that on? Because on QWERTY wouldn’t it be more like this:

7/u 8/i 9/o 4/j 5/k 6/l 1/b 2/n 3/m

It’s not a matter of keyboard layout, that’s the standard vikeys layout, which we use for default movement. Yea the diagonals are off to the left, but I think that’s better since you’re using index and middle finger to hit them instead of middle and ring finger.
It should be remappable if you like anyway.

[quote=“Kevin Granade, post:5, topic:4243”]It’s not a matter of keyboard layout, that’s the standard vikeys layout, which we use for default movement. Yea the diagonals are off to the left, but I think that’s better since you’re using index and middle finger to hit them instead of middle and ring finger.
It should be remappable if you like anyway.[/quote]

Ah. This is why I don’t play on my laptop. That makes much more sense, anyway, I’ll try and see how that works rather than using two hands on the top row of numbers on my laptop… I do like the idea of a menu, to avoid having to move my hands all the place for weird key combinations.