Raise a BUI message on any input

The bound wrapper is internal only and I don't want these filtered out by UI validation.
This commit is contained in:
metalgearsloth
2026-06-18 17:21:47 +10:00
parent 338825c8e7
commit cb768d2aa5
3 changed files with 14 additions and 2 deletions
@@ -107,6 +107,9 @@ public abstract partial class SharedUserInterfaceSystem : EntitySystem
return;
}
var received = new BoundUserInterfaceMessageReceivedEvent(sender, uid, msg.UiKey);
RaiseLocalEvent(ref received);
// If it's not an open message check we're even a subscriber.
if (msg.Message is not OpenBoundInterfaceMessage &&
(!uiComp.Actors.TryGetValue(msg.UiKey, out var actors) ||