More fixes by Giacom.

"Bug Fixes

Fixed a HTML typo in job preferences, thanks Gamer_cad
Made the Message Console not list PDAs that are turned off or are not owned by someone.
Forgot to mention this: I changed preference since the jobs are now sorted after the round has started."

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4035 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-07-11 09:46:54 +00:00
parent 3257bf9d4f
commit f69f054f41
2 changed files with 7 additions and 11 deletions

View File

@@ -396,8 +396,12 @@
//Select Receiver
if("Recepient")
//Get out list of viable PDAs
var/list/obj/item/device/pda/sendPDAs = list()
for(var/obj/item/device/pda/P in PDAs)
if(!P.owner || P.toff) continue
sendPDAs += P
if(PDAs && PDAs.len > 0)
customrecepient = input(usr, "Select a PDA from the list.") as null|anything in PDAs
customrecepient = input(usr, "Select a PDA from the list.") as null|anything in sortList(sendPDAs)
else
customrecepient = null

View File

@@ -210,20 +210,12 @@ datum/preferences
user << browse(dat, "window=preferences;size=300x710")
proc/SetChoices(mob/user, limit = 17, list/splitJobs, width = 550, height = 500)
proc/SetChoices(mob/user, limit = 17, list/splitJobs = list("Chief Engineer"), width = 550, height = 500)
//limit - The amount of jobs allowed per column. Defaults to 17 to make it look nice.
//splitJobs - Allows you split the table by job. You can make different tables for each department by including their heads. Defaults to CE to make it look nice.
//width - Screen' width. Defaults to 550 to make it look nice.
//height - Screen's height. Defaults to 500 to make it look nice.
// Modify this if you added more jobs and it looks like a mess. Add the jobs in the splitJobs that you want to trigger and intitate a new table.
if(splitJobs == null)
if (ticker && ticker.current_state >= GAME_STATE_PLAYING)
splitJobs = list()
else
splitJobs = list("Chief Engineer")
var/HTML = "<body>"
HTML += "<tt><center>"
@@ -284,7 +276,7 @@ datum/preferences
HTML += " <font color=red>\[NEVER]</font>"
HTML += "</a></td></tr>"
HTML += "</td'><tr></table>"
HTML += "</td'></tr></table>"
HTML += "</center></table>"