Merge pull request #6925 from ShadowLarkens/vore_cleanup_less_cursed_maybe

Cleanup vore code
This commit is contained in:
Aronai Sieyes
2020-03-21 00:52:46 -04:00
committed by GitHub
21 changed files with 723 additions and 1043 deletions

View File

@@ -15,9 +15,7 @@
var/content = ""
var/title_buttons = ""
/datum/browser/New(nuser, nwindow_id, ntitle = 0, nwidth = 0, nheight = 0, var/atom/nref = null)
user = nuser
window_id = nwindow_id
if (ntitle)
@@ -33,6 +31,14 @@
return
add_stylesheet("common", 'html/browser/common.css') // this CSS sheet is common to all UIs
//VOREStation Edit - Allow browser datums to be garbage collected
/datum/browser/Destroy()
close()
ref = null
user = null
. = ..()
//VOREStation Edit End - Allow browser datums to be garbage collected
/datum/browser/proc/set_title(ntitle)
title = format_text(ntitle)