mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] Tweaks ahelps, mhelps and their respective pms to allow multiline entry into the text boxes (#7954)
Co-authored-by: Runa Dacino <dacinoorder@gmail.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
if(T) // CHOMPedit - Ticket System
|
if(T) // CHOMPedit - Ticket System
|
||||||
message_admins("<span class='pm'>[key_name_admin(src)] has started replying to [key_name(C, 0, 0)]'s admin help.</span>")
|
message_admins("<span class='pm'>[key_name_admin(src)] has started replying to [key_name(C, 0, 0)]'s admin help.</span>")
|
||||||
var/msg = tgui_input_text(src,"Message:", "Private message to [key_name(C, 0, 0)]")
|
var/msg = tgui_input_text(src,"Message:", "Private message to [key_name(C, 0, 0)]", multiline = TRUE)
|
||||||
if (!msg)
|
if (!msg)
|
||||||
message_admins("<span class='pm'>[key_name_admin(src)] has cancelled their reply to [key_name(C, 0, 0)]'s admin help.</span>")
|
message_admins("<span class='pm'>[key_name_admin(src)] has cancelled their reply to [key_name(C, 0, 0)]'s admin help.</span>")
|
||||||
return
|
return
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
if(!ircreplyamount) //to prevent people from spamming irc
|
if(!ircreplyamount) //to prevent people from spamming irc
|
||||||
return
|
return
|
||||||
if(!msg)
|
if(!msg)
|
||||||
msg = tgui_input_text(src,"Message:", "Private message to Administrator")
|
msg = tgui_input_text(src,"Message:", "Private message to Administrator", multiline = TRUE)
|
||||||
|
|
||||||
if(!msg)
|
if(!msg)
|
||||||
return
|
return
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
//get message text, limit it's length.and clean/escape html
|
//get message text, limit it's length.and clean/escape html
|
||||||
if(!msg)
|
if(!msg)
|
||||||
msg = tgui_input_text(src,"Message:", "Private message to [key_name(recipient, 0, 0)]")
|
msg = tgui_input_text(src,"Message:", "Private message to [key_name(recipient, 0, 0)]", multiline = TRUE)
|
||||||
|
|
||||||
if(!msg)
|
if(!msg)
|
||||||
return
|
return
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
spawn() //so we don't hold the caller proc up
|
spawn() //so we don't hold the caller proc up
|
||||||
var/sender = src
|
var/sender = src
|
||||||
var/sendername = key
|
var/sendername = key
|
||||||
var/reply = tgui_input_text(recipient, msg,"Admin PM from-[sendername]", "") //show message and await a reply
|
var/reply = tgui_input_text(recipient, msg,"Admin PM from-[sendername]", "", multiline = TRUE) //show message and await a reply
|
||||||
if(recipient && reply)
|
if(recipient && reply)
|
||||||
if(sender)
|
if(sender)
|
||||||
recipient.cmd_admin_pm(sender,reply) //sender is still about, let's reply to them
|
recipient.cmd_admin_pm(sender,reply) //sender is still about, let's reply to them
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ var/list/mentor_verbs_default = list(
|
|||||||
|
|
||||||
if(T) // CHOMPedit - Ticket System
|
if(T) // CHOMPedit - Ticket System
|
||||||
message_mentors("<span class='mentor_channel'>[src] has started replying to [C]'s mentor help.</span>")
|
message_mentors("<span class='mentor_channel'>[src] has started replying to [C]'s mentor help.</span>")
|
||||||
var/msg = tgui_input_text(src,"Message:", "Private message to [C]")
|
var/msg = tgui_input_text(src,"Message:", "Private message to [C]", multiline = TRUE)
|
||||||
if (!msg)
|
if (!msg)
|
||||||
message_mentors("<span class='mentor_channel'>[src] has cancelled their reply to [C]'s mentor help.</span>")
|
message_mentors("<span class='mentor_channel'>[src] has cancelled their reply to [C]'s mentor help.</span>")
|
||||||
return
|
return
|
||||||
@@ -181,7 +181,7 @@ var/list/mentor_verbs_default = list(
|
|||||||
set hidden = 1
|
set hidden = 1
|
||||||
|
|
||||||
var/mhelp = tgui_alert(usr, "Select the help you need.","Request for Help",list("Adminhelp","Mentorhelp")) == "Mentorhelp"
|
var/mhelp = tgui_alert(usr, "Select the help you need.","Request for Help",list("Adminhelp","Mentorhelp")) == "Mentorhelp"
|
||||||
var/msg = tgui_input_text(usr, "Input your request for help.", "Request for Help")
|
var/msg = tgui_input_text(usr, "Input your request for help.", "Request for Help", multiline = TRUE)
|
||||||
|
|
||||||
if (mhelp)
|
if (mhelp)
|
||||||
mentorhelp(msg)
|
mentorhelp(msg)
|
||||||
@@ -215,7 +215,7 @@ var/list/mentor_verbs_default = list(
|
|||||||
|
|
||||||
//get message text, limit it's length.and clean/escape html
|
//get message text, limit it's length.and clean/escape html
|
||||||
if(!msg)
|
if(!msg)
|
||||||
msg = tgui_input_text(src,"Message:", "Mentor-PM to [whom]")
|
msg = tgui_input_text(src,"Message:", "Mentor-PM to [whom]", multiline = TRUE)
|
||||||
|
|
||||||
if(!msg)
|
if(!msg)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user