pub fn apply_disabled_bindings(
store: Res<'_, PropertyStore>,
commands: Commands<'_, '_>,
q: Query<'_, '_, (Entity, &BindDisabled, Has<Disabled>)>,
new_binds: Query<'_, '_, (), Added<BindDisabled>>,
)Expand description
Copies PropertyStore[Global(name)] into the presence of the Disabled
marker for every BindDisabled entity: truthy inserts, falsy removes.
Recognises Bool plus the canonical "true" / "1" string aliases via
get_global_bool. A missing signal leaves the entity untouched (its
spawn-time disabled attribute keeps authority until the signal exists).
Downstream reactions - stripping Hovered / Pressed / focus and the
:disabled style swap - key off the marker add/remove
(lumen_primitives::eject_interaction_on_disable and
apply_state_visuals).