Rebindable Hotkeys (#12138)
* demodularize interface * keybindings * binds * prefs * loose ends * globals * changes * s * datum ref lists * ok * fixes * fixes * fix * ok * sigh * sigh * indicators * let's play the move code around game * let's play the i didn't comma my lists game * let's play the indent game * let's play hte spelling bee * let's fail the spelling bee * LET'S PLAY THe HOW HARd IS IT TO SPELL A PROC GAME * let's play the bugfix game * bugfixes * improvements * Update bindings_client.dm * pixel shift * A * wups
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/datum/keybinding/client
|
||||
category = CATEGORY_CLIENT
|
||||
weight = WEIGHT_HIGHEST
|
||||
|
||||
/datum/keybinding/client/admin_help
|
||||
hotkey_keys = list("F1")
|
||||
name = "admin_help"
|
||||
full_name = "Admin Help"
|
||||
description = "Ask an admin for help."
|
||||
|
||||
/datum/keybinding/client/admin_help/down(client/user)
|
||||
user.get_adminhelp()
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/client/screenshot
|
||||
hotkey_keys = list("F2")
|
||||
name = "screenshot"
|
||||
full_name = "Screenshot"
|
||||
description = "Take a screenshot."
|
||||
|
||||
/datum/keybinding/client/screenshot/down(client/user)
|
||||
winset(user, null, "command=.screenshot [!user.keys_held["shift"] ? "auto" : ""]")
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/client/minimal_hud
|
||||
hotkey_keys = list("F12")
|
||||
name = "minimal_hud"
|
||||
full_name = "Minimal HUD"
|
||||
description = "Hide most HUD features"
|
||||
|
||||
/datum/keybinding/client/minimal_hud/down(client/user)
|
||||
user.mob.button_pressed_F12()
|
||||
return TRUE
|
||||
Reference in New Issue
Block a user