mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Readds changelog popup as a config option
This commit is contained in:
@@ -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]'"
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user