@Override
    public void update(long deltaMs) {
        super.update(deltaMs);
        
        // cool! if we have bought an update, we first flag that as done and at the next update, when the research event has been triggered, we update the tree!
        if(updateResearch) {
            itemSlots.clear();
            int indx = 0;
            for(ResearchItem ri : Application.get().getLogic().getGame().getResearch().getRoots()) {
                ResearchScreenFactory.createTrees(this);
                indx++;
            }
            updateResearch = false;
        }
        if(researchDone) {
            updateResearch = true;
            researchDone = false;
        }
        
        for(ResearchItemButton rib : itemSlots) {
            rib.update(deltaMs);
        }
    }