/FileExtraction/Java_unseen/coltonk9043_Aoba-MC-Hacked-Client/src/main/java/net/aoba/gui/tabs/ToggleHudsTab.java
/*
* Aoba Hacked Client
* Copyright (C) 2019-2024 coltonk9043
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

package net.aoba.gui.tabs;

import net.aoba.gui.hud.AbstractHud;
import net.aoba.gui.tabs.components.HudComponent;
import net.aoba.gui.tabs.components.StackPanelComponent;
import net.minecraft.client.gui.DrawContext;

public class ToggleHudsTab extends ClickGuiTab {
	public ToggleHudsTab(AbstractHud[] abstractHuds) {
		super("Toggle HUDs", 50, 50, false);

		StackPanelComponent stackPanel = new StackPanelComponent(this);
		stackPanel.setTop(30);

		for(AbstractHud hud : abstractHuds) {
			HudComponent hudComponent = new HudComponent(hud.getID(), stackPanel, hud);
			stackPanel.addChild(hudComponent);
		}
		
		this.children.add(stackPanel);
		this.setWidth(300);
	}
	
	@Override
	public void draw(DrawContext drawContext, float partialTicks) {
		super.draw(drawContext, partialTicks);
	}
}
