Allow disabling styling of fake nanoui windows

This commit is contained in:
GinjaNinja32
2016-05-20 16:17:40 +01:00
committed by Yoshax
parent 6a8ff0e57d
commit beee32f237
2 changed files with 11 additions and 1 deletions

View File

@@ -28,6 +28,9 @@
height = nheight
if (nref)
ref = nref
// If a client exists, but they have disabled fancy windowing, disable it!
if(user && user.client && !user.client.is_preference_enabled(/datum/client_preference/browser_style))
return
add_stylesheet("common", 'html/browser/common.css') // this CSS sheet is common to all UIs
/datum/browser/proc/set_title(ntitle)
@@ -178,4 +181,4 @@
if(src && src.mob)
//world << "[src] was [src.mob.machine], setting to null"
src.mob.unset_machine()
return
return

View File

@@ -137,6 +137,13 @@ var/list/_client_preferences_by_type
key = "SAFE_FIRING"
enabled_description = "Safe"
disabled_description = "Dangerous"
/datum/client_preference/browser_style
description = "Fake NanoUI Browser Style"
key = "BROWSER_STYLED"
enabled_description = "Fancy"
disabled_description = "Plain"
/********************
* Staff Preferences *
********************/