The admin tool "List Free Slots" popups now instead of flooding the chat window.

This commit is contained in:
Rockdtben
2013-11-07 08:43:19 -06:00
parent 00621f7817
commit 6bdb91a042
3 changed files with 20 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
/datum/admins/proc/list_free_slots()
if(!check_rights())
return
var/dat = "<html><head><title>List Free Slots</title></head><body>"
var/count = 0
if(job_master)
for(var/datum/job/job in job_master.occupations)
count++
var/J_title = html_encode(job.title)
var/J_totPos = html_encode(job.total_positions)
dat += "[J_title]: [J_totPos]<br>"
dat += "</body>"
var/winheight = 100 + (count * 20)
winheight = min(winheight, 690)
usr << browse(dat, "window=players;size=316x[winheight]")
+1 -3
View File
@@ -470,9 +470,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
if (!holder)
src << "Only administrators may use this command."
return
if(job_master)
for(var/datum/job/job in job_master.occupations)
src << "[job.title]: [job.total_positions]"
holder.list_free_slots()
feedback_add_details("admin_verb","LFS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/cmd_admin_explosion(atom/O as obj|mob|turf in world)