Goal: An operating system-like taskbar/dock that will start empty and be populated with applications/icons as they unlock throughout the game. Applications could be marked or added to some data structure and the dock will update to list all elements in the grouping.
Problem: Currently, I am making each application manually and adding the application to the dock in the "On start of layout". Each application has a boolean to determine if it is unlocked yet and whether to display it. This will become bulky and require a lot of duplicate code later on when there may be dozens of dock elements.
Question: Is there a data structure or method I could use where I could add a newly unlocked application to a list/set a variable/add to a group/etc... and the dock will automatically add or remove elements so it matches the list?
I have searched quite a bit for a similar thread and have not found anything. Please excuse me if this has been asked before!