//Algorithm will iterate through all slots, finding blank slots. Each time a blank slot is found, all items will shift over by one, and then the last item will be removed. Repeat until all slots iterated through.
for(inti=0;i<components.size();i++){
MenuComponent*button=components[i];
@ -58,7 +58,7 @@ protected:
}
bounds=CalculateBounds();//Recalculate the bounds as it's possible the width/height of the component has changed.
//Returns the last menu type created and last registered component, in case a component is detected as memory leaking, provides this information to each component for safety.
//pMenu->components.erase(this->name); //We're not going to do this here because we are in the middle of a loop for another menu component when cleaning up.
//A class that has an initialization lock so that when the lock is activated, any further gets that are missing items in it will report themselves for easier debugging detection.