mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
keybind signal support, ported from TGMC (#52219)
* keybind signal support, ported from TGMC * Thank you linter * remove unused and extra defines * move signal defines up and fix emote keybind runtimes * Apply suggestions * Update keybinding.dm * Missed this one in the upstream merge * Ignore keybindings without names * back to the OG * Update living.dm * Update living.dm * got it * trailing newline * Update code/datums/keybinding/living.dm Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
committed by
SkyratBot
co-authored by
Rohesie
parent
41c6428ca6
commit
dc5840dc4e
@@ -8,8 +8,12 @@
|
||||
name = "admin_help"
|
||||
full_name = "Admin Help"
|
||||
description = "Ask an admin for help."
|
||||
keybind_signal = COMSIG_KB_CLIENT_GETHELP_DOWN
|
||||
|
||||
/datum/keybinding/client/admin_help/down(client/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
user.get_adminhelp()
|
||||
return TRUE
|
||||
|
||||
@@ -19,8 +23,12 @@
|
||||
name = "screenshot"
|
||||
full_name = "Screenshot"
|
||||
description = "Take a screenshot."
|
||||
keybind_signal = COMSIG_KB_CLIENT_SCREENSHOT_DOWN
|
||||
|
||||
/datum/keybinding/client/screenshot/down(client/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
winset(user, null, "command=.screenshot [!user.keys_held["shift"] ? "auto" : ""]")
|
||||
return TRUE
|
||||
|
||||
@@ -29,7 +37,11 @@
|
||||
name = "minimal_hud"
|
||||
full_name = "Minimal HUD"
|
||||
description = "Hide most HUD features"
|
||||
keybind_signal = COMSIG_KB_CLIENT_MINIMALHUD_DOWN
|
||||
|
||||
/datum/keybinding/client/minimal_hud/down(client/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
user.mob.button_pressed_F12()
|
||||
return TRUE
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user