mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-14 03:21:53 +00:00
* 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
55 lines
1.3 KiB
Plaintext
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)
|