Skip to content

Notifactions and some text message code#1209

Open
FalloutFalcon wants to merge 5 commits into
DarkPack13:masterfrom
FalloutFalcon:phone-notifiactions
Open

Notifactions and some text message code#1209
FalloutFalcon wants to merge 5 commits into
DarkPack13:masterfrom
FalloutFalcon:phone-notifiactions

Conversation

@FalloutFalcon

@FalloutFalcon FalloutFalcon commented Jul 9, 2026

Copy link
Copy Markdown
Member

About The Pull Request

Endpost and Message+ now use a generic helper for notification.
image

Also had to fix get_number_contact_name because it was acctually just raw not working for the existing message code. it was pulling the number from phone call behavoir because someone hardcoded it.

We really out to have a proper notifcation in the phone ui itself but all the phone code is extreamly hardcoded and it needs as hella rework tbh.

Apps not being isolated datums makes me cry. Modular computers are right there...

Why It's Good For The Game

Notifications are nice.

Changelog

🆑
add: Endpost and Message+ now use a generic helper for displaying a notification as a balloon alert.
fix: Text messages properly use the phone numbers for the texters rather then phones
/:cl:

@FalloutFalcon FalloutFalcon requested a review from a team as a code owner July 9, 2026 13:51
@FalloutFalcon FalloutFalcon linked an issue Jul 9, 2026 that may be closed by this pull request

@chazzyjazzy chazzyjazzy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't see anything bad

ANNOUNCEMENT_TYPE_PRIORITY,
color_override = "red",
)
endpost_announce("A rolling blackouts are affecting your area due to inclement weather. City workers are delayed due to a wife affected area.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HAHAHAHAHAHAHAHAHA

Suggested change
endpost_announce("A rolling blackouts are affecting your area due to inclement weather. City workers are delayed due to a wife affected area.")
endpost_announce("Rolling blackouts are impacting your area due to inclement weather. City workers are delayed due to widespread outages across the city.")

animate(pixel_w = 2, time = 0.1 SECONDS, flags = ANIMATION_RELATIVE|ANIMATION_CONTINUE)
animate(pixel_w = -1, time = 0.1 SECONDS, flags = ANIMATION_RELATIVE)
if(ringer)
playsound(src, 'modular_darkpack/modules/phones/sounds/text_receive.ogg', 50, TRUE, 0, 2) // This could prob use a better notification

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well for the events we do have news_notification.ogg from earlier which appears to go unused now if you want to add some like random chance or whatev

balloon_alert_to_viewers(message = "New Message!", vision_distance = SAMETILE_MESSAGE_RANGE)
return TRUE
/obj/item/smartphone/proc/after_text_received(contact_name, message_text)
// This should support having your notifiactions set to hidden to not show detials without opening the app.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(ringer) appeared to do something like that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make endpost_announce throw balloon_alerts

2 participants