use of cc.hyperium.gui.GuiButtonIcon in project Hyperium by HyperiumClient.
the class GeneralConfigGui method initGui.
@Override
public void initGui() {
super.initGui();
reg((edit = new GuiButtonIcon(1, new ResourceLocation("textures/chromahud/iconsheet.png"), 5, 0, 1, .4f)), button -> {
// Open Gui for editing element
if (currentElement != null) {
Hyperium.INSTANCE.getHandlers().getGuiDisplayHandler().setDisplayNextTick(new DisplayElementConfig(currentElement, mod));
}
});
((GuiButtonIcon) edit).setOutline(true);
reg(new GuiButton(2, 2, ResolutionUtil.current().getScaledHeight() - 22, 100, 20, "New"), (guiButton) -> {
DisplayElement blank = DisplayElement.blank();
ChromaHUDApi.getInstance().getElements().add(blank);
Hyperium.INSTANCE.getHandlers().getGuiDisplayHandler().setDisplayNextTick(new DisplayElementConfig(blank, mod));
});
edit.visible = false;
}
Aggregations