From e6e2ec28095c978f4d971cc884c84eaf7fb2b8a6 Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Tue, 3 Mar 2015 19:51:35 +1100 Subject: [PATCH] Readds changelog popup as a config option --- code/controllers/configuration.dm | 4 ++++ code/modules/client/client procs.dm | 6 ++++-- config/config.txt | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 2fda7488b44..3cf5995259a 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -154,6 +154,8 @@ var/starlight = 0 var/grey_assistants = 0 + var/aggressive_changelog = 0 + /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode for(var/T in L) @@ -327,6 +329,8 @@ config.notify_new_player_age = text2num(value) if("irc_first_connection_alert") config.irc_first_connection_alert = 1 + if("aggressive_changelog") + config.aggressive_changelog = 1 else diary << "Unknown setting in configuration: '[name]'" diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index ccb94c8974c..82eb1a1227d 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -168,8 +168,10 @@ var/next_external_rsc = 0 if(prefs.lastchangelog != changelog_hash) //bolds the changelog button on the interface so we know there are updates. src << "You have unread updates in the changelog." - winset(src, "rpane.changelogb", "background-color=#eaeaea;font-style=bold") - + if(config.aggressive_changelog) + src.changes() + else + winset(src, "rpane.changelogb", "background-color=#eaeaea;font-style=bold") ////////////// //DISCONNECT// diff --git a/config/config.txt b/config/config.txt index e28c4ff6b2f..6f48d69d3d8 100644 --- a/config/config.txt +++ b/config/config.txt @@ -187,4 +187,7 @@ NOTIFY_NEW_PLAYER_AGE 0 ## Deny all new connections by ckeys we haven't seen before (exempts admins and only denies the connection if the database is enabled and connected) ## Requires database -#PANIC_BUNKER \ No newline at end of file +#PANIC_BUNKER + +## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog +#AGGRESSIVE_CHANGELOG \ No newline at end of file