use of com.irtimaled.bbor.client.gui.SettingsScreenButton in project BoundingBoxOutlineReloaded by irtimaled.
the class MixinOptionsScreen method initGui.
@Inject(method = "init", at = @At("RETURN"))
private void initGui(CallbackInfo ci) {
// shuffle middle buttons up by 12 px to make space
int top = this.height / 6 + 42;
int bottom = this.height / 6 + 168;
for (Widget button : buttons) {
if (button.y >= top && button.y < bottom)
button.y -= 12;
}
SettingsScreenButton button = new SettingsScreenButton(this.width / 2 - 155, top + 84, 150, "BBOR", this);
this.buttons.add(this.buttons.size() - 1, button);
this.children.add(this.children.size() - 1, button);
}
Aggregations