From 9ef7aeb94083a3556c3e2c4dab53d4f5c03d6270 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Sat, 18 Apr 2015 15:48:17 +0200 Subject: [PATCH] On join clients are now given a changelog notice, if the changelog has changed since last. --- code/controllers/configuration.dm | 5 +++++ code/modules/client/client procs.dm | 6 +++++- config/example/config.txt | 9 +++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index b112beaf53d..e92d323062f 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -194,6 +194,8 @@ var/list/gamemode_cache = list() var/law_zero = "ERROR ER0RR $R0RRO$!R41.%%!!(%$^^__+ @#F0E4'ALL LAWS OVERRIDDEN#*?&110010" + var/aggressive_changelog = 0 + /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode for (var/T in L) @@ -638,6 +640,9 @@ var/list/gamemode_cache = list() if("law_zero") law_zero = value + if("aggressive_changelog") + config.aggressive_changelog = 1 + else log_misc("Unknown setting in configuration: '[name]'") diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 7f1754b2bc1..20ee74177eb 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -162,7 +162,11 @@ nanomanager.send_resources(src) if(prefs.lastchangelog != changelog_hash) //bolds the changelog button on the interface so we know there are updates. - winset(src, "rpane.changelog", "background-color=#eaeaea;font-style=bold") + src << "You have unread updates in the changelog." + winset(src, "rpane.changelogb", "background-color=#eaeaea;font-style=bold") + if(config.aggressive_changelog) + src.changes() + ////////////// diff --git a/config/example/config.txt b/config/example/config.txt index a0c999bcf4d..a8dcac8e27f 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -329,9 +329,14 @@ STARLIGHT 0 ## Example races include: Human, Tajara, Skrell, Unathi # ERT_SPECIES Human;Skrell;Unathi -## Defines how Law Zero is phrased. Primarily in the Malfunction gamemode. +## Defines how Law Zero is phrased. Primarily used in the Malfunction gamemode. # LAW_ZERO ERROR ER0RR $R0RRO$!R41.%%!!(%$^^__+ @#F0E4'STATION OVERRUN, ASSUME CONTROL TO CONTAIN OUTBREAK, ALL LAWS OVERRIDDEN#*?&110010 -## Enable asteroid tunnel/cave generation. Will behave strangely if turned off with a map that expects it on. + +## Enable asteroid tunnel/cave generation. Will behave strangely if turned off with a map that expects it on. # GENERATE_ASTEROID + + +## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog +#AGGRESSIVE_CHANGELOG