Readds changelog popup as a config option

This commit is contained in:
Jordie0608
2015-03-03 19:51:35 +11:00
parent 665afe10e1
commit e6e2ec2809
3 changed files with 12 additions and 3 deletions
+4
View File
@@ -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]'"
+4 -2
View File
@@ -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 << "<span class='info'>You have unread updates in the changelog.</span>"
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//
+4 -1
View File
@@ -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
#PANIC_BUNKER
## Uncomment to have the changelog file automatically open when a user connects and hasn't seen the latest changelog
#AGGRESSIVE_CHANGELOG