diff --git a/code/modules/client/preference_setup/general/01_basic.dm b/code/modules/client/preference_setup/general/01_basic.dm index 78ef29609b..d85ff867bf 100644 --- a/code/modules/client/preference_setup/general/01_basic.dm +++ b/code/modules/client/preference_setup/general/01_basic.dm @@ -209,11 +209,26 @@ return TOPIC_REFRESH else if(href_list["metadata"]) - var/new_metadata = strip_html_simple(tgui_input_text(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference" , html_decode(pref.metadata), multiline = TRUE, prevent_enter = TRUE)) //VOREStation Edit +// var/new_metadata = strip_html_simple(tgui_input_text(user, "Enter any information you'd like others to see, such as Roleplay-preferences:", "Game Preference" , html_decode(pref.metadata), multiline = TRUE, prevent_enter = TRUE)) //VOREStation Edit + if(CanUseTopic(user)) + ooc_notes_window(user) +// pref.metadata = new_metadata + return TOPIC_HANDLED + else if(href_list["edit_ooc_notes"]) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see, such as Roleplay-preferences. This will not be saved permanently unless you click save in the Character Setup panel!", "Game Preference" , html_decode(pref.metadata), multiline = TRUE, prevent_enter = TRUE)) if(new_metadata && CanUseTopic(user)) pref.metadata = new_metadata - return TOPIC_REFRESH - + ooc_notes_window(usr) + else if(href_list["edit_ooc_note_likes"]) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your LIKED roleplay preferences. This will not be saved permanently unless you click save in the Character Setup panel!", "Game Preference" , html_decode(pref.metadata_likes), multiline = TRUE, prevent_enter = TRUE)) + if(new_metadata && CanUseTopic(user)) + pref.metadata_likes = new_metadata + ooc_notes_window(usr) + else if(href_list["edit_ooc_note_dislikes"]) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your DISLIKED roleplay preferences. This will not be saved permanently unless you click save in the Character Setup panel!", "Game Preference" , html_decode(pref.metadata_dislikes), multiline = TRUE, prevent_enter = TRUE)) + if(new_metadata && CanUseTopic(user)) + pref.metadata_dislikes = new_metadata + ooc_notes_window(usr) return ..() /datum/category_item/player_setup_item/general/basic/proc/get_genders() @@ -228,3 +243,130 @@ possible_genders = possible_genders.Copy() possible_genders |= NEUTER return possible_genders + +/datum/category_item/player_setup_item/general/basic/proc/ooc_notes_window(mob/user) + //I tried to get it to accept things like emojis and all that, but, it wouldn't do! It would be cool if it did. + var/notes = replacetext(html_decode(pref.metadata), "\n", "
") + var/likes = replacetext(html_decode(pref.metadata_likes), "\n", "
") + var/dislikes = replacetext(html_decode(pref.metadata_dislikes), "\n", "
") + var/dat = {" + + + + + "} + + dat += {" + [pref.real_name]'s OOC notes
"} + dat += {" +
+ + +
+ Edit +
+ "} + + dat += {" +
+

[notes]

+ + + + +
Likes
"} + dat += {" + + +
+ Edit +
+ "} + + dat += {" +
+

[likes]

+
"} + dat += {" +
+
Dislikes
"} + dat += {" + + +
+ Edit +
+ "} + + dat += {" +
+

[dislikes]

+
+ + +

+

This only updates your character save file, to update your notes in the round use the Set OOC Metainfo verb!

+ "} + + user << browse("OOC Notes: [pref.real_name][dat]", "window=[pref.real_name]mvp;size=500x600;can_resize=1;can_minimize=0") + + onclose(usr, "[pref.real_name]") diff --git a/code/modules/mob/living/living_vr.dm b/code/modules/mob/living/living_vr.dm index beefd1f974..c7a496c636 100644 --- a/code/modules/mob/living/living_vr.dm +++ b/code/modules/mob/living/living_vr.dm @@ -29,7 +29,7 @@ if(usr != src) return - var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see, such as Roleplay-preferences. This will not be saved permanently unless you click save in the OOC panel!", "Game Preference" , html_decode(ooc_notes), multiline = TRUE, prevent_enter = TRUE)) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see, such as Roleplay-preferences. This will not be saved permanently unless you click save in the OOC notes panel!", "Game Preference" , html_decode(ooc_notes), multiline = TRUE, prevent_enter = TRUE)) if(new_metadata && CanUseTopic(usr)) ooc_notes = new_metadata client.prefs.metadata = new_metadata @@ -40,7 +40,7 @@ /mob/living/proc/set_metainfo_likes() if(usr != src) return - var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your LIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC panel!", "Game Preference" , html_decode(ooc_notes_likes), multiline = TRUE, prevent_enter = TRUE)) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your LIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC notes panel!", "Game Preference" , html_decode(ooc_notes_likes), multiline = TRUE, prevent_enter = TRUE)) if(new_metadata && CanUseTopic(usr)) ooc_notes_likes = new_metadata client.prefs.metadata_likes = new_metadata @@ -51,7 +51,7 @@ /mob/living/proc/set_metainfo_dislikes() if(usr != src) return - var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your DISLIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC panel!", "Game Preference" , html_decode(ooc_notes_dislikes), multiline = TRUE, prevent_enter = TRUE)) + var/new_metadata = strip_html_simple(tgui_input_text(usr, "Enter any information you'd like others to see relating to your DISLIKED roleplay preferences. This will not be saved permanently unless you click save in the OOC notes panel!", "Game Preference" , html_decode(ooc_notes_dislikes), multiline = TRUE, prevent_enter = TRUE)) if(new_metadata && CanUseTopic(usr)) ooc_notes_dislikes = new_metadata client.prefs.metadata_dislikes = new_metadata