Files
Paradise/code/datums/keybindings/admin_keybinds.dm
warriorstar-orion 2a842644d5 port ADMIN_VERB and friends (#30646)
* port ADMIN_VERB and friends

* some renaming

* dumb

* one more rename

* never search and replace this codebase

* fix TM issues, more renaming

* add a static analysis to shore up user verbs

* fix double message on roundstart

* remove macro we're not using yet

* convert remaining playsounds verbs

* convert more verbs i missed somehow

* why is this a completely different signature than everything else

* fix ui_interact arg

* fix logging view and others

* buncha issues caught in TM

* fix mentor tickets ui

* fix bug report viewing

* moron
2025-12-12 19:18:22 +00:00

55 lines
1.3 KiB
Plaintext

/datum/keybinding/admin
category = KB_CATEGORY_ADMIN
/// The rights to use with [/proc/check_rights] if any
var/rights
/datum/keybinding/admin/can_use(client/C, mob/M)
if(rights && !check_rights(rights, FALSE, M))
return FALSE
return !isnull(C.holder) && ..()
/datum/keybinding/admin/mc_debug
name = "MC Debug"
keys = list("F3")
rights = R_VIEWRUNTIMES | R_DEBUG
/datum/keybinding/admin/mc_debug/down(client/C)
. = ..()
if(C in SSdebugview.processing)
SSdebugview.stop_processing(C)
return
SSdebugview.start_processing(C)
/datum/keybinding/admin/aghost
name = "Aghost"
keys = list("F6")
/datum/keybinding/admin/aghost/down(client/C)
. = ..()
SSuser_verbs.invoke_verb(C, /datum/user_verb/admin_ghost)
/datum/keybinding/admin/player_panel
name = "Player Panel"
keys = list("F7")
rights = R_ADMIN | R_MOD
/datum/keybinding/admin/player_panel/down(client/C)
. = ..()
C.holder.player_panel_new()
/datum/keybinding/admin/apm
name = "Admin PM"
keys = list("F8")
/datum/keybinding/admin/apm/down(client/C)
. = ..()
SSuser_verbs.invoke_verb(C, /datum/user_verb/admin_pm_panel)
/datum/keybinding/admin/invisimin
name = "Invisimin"
keys = list("F9")
/datum/keybinding/admin/invisimin/down(client/C)
. = ..()
SSuser_verbs.invoke_verb(C, /datum/user_verb/invisimin)