Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

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

Open
The-Code-Monkey opened this issue Aug 23, 2020 · 6 comments
Open

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

The-Code-Monkey opened this issue Aug 23, 2020 · 6 comments
Labels

Comments

@The-Code-Monkey
Copy link

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
Copy link
Member

drcrazy commented Aug 23, 2020

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

@drcrazy
Copy link
Member

drcrazy commented Aug 23, 2020

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

@The-Code-Monkey
Copy link
Author

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

@jusvit
Copy link
Contributor

jusvit commented Aug 23, 2020

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
Copy link
Author

Cheers they look like what I expected cheers

@The-Code-Monkey
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants