mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
About The Pull Request Ports tgstation/TerraGov-Marine-Corps#2977, overrides click proc to return focus back to chat bar using winsets also ports tgstation/TerraGov-Marine-Corps#1904 which has two sets of defaults for hotkey and classic mode fixes #47672 fixes #47659 much credit to @Rohesie and the TGMC team for a bunch of these improvements Why It's Good For The Game lets the non-hotkey players walk and talk again Changelog cl add: Custom keybinds will now check what style (classic / hotkey) you prefer when resetting if you use classic mode make sure to reset your keybinds to default! add: multiple keybind support tweak: non-hotkey mode keeps focus on chat fix: pressing 4 as cyborg now properly cycles fix: AI location hotkeys now work again /cl
36 lines
874 B
Plaintext
36 lines
874 B
Plaintext
/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
|