mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
[MIRROR] Makes pda alert overlay not a string overlay (#5914)
* Makes pda alert overlay not a string overlay (#59269) Switches the alert overlay to create a mutable appearance instead of using the text as the overlay * Makes pda alert overlay not a string overlay Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
This commit is contained in:
@@ -406,8 +406,9 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
dat += "<br><a href='byond://?src=[REF(src)];choice=SkillReward;skill=[type]'>Contact the Professional [S.title] Association</a>"
|
||||
dat += "</li></ul>"
|
||||
if(21)
|
||||
if(icon_alert)
|
||||
if(icon_alert && !istext(icon_alert))
|
||||
cut_overlay(icon_alert)
|
||||
icon_alert = initial(icon_alert)
|
||||
|
||||
dat += "<h4>[PDAIMG(mail)] SpaceMessenger V3.9.6</h4>"
|
||||
dat += "<a href='byond://?src=[REF(src)];choice=Clear'>[PDAIMG(blank)]Clear Messages</a>"
|
||||
@@ -850,7 +851,9 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
to_chat(L, "<span class='infoplain'>[icon2html(src)] <b>PDA message from [hrefstart][signal.data["name"]] ([signal.data["job"]])[hrefend], </b>[inbound_message] [reply]</span>")
|
||||
|
||||
update_appearance()
|
||||
add_overlay(icon_alert)
|
||||
if(istext(icon_alert))
|
||||
icon_alert = mutable_appearance(initial(icon), icon_alert)
|
||||
add_overlay(icon_alert)
|
||||
|
||||
/obj/item/pda/proc/send_to_all(mob/living/U)
|
||||
if (last_everyone && world.time < last_everyone + PDA_SPAM_DELAY)
|
||||
|
||||
Reference in New Issue
Block a user