From e8bfa45189dbf68bf770706ae58c404cff1d965c Mon Sep 17 00:00:00 2001 From: Waterpig <49160555+Majkl-J@users.noreply.github.com> Date: Sat, 24 Feb 2024 13:32:19 +0100 Subject: [PATCH] Rearranges the headshot pref datum procs (#26572) (#1200) ## About The Pull Request See https://github.com/Bubberstation/Bubberstation/pull/1031 See https://github.com/Skyrat-SS13/Skyrat-tg/pull/26572 ## Proof of Testing ![image](https://github.com/Skyrat-SS13/Skyrat-tg/assets/49160555/d6a7216d-046b-4c3a-bb15-3f1df71f3fee) --- .../master_files/code/modules/client/preferences/headshot.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modular_skyrat/master_files/code/modules/client/preferences/headshot.dm b/modular_skyrat/master_files/code/modules/client/preferences/headshot.dm index b63da97b7ee..116e684093a 100644 --- a/modular_skyrat/master_files/code/modules/client/preferences/headshot.dm +++ b/modular_skyrat/master_files/code/modules/client/preferences/headshot.dm @@ -39,6 +39,10 @@ to_chat(usr, span_warning("The image must be hosted on one of the following sites: 'Gyazo, Discord'")) return + apply_headshot(value) + return TRUE + +/datum/preference/text/headshot/proc/apply_headshot(value) if(stored_link[usr.ckey] != value) to_chat(usr, span_notice("Please use a relatively SFW image of the head and shoulder area to maintain immersion level. Think of it as a headshot for your ID. Lastly, [span_bold("do not use a real life photo or use any image that is less than serious.")]")) to_chat(usr, span_notice("If the photo doesn't show up properly in-game, ensure that it's a direct image link that opens properly in a browser."))