mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
Auto-AFK (#15997)
* disable ingame changelog notification * afk marker * Auto-AFK Marking * Update examine.dm * Auto-AFK Marking w/ Pref
This commit is contained in:
@@ -394,6 +394,13 @@ var/list/_client_preferences_by_type
|
||||
enabled_description = "Extended"
|
||||
disabled_description = "Default"
|
||||
|
||||
/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 *
|
||||
|
||||
@@ -163,3 +163,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