mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
The admin tool "List Free Slots" popups now instead of flooding the chat window.
This commit is contained in:
@@ -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]")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user