save/load multiple checkbox state

The checkbox enables/disables buttons. There are over 100 checkbox in game which do the same thing for there individual linked buttons.

Sidebar-Widget
Widget-Events]

Creating variables for each checkbox will be time consuming and inefficient. I created a Struct for it, but don’t know where to go from here.

Any help is appreciated.

Note: I can’t upload image for some reason. Is this a bug or something?

i havent tried this but this may work. Make a function which takes in the button reference and then save the reference to map with the state and save the map. and for retrieving the state make a function that takes the button reference and then just get the state.

i havent tried this but this may work.
Make a function which takes in the
button reference and then save the
reference to map with the state and
save the map. and for retrieving the
state make a function that takes the
button reference and then just get the
state.
I would have to reference all the button which count the same as the checkbox. Nonetheless, I will try this and get back.