I want to count the number of toggle items with an active state, is that even possible?
"card_buttons_grid": {
"type": "grid",
"size": ["100%", "default"],
"grid_dimensions": [4, 3],
"grid_item_template": "grid_item.card_toggle",
"collection_name": "skins_collection"
},
"card_toggle@common_toggles.light_template_toggle": {
"size": ["100%", "100%"],
"$toggle_name": "card_picker",
"$button_offset|default": [0, 0],
"$button_content|default": "common_toggles.toggle_image",
"$button_type_panel": "common_buttons.button_content_panel",
"$default_texture": "textures/ui/card_toggle_thin_off",
"$hover_texture": "textures/ui/card_toggle_thin_on",
"$pressed_texture": "textures/ui/card_toggle_thin_off_hover",
"$pressed_no_hover_texture": "textures/ui/card_toggle_thin_on_hover",
"$locked_texture": "textures/ui/card_toggle_thin_locked",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "skins_collection",
"binding_collection_prefix": "skins"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.view_skin",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.view_skin",
"mapping_type": "focused"
},
{
"from_button_id": "button.skin_unhovered",
"mapping_type": "pressed"
},
{
"from_button_id": "button.skin_hovered",
"mapping_type": "pressed"
}
]
}