use of gregtech.common.terminal.app.settings.widgets.HomeButtonSettings in project GregTech by GregTechCEu.
the class SettingsApp method initApp.
@Override
public AbstractApplication initApp() {
if (isClient) {
this.addWidget(new ImageWidget(5, 15, 323, 212, new ColorRectTexture(TerminalTheme.COLOR_B_2.getColor())));
this.tabGroup = new TabGroup<>(5, 15, new CustomTabListRenderer(TerminalTheme.COLOR_B_2, TerminalTheme.COLOR_F_2, 323 / 3, 10));
this.addWidget(this.tabGroup);
this.tabGroup.setOnTabChanged(this::onPagesChanged);
addTab("terminal.settings.theme", new ThemeSettings(getOs()));
addTab("terminal.settings.home", new HomeButtonSettings(getOs()));
addTab("terminal.settings.os", new OsSettings(getOs()));
}
return this;
}
Aggregations