mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Added cancel buttons and logging. (#24999)
This commit is contained in:
@@ -3318,7 +3318,7 @@
|
||||
if(!check_rights(R_EVENT))
|
||||
return
|
||||
var/list/type_choices = typesof(/datum/station_goal) - typesof(/datum/station_goal/secondary)
|
||||
var/picked = input("Choose goal type") in type_choices|null
|
||||
var/picked = input("Choose goal type") as null|anything in type_choices
|
||||
if(!picked)
|
||||
return
|
||||
var/datum/station_goal/G = new picked()
|
||||
@@ -3327,11 +3327,12 @@
|
||||
if(!newname)
|
||||
return
|
||||
G.name = newname
|
||||
var/description = input("Enter NAS Trurl message contents:") as message|null
|
||||
var/description = input("Enter NAS Trurl message contents:") as null|message
|
||||
if(!description)
|
||||
return
|
||||
G.report_message = description
|
||||
message_admins("[key_name_admin(usr)] created \"[G.name]\" station goal.")
|
||||
log_admin("[key_name_admin(usr)] created \"[G.name]\" station goal.")
|
||||
SSticker.mode.station_goals += G
|
||||
modify_goals()
|
||||
|
||||
@@ -3365,13 +3366,14 @@
|
||||
var/department_choices = list()
|
||||
for(var/obj/machinery/requests_console/RC in GLOB.allRequestConsoles)
|
||||
department_choices |= RC.department
|
||||
var/department = input("Choose goal department") in department_choices|null
|
||||
var/department = input("Choose goal department") as null|anything in department_choices
|
||||
if(!department)
|
||||
return
|
||||
G.department = department
|
||||
G.should_send_crate = alert("Send a personal crate?","Send crate","Yes","No") == "Yes"
|
||||
G.Initialize()
|
||||
message_admins("[key_name_admin(usr)] created \"[G.name]\" station goal. Description: [G.admin_desc]")
|
||||
log_admin("[key_name_admin(usr)] created \"[G.name]\" station goal. Description: [G.admin_desc]")
|
||||
SSticker.mode.secondary_goals += G
|
||||
modify_goals()
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
else
|
||||
targets["(No Mob) - [T]"] = T
|
||||
var/list/sorted = sortList(targets)
|
||||
var/target = input(src,"To whom shall we send a message?","Admin PM",null) as null|anything in sorted|null
|
||||
var/target = input(src,"To whom shall we send a message?","Admin PM",null) as null|anything in sorted
|
||||
if(!target)
|
||||
return
|
||||
cmd_admin_pm(targets[target],null)
|
||||
|
||||
Reference in New Issue
Block a user