RebornCore icon indicating copy to clipboard operation
RebornCore copied to clipboard

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

Open The-Code-Monkey opened this issue 5 years ago • 6 comments

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.

The-Code-Monkey avatar Aug 23 '20 07:08 The-Code-Monkey

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

drcrazy avatar Aug 23 '20 09:08 drcrazy

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

drcrazy avatar Aug 23 '20 09:08 drcrazy

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

The-Code-Monkey avatar Aug 23 '20 10:08 The-Code-Monkey

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.

jusvit avatar Aug 23 '20 11:08 jusvit

Cheers they look like what I expected cheers

The-Code-Monkey avatar Aug 23 '20 11:08 The-Code-Monkey

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.

The-Code-Monkey avatar Aug 24 '20 11:08 The-Code-Monkey