The One Where I Port Modals

This commit is contained in:
Chompstation Bot
2021-06-30 19:29:34 +00:00
parent 2457a62edd
commit b6e1989a01
468 changed files with 10519 additions and 1808 deletions

View File

@@ -123,7 +123,7 @@
"AR Projecting \[[setting_flags & NIF_SC_PROJECTING ? "Enabled" : "Disabled"]\]" = NIF_SC_PROJECTING,
"Design Inside",
"Erase Contents")
var/choice = input(nif.human,"Select a setting to modify:","Soulcatcher NIFSoft") as null|anything in settings_list
var/choice = tgui_input_list(nif.human,"Select a setting to modify:","Soulcatcher NIFSoft", settings_list)
if(choice in settings_list)
switch(choice)
@@ -142,9 +142,9 @@
return TRUE
if("Erase Contents")
var/mob/living/carbon/brain/caught_soul/brainpick = input(nif.human,"Select a mind to delete:","Erase Mind") as null|anything in brainmobs
var/mob/living/carbon/brain/caught_soul/brainpick = tgui_input_list(nif.human,"Select a mind to delete:","Erase Mind", brainmobs)
var/warning = alert(nif.human,"Are you SURE you want to erase \"[brainpick]\"?","Erase Mind","CANCEL","DELETE","CANCEL")
var/warning = tgui_alert(nif.human,"Are you SURE you want to erase \"[brainpick]\"?","Erase Mind",list("CANCEL","DELETE"))
if(warning == "DELETE")
brainmobs -= brainpick
qdel(brainpick)
@@ -502,7 +502,7 @@
to_chat(src,SPAN_WARNING("You need a loaded mind to use NSay."))
return
if(!message)
message = input("Type a message to say.","Speak into Soulcatcher") as text|null
message = input(usr, "Type a message to say.","Speak into Soulcatcher") as text|null
if(message)
var/sane_message = sanitize(message)
SC.say_into(sane_message,src)
@@ -533,7 +533,7 @@
return
if(!message)
message = input("Type an action to perform.","Emote into Soulcatcher") as text|null
message = input(usr, "Type an action to perform.","Emote into Soulcatcher") as text|null
if(message)
var/sane_message = sanitize(message)
SC.emote_into(sane_message,src)
@@ -588,7 +588,7 @@
set category = "Soulcatcher"
if(!message)
message = input("Type a message to say.","Speak into Soulcatcher") as text|null
message = input(usr, "Type a message to say.","Speak into Soulcatcher") as text|null
if(message)
var/sane_message = sanitize(message)
soulcatcher.say_into(sane_message,src,null)
@@ -599,7 +599,7 @@
set category = "Soulcatcher"
if(!message)
message = input("Type an action to perform.","Emote into Soulcatcher") as text|null
message = input(usr, "Type an action to perform.","Emote into Soulcatcher") as text|null
if(message)
var/sane_message = sanitize(message)
soulcatcher.emote_into(sane_message,src,null)

View File

@@ -127,7 +127,7 @@
/datum/nifsoft/sizechange/activate()
if((. = ..()))
var/new_size = input("Put the desired size (25-200%), or (1-600%) in dormitory areas.", "Set Size", 200) as num|null
var/new_size = input(usr, "Put the desired size (25-200%), or (1-600%) in dormitory areas.", "Set Size", 200) as num|null
if (!nif.human.size_range_check(new_size))
if(new_size)