/mob/living/proc/ooc_notes_window(mob/user) if(!ooc_notes) return //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(src.ooc_notes), "\n", "
") var/likes = replacetext(html_decode(src.ooc_notes_likes), "\n", "
") var/dislikes = replacetext(html_decode(src.ooc_notes_dislikes), "\n", "
") var/dat = {" "} dat += {""} if(user == src) dat += {" "} dat += {"
Save Character Preferences Print to chat
"} if(user == src) dat += {"
Edit
"} dat += {"

[notes]

"} if(likes || user == src) dat += {"
Likes
"} if(user == src) dat += {"
Edit
"} if(likes) dat += {"

[likes]

"} if(dislikes || user == src) dat += {"
Dislikes
"} if(user == src) dat += {"
Edit
"} if(dislikes) dat += {"

[dislikes]

"} var/key = "ooc_notes[src.real_name]" //Generate a unique key so we can make unique clones of windows, that way we can have more than one if(src.ckey) key = "[key][src.ckey]" //Add a ckey if they have one, in case their name is the same winclone(user, "ooc_notes", key) //Allows us to have more than one OOC notes panel open winshow(user, key, TRUE) //Register our window var/datum/browser/popup = new(user, key, "OOC Notes: [src.name]", 500, 600) //Create the window popup.set_content(dat) //Populate window contents popup.open(FALSE) // Skip registring onclose on the browser pane onclose(user, key, src) // We want to register on the window itself