From 1067b85e39205b60f7e07e2c77352d8335588630 Mon Sep 17 00:00:00 2001 From: eghughguhhhhhh Date: Wed, 11 Jun 2025 20:01:23 -0300 Subject: [PATCH] fsdfsd (#17845) --- code/modules/balloon_alert/balloon_alert.dm | 5 +++++ code/modules/client/preferences/types/game/runechat.dm | 6 ++++++ .../preferences/features/game_preferences/runechat.tsx | 8 ++++++++ 3 files changed, 19 insertions(+) diff --git a/code/modules/balloon_alert/balloon_alert.dm b/code/modules/balloon_alert/balloon_alert.dm index 2770ce9df1..a14c0da030 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 1c6ea10fb3..23db7b1e7a 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 97a6f72bad..bdd107b8be 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, +};