[MIRROR] Add preference datum for Balloon prompts (#11049)

Co-authored-by: eghughguhhhhhh <Hawoogabooga@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-12 16:18:27 -07:00
committed by GitHub
parent 78a8f7a57d
commit b24dd7af52
3 changed files with 19 additions and 0 deletions

View File

@@ -35,6 +35,11 @@
/atom/proc/balloon_alert_perform(mob/viewer, text)
var/client/viewer_client = viewer?.client
if(!viewer_client?.prefs?.read_preference(/datum/preference/toggle/runechat_balloon_messages))
return //no! I don't want that.
if (isnull(viewer_client))
return

View File

@@ -21,3 +21,9 @@
savefile_key = "RUNECHAT_LONG"
default_value = FALSE
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/runechat_balloon_messages
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "RUNECHAT_BALLOON_MESSAGES"
default_value = TRUE
savefile_identifier = PREFERENCE_PLAYER

View File

@@ -27,3 +27,11 @@ export const RUNECHAT_LONG: FeatureToggle = {
description: 'Sets runechat to show more characters.',
component: CheckboxInput,
};
export const RUNECHAT_BALLOON_MESSAGES: FeatureToggle = {
name: 'Runechat: Balloon Messages',
category: 'RUNECHAT',
description:
'Enables or Disables the "Balloon Messages" performed by visible actions.',
component: CheckboxInput,
};