mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
{SEMI-MODULAR} Silicon OOC notes and flavor text (#1928)
* I don't even play silicons I was just bored * Update code/modules/mob/living/silicon/silicon.dm Co-authored-by: Azarak <azarak10@gmail.com> * Update code/modules/mob/living/silicon/silicon.dm Co-authored-by: Azarak <azarak10@gmail.com> * Update code/modules/mob/living/silicon/examine.dm Co-authored-by: Azarak <azarak10@gmail.com> * Update code/modules/mob/living/silicon/examine.dm Co-authored-by: Azarak <azarak10@gmail.com> Co-authored-by: Ranged <nickvanderkroon@gmail.com> Co-authored-by: Azarak <azarak10@gmail.com>
This commit is contained in:
co-authored by
Azarak
Ranged
parent
fc0f39a410
commit
f7a4d47206
@@ -4,3 +4,16 @@
|
||||
. += "<b>[src] has the following laws:</b>"
|
||||
for(var/law in laws.get_law_list(include_zeroth = TRUE))
|
||||
. += law
|
||||
|
||||
//SKYRAT EDIT ADDITION BEGIN - CUSTOMIZATION
|
||||
if(client)
|
||||
var/line
|
||||
if(length(client.prefs.features["silicon_flavor_text"]))
|
||||
var/message = client.prefs.features["silicon_flavor_text"]
|
||||
if(length_char(message) <= 40)
|
||||
line = "<span class='notice'>[message]</span>"
|
||||
else
|
||||
line = "<span class='notice'>[copytext_char(message, 1, 37)]... <a href='?src=[REF(src)];lookup_info=silicon_flavor_text'>More...</a></span>"
|
||||
line += " <span class='notice'><a href='?src=[REF(src)];lookup_info=ooc_prefs'>\[OOC\]</a></span>"
|
||||
. += line
|
||||
//SKYRAT EDIT ADDITION END
|
||||
|
||||
@@ -210,6 +210,25 @@
|
||||
return
|
||||
to_chat(usr, href_list["printlawtext"])
|
||||
|
||||
//SKYRAT EDIT ADDITION BEGIN - CUSTOMIZATION
|
||||
if(href_list["lookup_info"])
|
||||
switch(href_list["lookup_info"])
|
||||
if("ooc_prefs")
|
||||
if(client)
|
||||
var/str = "[src]'s OOC Notes : <br> <b>ERP :</b> [client.prefs.erp_pref] <b>| Non-Con :</b> [client.prefs.noncon_pref] <b>| Vore :</b> [client.prefs.vore_pref]"
|
||||
str += "<br>[html_encode(client.prefs.ooc_prefs)]"
|
||||
var/datum/browser/popup = new(usr, "[name]'s ooc info", "[name]'s OOC Information", 500, 200)
|
||||
popup.set_content(text("<HTML><HEAD><TITLE>[]</TITLE></HEAD><BODY><TT>[]</TT></BODY></HTML>", "[name]'s OOC information", replacetext(str, "\n", "<BR>")))
|
||||
popup.open()
|
||||
return
|
||||
|
||||
if("silicon_flavor_text")
|
||||
if(client && length(client.prefs.features["silicon_flavor_text"]))
|
||||
var/datum/browser/popup = new(usr, "[name]'s flavor text", "[name]'s Flavor Text", 500, 200)
|
||||
popup.set_content(text("<HTML><HEAD><TITLE>[]</TITLE></HEAD><BODY><TT>[]</TT></BODY></HTML>", "[name]'s flavor text", replacetext(client.prefs.features["silicon_flavor_text"], "\n", "<BR>")))
|
||||
popup.open()
|
||||
return
|
||||
//SKYRAT EDIT ADDITION END
|
||||
return
|
||||
|
||||
/mob/living/silicon/proc/statelaws(force = 0)
|
||||
|
||||
@@ -385,6 +385,7 @@
|
||||
dat += "<b>Species Naming:</b><BR><a href='?_src_=prefs;preference=custom_species;task=input'>[(features["custom_species"]) ? features["custom_species"] : "Default"]</a><BR>"
|
||||
dat += "<b>Sprite body size:</b><BR><a href='?_src_=prefs;preference=body_size;task=input'>[(features["body_size"] * 100)]%</a> <a href='?_src_=prefs;preference=show_body_size;task=input'>[show_body_size ? "Hide preview" : "Show preview"]</a><BR>"
|
||||
dat += "<h2>Flavor Text</h2>"
|
||||
// Carbon flavor text
|
||||
dat += "<a href='?_src_=prefs;preference=flavor_text;task=input'><b>Set Examine Text</b></a><br>"
|
||||
if(length(features["flavor_text"]) <= 40)
|
||||
if(!length(features["flavor_text"]))
|
||||
@@ -393,6 +394,18 @@
|
||||
dat += "[html_encode(features["flavor_text"])]"
|
||||
else
|
||||
dat += "[copytext(html_encode(features["flavor_text"]), 1, 40)]..."
|
||||
|
||||
dat += "<br>"
|
||||
|
||||
// Silicon flavor text
|
||||
dat += "<a href='?_src_=prefs;preference=silicon_flavor_text;task=input'><b>Set Silicon Examine Text</b></a><br>"
|
||||
if(length(features["silicon_flavor_text"]) <= 40)
|
||||
if(!length(features["silicon_flavor_text"]))
|
||||
dat += "\[...\]"
|
||||
else
|
||||
dat += "[html_encode(features["silicon_flavor_text"])]"
|
||||
else
|
||||
dat += "[copytext(html_encode(features["silicon_flavor_text"]), 1, 40)]..."
|
||||
|
||||
dat += "<h2>OOC Preferences</h2>"
|
||||
dat += "<b>ERP:</b><a href='?_src_=prefs;preference=erp_pref;task=input'>[erp_pref]</a> "
|
||||
@@ -1855,6 +1868,11 @@
|
||||
if(!isnull(msg))
|
||||
features["flavor_text"] = strip_html_simple(msg, MAX_FLAVOR_LEN, TRUE)
|
||||
|
||||
if("silicon_flavor_text")
|
||||
var/msg = input(usr, "Set the flavor text in your 'examine' verb. This is for describing what people can tell by looking at your character.", "Silicon Flavor Text", features["silicon_flavor_text"]) as message|null
|
||||
if(!isnull(msg))
|
||||
features["silicon_flavor_text"] = strip_html_simple(msg, MAX_FLAVOR_LEN, TRUE)
|
||||
|
||||
if("ooc_prefs")
|
||||
var/msg = input(usr, "Set your OOC preferences.", "OOC Prefs", ooc_prefs) as message|null
|
||||
if(!isnull(msg))
|
||||
|
||||
Reference in New Issue
Block a user