diff --git a/code/modules/balloon_alert/balloon_alert.dm b/code/modules/balloon_alert/balloon_alert.dm index 2770ce9df1a..a14c0da0307 100644 --- a/code/modules/balloon_alert/balloon_alert.dm +++ b/code/modules/balloon_alert/balloon_alert.dm @@ -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 diff --git a/code/modules/client/preferences/types/game/runechat.dm b/code/modules/client/preferences/types/game/runechat.dm index 1c6ea10fb3c..23db7b1e7ae 100644 --- a/code/modules/client/preferences/types/game/runechat.dm +++ b/code/modules/client/preferences/types/game/runechat.dm @@ -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 diff --git a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/runechat.tsx b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/runechat.tsx index 97a6f72bad0..bdd107b8be7 100644 --- a/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/runechat.tsx +++ b/tgui/packages/tgui/interfaces/PreferencesMenu/preferences/features/game_preferences/runechat.tsx @@ -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, +};