mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 21:21:59 +00:00
* dev team chat initial * oops * refactor who code * allow discord relay * yeet some un-needed stuff * tweak the role colour * Update code/__DEFINES/admin_defines.dm Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> * .Add to += * Update config/example/config.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> --------- Signed-off-by: Sean <12197162+S34NW@users.noreply.github.com> Co-authored-by: ROdenFL <ROdenFL@yandex.ru> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
97 lines
1.9 KiB
Plaintext
97 lines
1.9 KiB
Plaintext
GLOBAL_LIST_EMPTY(asays)
|
|
GLOBAL_LIST_EMPTY(msays)
|
|
GLOBAL_LIST_EMPTY(devsays)
|
|
|
|
/datum/say
|
|
var/ckey
|
|
var/rank
|
|
var/message
|
|
var/time
|
|
|
|
/datum/say/New(ckey = "", rank = "", message = "", time = 0)
|
|
src.ckey = ckey
|
|
src.rank = rank
|
|
src.message = message
|
|
src.time = time
|
|
|
|
/client/proc/view_msays()
|
|
set name = "Msays"
|
|
set desc = "View Msays from the current round."
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_MENTOR | R_ADMIN))
|
|
return
|
|
|
|
display_says(GLOB.msays, "msay")
|
|
|
|
/client/proc/view_devsays()
|
|
set name = "Devsays"
|
|
set desc = "View Devsays from the current round."
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_DEV_TEAM | R_ADMIN))
|
|
return
|
|
|
|
display_says(GLOB.devsays, "devsay")
|
|
|
|
/client/proc/view_asays()
|
|
set name = "Asays"
|
|
set desc = "View Asays from the current round."
|
|
set category = "Admin"
|
|
|
|
if(!check_rights(R_ADMIN))
|
|
return
|
|
|
|
display_says(GLOB.asays, "asay")
|
|
|
|
/client/proc/display_says(list/say_list, title)
|
|
|
|
var/list/output = list({"
|
|
<style>
|
|
td, th
|
|
{
|
|
border: 1px solid #425c6e;
|
|
padding: 3px;
|
|
}
|
|
|
|
thead
|
|
{
|
|
color: #517087;
|
|
font-weight: bold;
|
|
table-layout: fixed;
|
|
}
|
|
</style>
|
|
<a href='byond://?src=[holder.UID()];[title]s=1'>Refresh</a>
|
|
<table style='width: 100%; border-collapse: collapse; table-layout: auto; margin-top: 3px;'>
|
|
"})
|
|
|
|
// Header & body start
|
|
output += {"
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">Time</th>
|
|
<th width="10%">Ckey</th>
|
|
<th width="85%">Message</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
"}
|
|
|
|
for(var/datum/say/A in say_list)
|
|
var/timestr = time2text(A.time, "hh:mm:ss")
|
|
output += {"
|
|
<tr>
|
|
<td width="5%">[timestr]</td>
|
|
<td width="10%"><b>[A.ckey] ([A.rank])</b></td>
|
|
<td width="85%">[A.message]</td>
|
|
</tr>
|
|
"}
|
|
|
|
output += {"
|
|
</tbody>
|
|
</table>"}
|
|
|
|
var/datum/browser/popup = new(src, title, "<div align='center'>Current Round [capitalize(title)]s</div>", 1200, 825)
|
|
popup.set_content(output.Join())
|
|
popup.open(0)
|