Skip to main content

dispatch_dropdown_clicks

Function dispatch_dropdown_clicks 

Source
pub fn dispatch_dropdown_clicks(
    clicks: MessageReader<'_, '_, ClickEvent>,
    headers: Query<'_, '_, &DropdownButton>,
    options: Query<'_, '_, &DropdownOptionButton>,
    parents: Query<'_, '_, &ChildOf>,
    store: ResMut<'_, PropertyStore>,
)
Expand description

<dropdown> click dispatcher. Toggles the open-panel signal on header clicks; writes the selected value and closes the panel on option clicks.

Open / close state goes through PropertyStore::set_global_bool / PropertyStore::get_global_bool so any typo-prone literal-string variants ("True", "TRUE", "yes") are funnelled into the canonical "true" / "false" pair the compiler’s <if eq="true"> body comparator recognises. The on-the-wire signal repr is unchanged.