[MIRROR] Fixed private notes panel (#10520)

Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-23 16:08:53 -07:00
committed by GitHub
parent 6c3c0a24d7
commit 331b337531
2 changed files with 19 additions and 17 deletions

View File

@@ -200,12 +200,12 @@
if(client.prefs.save_character())
to_chat(src, span_filter_notice("Character preferences saved."))
/mob/living/verb/open_private_notes(mob/user)
/mob/living/verb/open_private_notes()
set name = "Private Notes"
set desc = "View and edit your character's private notes, that persist between rounds!"
set category = "IC.Notes"
private_notes_window(user)
private_notes_window(src)
/mob/living/proc/set_metainfo_private_notes(mob/user)
if(user != src)

View File

@@ -1,4 +1,6 @@
/mob/living/proc/private_notes_window(mob/user)
if(user != src)
return
if(!private_notes)
private_notes = " "
return
@@ -32,22 +34,22 @@
</head>"}
dat += {"<body><table>"}
if(user == src)
dat += {"
<td class="button">
<a href='byond://?src=\ref[src];save_private_notes=1' class='button'>Save Character Preferences</a>
</td>
"}
if(user == src)
dat += {"
<br>
<table>
<td class="button">
<a href='byond://?src=\ref[src];edit_private_notes=1' class='button'>Edit</a>
</td>
</table>
"}
dat += {"
<td class="button">
<a href='byond://?src=\ref[src];save_private_notes=1' class='button'>Save Character Preferences</a>
</td>
"}
dat += {"
<br>
<table>
<td class="button">
<a href='byond://?src=\ref[src];edit_private_notes=1' class='button'>Edit</a>
</td>
</table>
"}
dat += {"
<br>