space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.57k stars 3.2k forks source link

BUIs need an easy way to sub to compstate changes #26866

Closed metalgearsloth closed 5 months ago

metalgearsloth commented 5 months ago

Ideally BUISystem or whatever would have some helper method so the BUI can sub to afterautohandlestate for specific component states. This would easily let us take advantage of component networking instead of either checking every frame for data changes or using UI states even when not appropraite.

PJB3005 commented 5 months ago

Just like item status I'm really not sure this is practical. You're gonna have what, 4 BUIs open at once? Each reading worse case a dozen or two properties?

metalgearsloth commented 5 months ago

There's technology for this already.