mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Auto-AFK (#8450)
Co-authored-by: Killian <49700375+KillianKirilenko@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -416,6 +416,13 @@ var/list/_client_preferences_by_type
|
||||
disabled_description = "Silent"
|
||||
// CHOMPAdd End
|
||||
|
||||
/datum/client_preference/auto_afk
|
||||
description = "Automatic AFK Status"
|
||||
key = "AUTO_AFK"
|
||||
enabled_by_default = TRUE
|
||||
enabled_description = "Automatic"
|
||||
disabled_description = "Manual Only"
|
||||
|
||||
|
||||
/********************
|
||||
* Staff Preferences *
|
||||
|
||||
@@ -167,3 +167,14 @@
|
||||
toggle_preference(pref_path)
|
||||
|
||||
to_chat(src, "The cooldown between pain messages for minor (under 20/5 injury. Multi-limb injuries are still faster) is now [ (is_preference_enabled(pref_path)) ? "extended" : "default"].")
|
||||
|
||||
/client/verb/toggle_automatic_afk()
|
||||
set name = "Toggle Automatic AFK"
|
||||
set category = "Preferences"
|
||||
set desc = "When enabled, causes you to be automatically marked as AFK if you are idle for too long."
|
||||
|
||||
var/pref_path = /datum/client_preference/auto_afk
|
||||
|
||||
toggle_preference(pref_path)
|
||||
|
||||
to_chat(src, "You will [ (is_preference_enabled(pref_path)) ? "now" : "not"] be automatically marked as AFK if you are idle for ten minutes or more.")
|
||||
|
||||
Reference in New Issue
Block a user