Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin: Raw text announcements with sound #1527

Open
BasedUser opened this issue Jan 13, 2025 · 3 comments
Open

Admin: Raw text announcements with sound #1527

BasedUser opened this issue Jan 13, 2025 · 3 comments
Labels
Type: Feature Creation of or significant changes to a feature

Comments

@BasedUser
Copy link
Contributor

BasedUser commented Jan 13, 2025

Description

Admins currently have 2 ways to announce things - "station" announcements and server announcements. This is simply inadequate for events, because some people (i'm looking at you Corvax and DS14) would really want to announce with custom tags and everything.
A "raw" announcement would fill the niche where event masters need to do their work, and would enable them to do it without using SCSI.

What needs to be done

I propose to extend AdminAnnounceEui to have a third parameter, AdminAnnounceType.Raw - wrapping around one of the ChatManager SendToX functions, such that these optional(ly codable) constraints are satisfied, in priority:

  • An optional parent is defined - descendants of this entity will get the announcement. If set to EntityUid.Invalid/left unchecked, everyone will receive the message.
  • An optional sound FILE is defined - what will play on the announcement, or nothing if unchecked. Volume in a separate box, null string is 0.
  • An optional color override is defined, otherwise null.

Also, adapt the .xaml.cs for it.

Media

ShittyUI render
announc

@BasedUser BasedUser added the Type: Feature Creation of or significant changes to a feature label Jan 13, 2025
@BasedUser
Copy link
Contributor Author

BasedUser commented Jan 13, 2025

"router can't you code"
bah, too lazy to spend three decades speedlearning dotnet

@Erisfiregamer1
Copy link
Contributor

"router can't you code" bah, too lazy to spend three decades speedlearning dotnet

if you can do Java for Mindustry then you can learn dotnet go do it yourself 🥇

@BasedUser
Copy link
Contributor Author

BasedUser commented Jan 14, 2025

the real reason is i cbf to debug UI, i might do it the moment i free up for war

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Creation of or significant changes to a feature
Projects
None yet
Development

No branches or pull requests

2 participants