if (!tab.isVisible()) {
continue;
}
// TODO: convert these over to foreground/background (maybe logic for top/bottom tabs?)
if (tab.side == TabBase.LEFT) {
tab.draw(0, yPosLeft);
yPosLeft += tab.currentHeight;
} else {
tab.draw(xSize, yPosRight);
yPosRight += tab.currentHeight;
}