mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-11 14:21:09 +01:00
91660824fa
* initial commit (broken)
* load the html
* fix this
* Fix various issues with browser statpanel
* Fix Alt Clicking opening up a window and Add back some object verbs to the browser stat panel
* Optimize stat panel and fix guardian verbs
* Restyles Stat Panel, Adds Subpanel Sub-Categories
* Use better layout for verbs in stat panel
* Updates statpanel verb widths to be more dynamic at higher screen resolutions.
* Adjust stat panel grid item widths and breakpoints
* refactors statpanel to use tgui API
* CI moment
* more CI
* this stupid thing
* Apply suggestions from code review
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
* Update code/modules/client/client_procs.dm
* ci fix
* emergency mc debug view
* temp revert some code change suggestions due to massive runtiming
* proper atom click topic implementation
* optimise
* mob clicking in stat panels work
* yeet spell tab thingy
* yeet simple stat panel pref
* allow insertion of html into MC tab content
* tidy up status tab
* Apply suggestions from code review
* fix this
* fix CI
* oops
* fix index runtime
* fixes MC tab showing up for mentors, fixes runtime
* safeties!
* Return of theme support
* more fixes
* fix view range pref, tidy prefs tab
* Remove old stat panel from themes
* fixes
* make sure verbs don't go missing
* fix ooc/looc breaking
* Revert "make sure verbs don't go missing"
This reverts commit 7d07ad45ed.
* fix this properly
* fix stat panel hitting rate limiters
* fix borg status tab
* Object Window Niceties
* Adds file cycling for icon2base64
* optimizes icon2html() for icon files known to be in the rsc at compile time
* CI moment
* remove dupe emergency shuttle timers
* more robust verb updates
* statpanel tweaks
* zip archived changelog to avoid search results
* optimise
* fix mentor chat wonkyness when disabled
* debug log moment
* i am very smart
* reintroduce this because it was needed
* better time listings
* less jank
* stops telling admins they arent mentors
* returns MC tab pref for admins
* Update code/controllers/subsystem/SSstatpanel.dm
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
* lewcc
* OD typemaker prep
---------
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Aylong <alexanderkitsa@gmail.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
/*!
|
|
* Copyright (c) 2022 Aleksej Komarov
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
SUBSYSTEM_DEF(ping)
|
|
name = "Ping"
|
|
priority = FIRE_PRIORITY_PING
|
|
wait = 4 SECONDS
|
|
flags = SS_NO_INIT
|
|
runlevels = RUNLEVEL_LOBBY | RUNLEVEL_SETUP | RUNLEVEL_GAME | RUNLEVEL_POSTGAME
|
|
offline_implications = "Chat ping system will no longer function correctly. No immediate action is needed."
|
|
|
|
/// List used each time SS fires to track which clients have been processed so far
|
|
var/list/current_run = list()
|
|
|
|
/datum/controller/subsystem/ping/stat_entry(msg)
|
|
msg = "P:[length(GLOB.clients)]"
|
|
return ..()
|
|
|
|
/datum/controller/subsystem/ping/fire(resumed = FALSE)
|
|
// Prepare the new batch of clients
|
|
if(!resumed)
|
|
src.current_run = GLOB.clients.Copy()
|
|
|
|
// De-reference the list for sanic speeds
|
|
var/list/current_run = src.current_run
|
|
|
|
while(length(current_run))
|
|
var/client/client = current_run[current_run.len]
|
|
current_run.len--
|
|
|
|
if(client?.tgui_panel?.is_ready())
|
|
// Send a soft ping
|
|
client.tgui_panel.window.send_message("ping/soft", list(
|
|
// Slightly less than the subsystem timer (somewhat arbitrary)
|
|
// to prevent incoming pings from resetting the afk state
|
|
"afk" = client.is_afk(3.5 SECONDS),
|
|
))
|
|
|
|
if(MC_TICK_CHECK)
|
|
return
|