mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Add preference datum for Balloon prompts (#11049)
Co-authored-by: eghughguhhhhhh <Hawoogabooga@gmail.com>
This commit is contained in:
committed by
GitHub
parent
78a8f7a57d
commit
b24dd7af52
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user