TechReborn / RebornCore

Reborn Core is a library used for many of the Tech Reborn team's mods, including Tech Reborn, Quantum Storage, Fluxed Redstone, Hardcore Map Reset, and many more.
MIT License
44 stars 51 forks source link

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

Open The-Code-Monkey opened 4 years ago

The-Code-Monkey commented 4 years ago

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.

drcrazy commented 4 years ago

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

drcrazy commented 4 years ago

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

The-Code-Monkey commented 4 years ago

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

jusvit commented 4 years ago

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.

The-Code-Monkey commented 4 years ago

Cheers they look like what I expected cheers

The-Code-Monkey commented 4 years ago

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.