Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disappearing inventory and character buttons #10

Closed
NetherNarwhal opened this issue Nov 26, 2018 · 1 comment
Closed

Disappearing inventory and character buttons #10

NetherNarwhal opened this issue Nov 26, 2018 · 1 comment

Comments

@NetherNarwhal
Copy link
Contributor

When bringing up the inventory screen, the inventory and character buttons initially show but will disappear if interacted with (exception being you able to click on the character button once). The buttons will not reappear when you go back into the inventory screens. This persists until the application is restarted. You may still use the inventory, but there is no way to see your character information after the first time without restarting.

In both the InventoryScreen.java and CharacterScreen.java makeContent methods I tried changing the following clear() calls to clearChildren() and reset(). No luck.

outerWindow.clear();
contentTable.clear();

The lines for turning debug on for outerWindow also disappears when the buttons do, even though the contentTable is still shown. The only workaround I have found is to recreate the outerWindow right below that:

outerWindow.clear();
contentTable.clear();
// This fixes it for some reason when even reset won't.
outerWindow = new Table();

Do this for both InventoryScreen.java and CharacterScreen.java and things work again.

@Interrupt
Copy link
Owner

Fixed in 9894432

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

No branches or pull requests

2 participants