mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
TGUI input box conversions 1 (#63313)
This commit is contained in:
@@ -630,7 +630,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
//NOTEKEEPER FUNCTIONS===================================
|
||||
|
||||
if ("Edit")
|
||||
var/n = stripped_multiline_input(U, "Please enter message", name, note)
|
||||
var/n = tgui_input_text(U, "Please enter message", name, note, multiline = TRUE)
|
||||
if (in_range(src, U) && loc == U)
|
||||
if (ui_mode == PDA_UI_NOTEKEEPER && n)
|
||||
note = n
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
to_chat(pai, span_notice("You have been bound to a new master."))
|
||||
pai.emittersemicd = FALSE
|
||||
if("set_laws")
|
||||
var/newlaws = stripped_multiline_input(usr, "Enter any additional directives you would like your pAI personality to follow. Note that these directives will not override the personality's allegiance to its imprinted master. Conflicting directives will be ignored.", "pAI Directive Configuration", pai.laws.supplied[1], MAX_MESSAGE_LEN)
|
||||
var/newlaws = tgui_input_text(usr, "Enter any additional directives you would like your pAI personality to follow. Note that these directives will not override the personality's allegiance to its imprinted master. Conflicting directives will be ignored.", "pAI Directive Configuration", pai.laws.supplied[1], MAX_MESSAGE_LEN, TRUE)
|
||||
if(newlaws && pai)
|
||||
pai.add_supplied_law(0,newlaws)
|
||||
if("toggle_holo")
|
||||
|
||||
Reference in New Issue
Block a user