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,62 @@
|
||||
/datum/keybinding/carbon
|
||||
category = CATEGORY_CARBON
|
||||
weight = WEIGHT_MOB
|
||||
|
||||
/datum/keybinding/carbon/can_use(client/user)
|
||||
return iscarbon(user.mob)
|
||||
|
||||
/datum/keybinding/carbon/toggle_throw_mode
|
||||
hotkey_keys = list("R", "Southwest") // END
|
||||
name = "toggle_throw_mode"
|
||||
full_name = "Toggle throw mode"
|
||||
description = "Toggle throwing the current item or not."
|
||||
category = CATEGORY_CARBON
|
||||
|
||||
/datum/keybinding/carbon/toggle_throw_mode/down(client/user)
|
||||
var/mob/living/carbon/C = user.mob
|
||||
C.toggle_throw_mode()
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/carbon/select_help_intent
|
||||
hotkey_keys = list("1")
|
||||
name = "select_help_intent"
|
||||
full_name = "Select help intent"
|
||||
description = ""
|
||||
category = CATEGORY_CARBON
|
||||
|
||||
/datum/keybinding/carbon/select_help_intent/down(client/user)
|
||||
user.mob?.a_intent_change(INTENT_HELP)
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/carbon/select_disarm_intent
|
||||
hotkey_keys = list("2")
|
||||
name = "select_disarm_intent"
|
||||
full_name = "Select disarm intent"
|
||||
description = ""
|
||||
category = CATEGORY_CARBON
|
||||
|
||||
/datum/keybinding/carbon/select_disarm_intent/down(client/user)
|
||||
user.mob?.a_intent_change(INTENT_DISARM)
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/carbon/select_grab_intent
|
||||
hotkey_keys = list("3")
|
||||
name = "select_grab_intent"
|
||||
full_name = "Select grab intent"
|
||||
description = ""
|
||||
category = CATEGORY_CARBON
|
||||
|
||||
/datum/keybinding/carbon/select_grab_intent/down(client/user)
|
||||
user.mob?.a_intent_change(INTENT_GRAB)
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/carbon/select_harm_intent
|
||||
hotkey_keys = list("4")
|
||||
name = "select_harm_intent"
|
||||
full_name = "Select harm intent"
|
||||
description = ""
|
||||
category = CATEGORY_CARBON
|
||||
|
||||
/datum/keybinding/carbon/select_harm_intent/down(client/user)
|
||||
user.mob?.a_intent_change(INTENT_HARM)
|
||||
return TRUE
|
||||
Reference in New Issue
Block a user