mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Accent tags clickable, show name and desc in new window (#14995)
This commit is contained in:
@@ -689,6 +689,19 @@
|
||||
var/datum/browser/flavor_win = new(usr, name, capitalize_first_letters(name), 500, 250)
|
||||
flavor_win.set_content(replacetext(flavor_text, "\n", "<BR>"))
|
||||
flavor_win.open()
|
||||
|
||||
if(href_list["accent_tag"])
|
||||
var/datum/accent/accent = SSrecords.accents[href_list["accent_tag"]]
|
||||
if(accent && istype(accent))
|
||||
var/datum/browser/accent_win = new(usr, accent.name, capitalize_first_letters(accent.name), 500, 250)
|
||||
var/html = "[accent.description]<br>"
|
||||
var/datum/asset/spritesheet/S = get_asset_datum(/datum/asset/spritesheet/goonchat)
|
||||
html += "[S.css_tag()]<br>"
|
||||
html += {"[S.icon_tag(accent.tag_icon)]<br>"}
|
||||
html += "([accent.text_tag])<br>"
|
||||
accent_win.set_content(html)
|
||||
accent_win.open()
|
||||
|
||||
if(href_list["flavor_change"])
|
||||
update_flavor_text()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user