From 9db7f630821fa7eaaa0d2996e8bf637d3f8bfd00 Mon Sep 17 00:00:00 2001 From: mochi Date: Mon, 10 Aug 2020 09:31:17 +0200 Subject: [PATCH] Refreshing, adjust column widths --- code/modules/admin/topic.dm | 6 ++++++ code/modules/admin/verbs/asays.dm | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index f48da567546..a8ad22ef3df 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1350,6 +1350,12 @@ M.client.prefs.real_name = random_name M.client.prefs.save_character(M.client) + else if(href_list["asays"]) + if(!check_rights(R_ADMIN)) + return + + usr.client.view_asays() + else if(href_list["tdome1"]) if(!check_rights(R_SERVER|R_EVENT)) return diff --git a/code/modules/admin/verbs/asays.dm b/code/modules/admin/verbs/asays.dm index b5caf9b9cf0..e713d2b1bcc 100644 --- a/code/modules/admin/verbs/asays.dm +++ b/code/modules/admin/verbs/asays.dm @@ -20,8 +20,8 @@ GLOBAL_LIST_EMPTY(asays) if(!check_rights(R_ADMIN)) return - var/output = {" - - - "} + Refresh +
+ "}) // Header & body start output += {" - - - + + + "} - for (var/datum/asays/A in GLOB.asays) + for(var/datum/asays/A in GLOB.asays) var/timestr = time2text(A.time, "hh:mm:ss") output += {" - - - + + + "} @@ -65,5 +66,5 @@ GLOBAL_LIST_EMPTY(asays)
TimeCkeyMessageTimeCkeyMessage
[timestr][A.ckey] ([A.rank])[A.message][timestr][A.ckey] ([A.rank])[A.message]
"} var/datum/browser/popup = new(src, "asays", "
Current Round Asays
", 1200, 825) - popup.set_content(output) + popup.set_content(output.Join()) popup.open(0)