mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Encode changes (#11301)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e6a4639d0
commit
4e2361f8df
@@ -28,12 +28,12 @@
|
||||
var/datum/eventkit/fake_pdaconvos/FPC = fakeConversations
|
||||
|
||||
if(choice == "Add new identity")
|
||||
var/newRef = sanitize(tgui_input_text(usr, "Input unique reference. Duplicates are FORBIDDEN!. Players can't see this.\
|
||||
Used to uniquely identify conversations in PDAs", null))
|
||||
var/newRef = tgui_input_text(usr, "Input unique reference. Duplicates are FORBIDDEN!. Players can't see this.\
|
||||
Used to uniquely identify conversations in PDAs", null, MAX_MESSAGE_LEN)
|
||||
if(!newRef) return
|
||||
FPC.fakeRefs.Add(newRef)
|
||||
FPC.names[newRef] = sanitize(tgui_input_text(usr, "Input fake name",newRef))
|
||||
FPC.fakeJobs[newRef] = sanitize(tgui_input_text(usr, "Input fake assignment.",newRef))
|
||||
FPC.names[newRef] = tgui_input_text(usr, "Input fake name",newRef, "", MAX_MESSAGE_LEN)
|
||||
FPC.fakeJobs[newRef] = tgui_input_text(usr, "Input fake assignment.",newRef, "", MAX_MESSAGE_LEN)
|
||||
to_chat(usr, span_notice("You have created [newRef]. Current name: [FPC.names[newRef]]. Current assignment: [FPC.fakeJobs[newRef]]"))
|
||||
return
|
||||
|
||||
@@ -42,10 +42,10 @@
|
||||
to_chat(usr, span_notice("You are editing [ref]. Current name: [FPC.names[ref]]. Current assignment: [FPC.fakeJobs[ref]]"))
|
||||
var/editChoice = tgui_alert(usr, "What do you wish to edit?", "Details", list("Name", "Job", "Cancel"))
|
||||
if(editChoice == "Name")
|
||||
FPC.names[ref] = sanitize(tgui_input_text(usr, "Input fake name", FPC.names[ref]))
|
||||
FPC.names[ref] = tgui_input_text(usr, "Input fake name", FPC.names[ref], "", MAX_MESSAGE_LEN)
|
||||
to_chat(usr, span_notice("Current data for [ref] are : Current name: [FPC.names[ref]]. Current assignment: [FPC.fakeJobs[ref]]"))
|
||||
if(editChoice == "Job")
|
||||
FPC.fakeJobs[ref] = sanitize(tgui_input_text(usr, "Input fake name", FPC.fakeJobs[ref]))
|
||||
FPC.fakeJobs[ref] = tgui_input_text(usr, "Input fake name", FPC.fakeJobs[ref], "", MAX_MESSAGE_LEN)
|
||||
to_chat(usr, span_notice("Current data for [ref] are : Current name: [FPC.names[ref]]. Current assignment: [FPC.fakeJobs[ref]]"))
|
||||
return
|
||||
if(choice == "Delete existing identity")
|
||||
@@ -85,8 +85,7 @@ Invoked by vv topic "fakepdapropconvo" in code\modules\admin\view_variables\topi
|
||||
var/safetyLimit = 0
|
||||
while(safetyLimit < 30)
|
||||
safetyLimit += 1
|
||||
var/message = sanitize(tgui_input_text(M, "Input fake message. Leave empty to cancel. Can create up to 30 messages in a row",null),
|
||||
MAX_MESSAGE_LEN)
|
||||
var/message = tgui_input_text(M, "Input fake message. Leave empty to cancel. Can create up to 30 messages in a row",null, "", MAX_MESSAGE_LEN)
|
||||
if(!message) return
|
||||
var/input = tgui_alert(M, "Received or Sent?", "Direction", list("Received", "Sent"))
|
||||
if(!input)
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
use_custom_ai = !use_custom_ai
|
||||
return TRUE
|
||||
if("set_faction")
|
||||
faction = sanitize(tgui_input_text(ui.user, "Please input your mobs' faction", "Faction", (faction ? faction : "neutral")))
|
||||
faction = tgui_input_text(ui.user, "Please input your mobs' faction", "Faction", (faction ? faction : "neutral"), MAX_MESSAGE_LEN)
|
||||
return TRUE
|
||||
if("set_intent")
|
||||
intent = tgui_input_list(ui.user, "Please select preferred intent", "Select Intent", list(I_HELP, I_HURT), (intent ? intent : I_HELP))
|
||||
|
||||
Reference in New Issue
Block a user