mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 14:15:22 +01:00
Add counter to runtime viewer (#15182)
* Add runtime counter * Steel suggestion Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * make "10" or higher display as "10+" Co-authored-by: Kyep <Kyep@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -86,7 +86,10 @@ GLOBAL_DATUM(error_cache, /datum/ErrorViewer/ErrorCache)
|
||||
var/datum/ErrorViewer/ErrorSource/error_source
|
||||
for(var/erroruid in error_sources)
|
||||
error_source = error_sources[erroruid]
|
||||
html += "<p class='runtime_list'>[error_source.makeLink(null, src)]<br></p>"
|
||||
var/e_count_text = length(error_source.errors)
|
||||
if(e_count_text >= ERROR_LIMIT)
|
||||
e_count_text = "[e_count_text]+"
|
||||
html += "<p class='runtime_list'>([e_count_text]) [error_source.makeLink(null, src)]<br></p>"
|
||||
else
|
||||
html += "[makeLink("organized", null)] | linear<hr>"
|
||||
for(var/datum/ErrorViewer/ErrorEntry/error_entry in errors)
|
||||
|
||||
Reference in New Issue
Block a user