Einstein-Engines icon indicating copy to clipboard operation
Einstein-Engines copied to clipboard

Admin: Raw text announcements with sound

Open BasedUser opened this issue 1 year ago • 3 comments

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 avatar Jan 13 '25 13:01 BasedUser

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

BasedUser avatar Jan 13 '25 13:01 BasedUser

"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 🥇

eris-webserv avatar Jan 13 '25 20:01 eris-webserv

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

BasedUser avatar Jan 14 '25 07:01 BasedUser