Convert changelog to TGUI (#58593)

This pull request converts the changelog to TGUI. 
Note: Old unused changelog files will be automatically removed on the next changelog run
Why It's Good For The Game

More consistent UI, ability to view all historic logs.
Changelog

cl Celotajs
refactor: Converted the changelog popup to TGUI
/cl
This commit is contained in:
Celotajs
2021-04-26 23:41:56 +03:00
committed by GitHub
parent d59baece0e
commit 76fb2e1712
53 changed files with 486 additions and 9411 deletions

View File

@@ -101,9 +101,10 @@
/client/verb/changelog()
set name = "Changelog"
set category = "OOC"
var/datum/asset/simple/namespaced/changelog = get_asset_datum(/datum/asset/simple/namespaced/changelog)
changelog.send(src)
src << browse(changelog.get_htmlloader("changelog.html"), "window=changes;size=675x650")
if(!GLOB.changelog_tgui)
GLOB.changelog_tgui = new /datum/changelog()
GLOB.changelog_tgui.ui_interact(usr)
if(prefs.lastchangelog != GLOB.changelog_hash)
prefs.lastchangelog = GLOB.changelog_hash
prefs.save_preferences()