mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] Fixed private notes panel (#10520)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6c3c0a24d7
commit
331b337531
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user