mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-14 17:36:52 +01:00
Adds new body markings for humans and other species. (#10887)
This commit is contained in:
@@ -314,7 +314,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
||||
|
||||
out += "<br><a href='?src=\ref[src];marking_style=1'>Body Markings +</a><br>"
|
||||
for(var/M in pref.body_markings)
|
||||
out += "[M] <a href='?src=\ref[src];marking_remove=[M]'>-</a> <a href='?src=\ref[src];marking_color=[M]'>Color</a>"
|
||||
out += "[M] [pref.body_markings.len > 1 ? "<a href='?src=\ref[src];marking_up=[M]'>˄</a> <a href='?src=\ref[src];marking_down=[M]'>˅</a> " : ""]<a href='?src=\ref[src];marking_remove=[M]'>-</a> <a href='?src=\ref[src];marking_color=[M]'>Color</a>"
|
||||
out += HTML_RECT(pref.body_markings[M])
|
||||
out += "<br>"
|
||||
|
||||
@@ -555,6 +555,25 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
|
||||
pref.body_markings[new_marking] = "#000000" //New markings start black
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
|
||||
else if(href_list["marking_up"])
|
||||
var/M = href_list["marking_up"]
|
||||
var/start = pref.body_markings.Find(M)
|
||||
if(start != 1) //If we're not the beginning of the list, swap with the previous element.
|
||||
moveElement(pref.body_markings, start, start-1)
|
||||
else //But if we ARE, become the final element -ahead- of everything else.
|
||||
moveElement(pref.body_markings, start, pref.body_markings.len+1)
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
else if(href_list["marking_down"])
|
||||
var/M = href_list["marking_down"]
|
||||
var/start = pref.body_markings.Find(M)
|
||||
if(start != pref.body_markings.len) //If we're not the end of the list, swap with the next element.
|
||||
moveElement(pref.body_markings, start, start+2)
|
||||
else //But if we ARE, become the first element -behind- everything else.
|
||||
moveElement(pref.body_markings, start, 1)
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
else if(href_list["marking_remove"])
|
||||
var/M = href_list["marking_remove"]
|
||||
pref.body_markings -= M
|
||||
|
||||
Reference in New Issue
Block a user