mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +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:
@@ -163,7 +163,7 @@ var/list/mentor_verbs_default = list(
|
||||
|
||||
if(T) // CHOMPedit - Ticket System
|
||||
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)
|
||||
message_mentors("<span class='mentor_channel'>[src] has cancelled their reply to [C]'s mentor help.</span>")
|
||||
return
|
||||
@@ -181,7 +181,7 @@ var/list/mentor_verbs_default = list(
|
||||
set hidden = 1
|
||||
|
||||
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)
|
||||
mentorhelp(msg)
|
||||
@@ -215,7 +215,7 @@ var/list/mentor_verbs_default = list(
|
||||
|
||||
//get message text, limit it's length.and clean/escape html
|
||||
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)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user