Replaces adminhelp verb in macros/hotkeys

This commit is contained in:
lm40
2022-08-21 16:08:14 -04:00
parent 5b4fd7a11b
commit d8b22197b5
2 changed files with 19 additions and 5 deletions
+14
View File
@@ -159,6 +159,20 @@ var/list/mentor_verbs_default = list(
/proc/has_mentor_powers(client/C)
return C.holder || C.mentorholder
// This not really a great place to put it, but this verb replaces adminhelp in hotkeys so that people requesting help can select the type they need
// You can still directly adminhelp if necessary, this ONLY replaces the inbuilt hotkeys
/client/verb/requesthelp(msg as text)
set category = "Admin"
set name = "Request help"
if(tgui_alert(usr, "Select the help you need.","Request for Help",list("Adminhelp","Mentorhelp")) == "Mentorhelp")
mentorhelp(msg)
return
adminhelp(msg)
/client/proc/cmd_mentor_pm(whom, msg, datum/mentor_help/MH)
set category = "Admin"
set name = "Mentor-PM"
+5 -5
View File
@@ -229,7 +229,7 @@ macro "borghotkeymode"
command = "body-toggle-head"
elem
name = "F1"
command = "adminhelp"
command = "request-help"
elem
name = "CTRL+SHIFT+F1+REP"
command = ".options"
@@ -453,7 +453,7 @@ macro "macro"
command = "body-toggle-head"
elem
name = "F1"
command = "adminhelp"
command = "request-help"
elem
name = "CTRL+SHIFT+F1+REP"
command = ".options"
@@ -734,7 +734,7 @@ macro "hotkeymode"
command = "body-toggle-head"
elem
name = "F1"
command = "adminhelp"
command = "request-help"
elem
name = "CTRL+SHIFT+F1+REP"
command = ".options"
@@ -952,7 +952,7 @@ macro "borgmacro"
command = "body-toggle-head"
elem
name = "F1"
command = "adminhelp"
command = "request-help"
elem
name = "CTRL+SHIFT+F1+REP"
command = ".options"
@@ -1112,7 +1112,7 @@ menu "menu"
saved-params = "is-checked"
elem
name = "&Admin help\tF1"
command = "adminhelp"
command = "request-help"
category = "&Help"
saved-params = "is-checked"
elem