2014-12-15 05:11:23 -07:00
|
|
|
-- prints info on assigned hotkeys to the console
|
2015-10-23 22:10:15 -06:00
|
|
|
--[[=begin
|
|
|
|
|
|
|
|
hotkey-notes
|
|
|
|
============
|
|
|
|
Lists the key, name, and jump position of your hotkeys in the DFHack console.
|
|
|
|
|
|
|
|
=end]]
|
2014-12-15 05:11:23 -07:00
|
|
|
|
2015-01-07 17:11:09 -07:00
|
|
|
for i=1, #df.global.ui.main.hotkeys do
|
|
|
|
local hk = df.global.ui.main.hotkeys[i-1]
|
2015-01-07 19:10:11 -07:00
|
|
|
local key = dfhack.screen.getKeyDisplay(df.interface_key.D_HOTKEY1 + i - 1)
|
|
|
|
if hk.cmd ~= -1 then
|
|
|
|
print(key..': '..hk.name..': x='..hk.x..' y='..hk.y..' z='..hk.z)
|
|
|
|
end
|
2015-01-07 17:11:09 -07:00
|
|
|
end
|