porting healthbars from RS + mat fixes

This commit is contained in:
Kashargul
2024-01-29 00:00:25 +01:00
committed by GitHub
parent ba1d1fa768
commit 691c3ca75f
13 changed files with 274 additions and 11 deletions
@@ -330,6 +330,12 @@ var/list/_client_preferences_by_type
enabled_description = "On"
disabled_description = "Off"
/datum/client_preference/vore_health_bars
description = "Vore Health Bars"
key = "VORE_HEALTH_BARS"
enabled_description = "Enabled"
disabled_description = "Disabled"
/datum/client_preference/runechat_mob
description = "Runechat (Mobs)"
key = "RUNECHAT_MOB"
@@ -489,6 +489,19 @@
feedback_add_details("admin_verb","TSubtleSounds")
/client/verb/toggle_vore_health_bars()
set name = "Toggle Vore Health Bars"
set category = "Preferences"
set desc = "Toggle the display of vore related health bars"
var/pref_path = /datum/client_preference/vore_health_bars
toggle_preference(pref_path)
SScharacter_setup.queue_preferences_save(prefs)
to_chat(src, "Vore related health bars - [(is_preference_enabled(/datum/client_preference/vore_health_bars)) ? "Enabled" : "Disabled"]")
feedback_add_details("admin_verb","TVoreHealthBars")
// Not attached to a pref datum because those are strict binary toggles
/client/verb/toggle_examine_mode()
set name = "Toggle Examine Mode"