Interesting idea, and I made another example of this
It's very complex, and in very early development, there is a lot of crutches.
Because I'm a newb in DF hacking and every new line of code opens new undeground caverns in my knowledge.
All actions binded on
middle mouse click with autohotkey script. Or you can use any other way - AHK just send "Ctrl-Alt-Shift-F9" to DF window.
Middle click in sidebar:
- in main menu - any command, eg "z: Status" or "B: building" (pause/resume works too)
- on empty space - return to previous
- at "designations" - selects an desgn command
- at "building" - select building or construstions or machine components, also you can middle click on "+-*/" below to move cursor/page
- middle click in any other screen except dwarfmode just send ESC
Middle click on map shows context menu, where you can use left click to select an action.
Right/middle click or ESC hides menu
Here I click on map, then click first line "Designate dig"
How to install:
1. Append a line to your dfhack.init or just execute from console
keybinding add Ctrl-Alt-Shift-F9 mouse_concept
2. Download script and put it in {DF}\hack\scripts\
https://www.dropbox.com/s/hkwt0ybxbg5zz74/mouse_concept.lua3. AutoHotkey script, just download and execute
https://www.dropbox.com/s/yegcabqdy9aaocd/mouse_concept.ahk (81byte)
OR
https://www.dropbox.com/s/tk9kqj3opm06ic5/mouse_concept.exe (1 174 528 bytes)
Limitations:
DF 34.11 and DFHack 0.34.11-r5 (all from PeridexisErrant LNP r64)
And TWBT interprets viewscreen of context menu as text.
It's all made for proof of concept and fun, because hacking the DF is fun
PS: Thanks to all community for sources in, out and around DFHack - it's gave me a lot of ideas and inspiration.