Reborn Core

Reborn Core

91M Downloads

Trying to implement a GUI but don't want the tabs.

The-Code-Monkey opened this issue ยท 6 comments

commented

Hi,

I'm implementing a GUI but using your GUI code, is there a way for me to disable the tabs on the left as they will do things that we don't want the GUI to be able to do?

Also would be nice if the energy bar could be changed in width.

commented

You can check gui for solar panels, IMHO. They do not have item\fluid i\o config tabs

commented

Also as far as I can remember these tabs appearance depends on blockentity. So check solar panels blockentity also.

commented

Ah ok I'm trying to basically make a battery that can charge via a slot in the gui

commented

Ah ok I'm trying to basically make a battery that can charge via a slot in the gui

@Override
public boolean canBeUpgraded() {
	return false;
}

@Override
public boolean hasSlotConfig() {
	return false;
}

I believe those are the methods you have to override, however I was under the impression to were off by default but I guess not.

commented

Cheers they look like what I expected cheers

commented

Yeah @justinvvitale they got rid of the slotConfig but i still cant get rid of the redstone config and there doesnt seem to be a similar boolean for that one.