This commit is contained in:
d3athrow
2013-07-25 19:51:20 -05:00
parent 92dc20d5c1
commit 9ae607a958
2 changed files with 6 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ var/global/floorIsLava = 0
dat += "No notes found."
else
dat += "<table>"
sortList(note_keys)
note_keys = sortList(note_keys)
// Display the notes on the current page
var/number_pages = note_keys.len / PLAYER_NOTES_ENTRIES_PER_PAGE
@@ -210,13 +210,14 @@ var/global/floorIsLava = 0
for(var/index = 1, index <= number_pages, index++)
if(index == page)
dat += "<b>"
dat += "<a href='?src=\ref[src];notes=list;index='[index]'>[index]</a> "
dat += "<a href='?src=\ref[src];notes=list;index=[index]'>[index]</a> "
if(index == page)
dat += "</b>"
usr << browse(dat, "window=player_notes;size=400x400")
/datum/admins/proc/player_has_info(var/key as text)
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
var/list/infos

View File

@@ -2464,4 +2464,6 @@
switch(href_list["notes"])
if("show")
show_player_info(ckey)
return
if("list")
PlayerNotesPage(text2num(href_list["index"]))
return