Autochangelog Mirror from Virgo (#10195)

This commit is contained in:
Selis
2025-02-18 10:11:48 +01:00
committed by GitHub
parent 5ef81222f6
commit ba36a93f74
18 changed files with 372 additions and 11756 deletions

View File

@@ -333,13 +333,11 @@
void = new()
screen += void
// CHOMPAdd Start
if((prefs.lastchangelog != changelog_hash) && isnewplayer(src.mob)) //bolds the changelog button on the interface so we know there are updates.
if((prefs?.read_preference(/datum/preference/text/lastchangelog) != GLOB.changelog_hash) && isnewplayer(src.mob)) //bolds the changelog button on the interface so we know there are updates.
to_chat(src, span_info("You have unread updates in the changelog."))
winset(src, "rpane.changelog", "background-color=#eaeaea;font-style=bold")
if(CONFIG_GET(flag/aggressive_changelog))
src.changes()
// CHOMPAdd End
if(CONFIG_GET(flag/paranoia_logging))
var/alert = FALSE //VOREStation Edit start.

View File

@@ -1,3 +1,5 @@
// Toggles
/// Whether or not to toggle ambient occlusion, the shadows around people
/datum/preference/toggle/ambient_occlusion
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
@@ -93,3 +95,14 @@
savefile_key = "obfuscate_job"
default_value = FALSE
savefile_identifier = PREFERENCE_PLAYER
// Text
/datum/preference/text/lastchangelog
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "lastchangelog"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/text/lastchangelog/is_accessible(datum/preferences/preferences)
..()
return FALSE